I agree with those who suggest inline updating use Javascript. I've written some code to handle paging of a table this way so that flipping to the next page of results doesn't result in a whole page refresh. What I would add is that it can be very simple because Javascript allows you to replace the innnerHTML for a given element. In the case of a table that allows you to design the table totally normally, as if you were going to be including it with a <c:import>. Then, your javascript simply retrieves the table.jsp and stuffs it into the innerHTML for a <div> or some other element.

Might not be the best approach for <selects> or something that is less visual.

K.C.

Stéphane Zuckerman wrote:

Hello,

I am to write JSP pages with a form that has some items (lists, or checkboxes) that depend on previous choices from the same form.

So here I have two choices basically :

1°) Load all the information that is possibly needed for a given page, hide it, and only show what is relevant with some javascript. For instance, If I select some "foo" option in a list, then below in the form, a second list is loaded with "bar1", "bar2", "bar3é ... options, which are related to the "foo" option.

Drawback : if there are lots of possible options, lots of texts, and lots of users, this might be too heavy a solution.


2°) When I select "foo", then some javascript reloads the page (it does a post) with the "foo" argument, and the rest of the JSP is loaded. This is the way I'd like to take, since some informations mustn't be in the clear uselessly.


My problem is that I don't really know where to start and how to do such a thing (do I use the same action through different stages ? Or do I put a lot of little actions that lead to a single big one ?)

I hope I've been clear enough (I have difficulties finding the right phrases to express my problem), and that someone will be able to help me.

Stéphane

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to