submit « Request « JSP-Servlet Q&A





1. Struts2 OGNL - Request parameters submission order    stackoverflow.com

I am using jsp and struts2, and I have the following scenario:

<s:form>
<s:hidden name="empId" value="123"/>
<s:textfield name="employee.name"/>
<s:submit action="save"/>
</s:form>
When this form is submitted, the OGNL expression employee.name (equivalent to getEmployee().setName()) gets executed before "save" ...

2. Request to the servlet without any submit action from a jsp    stackoverflow.com

I have a jsp ExpressLinking.jsp. As soon as we get to this jsp i need to send a request to the ControllerServlet with the query parameter of the request

<%=request.getContextPath()%>/ManageMyMappings?cmd=loadStatus&linkid=<%=linkId%>
After the Controller ...

3. old request when submit !??!    coderanch.com

4. Submitting Request    coderanch.com

If say, I have a hyperlink in a Jsp, clicking on which an action will be called to fetch data from the database. Assume that the data is huge and the response will occur only after 10 secs. During this time if the user clicks on the browser stop button; then what is the state of the request? To me it ...