• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how should i proceed??

 
Sri Sar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
in one of applications i am developing, i need to send a form with user selections to a server-side program for processing.
in my form, there are two pages. from the first page, the user is linked to the second page. on the second page, he has select tags and a back button. as soon as the user makes his selections and clicks on the back button, a new window with a set of dynamic XML tags(that represent the user selections) is popped up and the user is taken to the first page. in this page, when the user clicks on the submit button, the form is submitted to the server-side program.(i need to necessarily use two pages)
the output of my form submission is a new window with a set of XML tags. what should be done to the form so that a servlet can easily extract the user data from the window.
if i can send as a http request, how can it be done?
it would be quite helpful to me if u can explain with sample code.
i am not sure if this is a question to be asked in the javascript forum or servlets forum. but since it deals with form submission, i felt that javascript forum is the right forum to post to.
thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a very complicated description; so complicated, in fact, that I doubt many people can understand it -- I certainly can't. I wonder how much of what you're saying here is part of your requirements, and how much is actually part of your guess at an implementation. I suspect there is some of each.

Why not reply to my message with a clear, short statement of just the requirements you're trying to fulfill. Don't say anything about XML, HTML, or any other technical stuff. Just tell us exactly what you are being asked to do, and nothing more. Then perhaps someone will be able to recommend an approach.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sri, I don't think it is possible to nest a FORM tag between two seperate pages. Is the second page a Lookup screen of some sort?

One option is to use Struts Action Forms, and save the class in the Users Request or Session, then you can always have the information that the user had entered before, without losing any information.

Or you can use a Session object to store their information between the two pages, but only have the first page have the actual FORM tag.

I know you could possibly use JavaScript to make a popup for a lookup screen, if that is what you are trying to do, it is kind of like those Calendar popups that you can get the JavaScript code for.

Good Luck. and I hope I have steered you in some kind of correct direction.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic