File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: Jul 08, 2003
Posts: 24199

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

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: how should i proceed??
It's not a secret anymore!