In order to understand the correct flow of Struts, i'm trying to create a
simple form that has 2 fields and a "Next" and "Previous" button/link.  As i
click the buttons/links, i want the form fields to be filled with data from
a database (1 record at a time).  This appears easy enough to do - i could
simply make the Next/Previous buttons/links point to a next.do or prev.do
servlet which would perform some Action (which in turn would use some
delegate (?) to access the database and populate the formbean) and then
redirect (forward) to the particular JSP (to auto-fill the fields).  (Jeez!
I hope i got the above right so far).

HOWEVER, what i'd *like* to be able to do is each page should be
book-markable - i.e. the page should have a query string (perhaps
?id=primaryKeyinDatabase) so that the user can get to a particular record
directly.  It seems to me that by doing the redirect (forward) from the
servlet, i would not be able to achieve this?

How can i do the above?  Or is this one of those cases where i *shouldn't*
be using Struts?

Help? :)
Anuj.


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

Reply via email to