File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how should i proceed?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how should i proceed??" Watch "how should i proceed??" New topic
Author

how should i proceed??

Sri Sar
Ranch Hand

Joined: Mar 25, 2004
Posts: 44
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

Joined: Jul 08, 2003
Posts: 24184
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how should i proceed??