•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 391,971 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,174 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 980 | Replies: 3 | Solved
![]() |
•
•
Join Date: Mar 2008
Posts: 108
Reputation:
Rep Power: 1
Solved Threads: 12
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
Yes, submit the form to a servlet, perform the processing and redirect to a page whose output you would like to have in responseText attribute of the XMLHttpRequest object.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
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."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
ajax asp development internet mac malware management merger microsoft mobile mozilla mp3 news novell office onecare open open source openoffice operating orcas os pc penelope phishing photo pirate product ps3 recession red hat serial server software source threading thunderbird tiger ubuntu upgrade us army virus vista vsts web windows xbox 360 xp yahoo zune
- 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



Linear Mode