Ricardo Camilo Lopez wrote:
>
> Hi,
>
> I already searched for "order", "parameter", and didn't find any
> "decent" way to deal with this issue, I thought it was provided as part
> of the javax.servlet API.
>
> I need to update values in a database from a form submited to a servlet
> via GET/POST.
>
> What the problem is? :-)
>
> Thing is that:
>
> ._ Since the request object is serially parsed the parameters are gotten
> in in the order they are read.
>
> ._ I want to do it in a way that, the right values are put in the right
> order in the tables regardless of the order they appear in the page. So
> when I pass my jdsp's to a designer they can present them as they
> please.
>
> How do you do that?
>
> If you can't explain to me please why not?

I'm not sure I get exactly what you're after, but here's one idea that
may be at least close. You can use a bean with properties that match all
form fields, and set them automatically with a <jsp:useBean> action:

  <jsp:useBean id="myFormData" class="com.mycomp.FormBean" />

Then the page author can extract the values in any order they want,
using either <jsp:getProperty>:

  <jsp:getProperty name="myFormData" property="foo" />

or JSP expressions:

  <%= myFormData.getFoo() %>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to