| | |
JSP ajax question
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
![]() |
Hi
I am using ajax and jsp in my web application.
The user is required to fill out a few forms, for this i am using ajax to go through the forms, on one of the forms i need to set the session bean value and i am unsure as to how to do that.
Do i submit the form to a servlet then cause the servlet to redirect to a particular page within the specified div tag.
I have to use struts 1.1 though.
any help will be appreciated.
Thanx
I am using ajax and jsp in my web application.
The user is required to fill out a few forms, for this i am using ajax to go through the forms, on one of the forms i need to set the session bean value and i am unsure as to how to do that.
Do i submit the form to a servlet then cause the servlet to redirect to a particular page within the specified div tag.
I have to use struts 1.1 though.
any help will be appreciated.
Thanx
Since you need to set the bean in the session scope, you need to do something like
session.setAttribute("YourBeanName", yourBeanReference); . Read the form values in a normal manner; the same way you would do for a normal form submission i.e. request.getParameter("formFieldName"); I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Javascript help (JavaScript / DHTML / AJAX)
- mysql data (JSP)
Other Threads in the JSP Forum
- Previous Thread: how t ouse calendar with spring tags in jsp??
- Next Thread: New to JSP....need help
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish imagetodatabse imageupload internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial video web






