Altering querystring between requests

2003-08-17 Thread Mike Whittaker

Say we have a request parameter that tracks the requested size  offset of a
ResultSet (eg search engine results  the next or page number links).

Before struts I used to just do a simple regex replace of this parameter in
the search string.

Obviously I don't want any url logic in the business tier.

I use a subclassed DynaActionForm, I thought I could add a method that built
the query string from the Map, based on the old Map and a new passed in
parameter name  value pair. Then a method for retrieval for jstl of the
required 'get()' form

I could then use this in the jsp ${myForm.newQueryString}

Anyone know of the typical approach, I'm probably missing something simpler.

Also does anyone have a seperate tier ie: view, *viewLogic*, controller,
model.
I just hate putting all the view logic stuff in jsp.

--
Mike W


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



Re: Altering querystring between requests

2003-08-17 Thread Jacek Zoch

- Original Message - 
From: Mike Whittaker [EMAIL PROTECTED]
To: Struts List [EMAIL PROTECTED]
Sent: Sunday, August 17, 2003 11:05 AM
Subject: Altering querystring between requests



 Say we have a request parameter that tracks the requested size  offset of
a
 ResultSet (eg search engine results  the next or page number links).

 Anyone know of the typical approach, I'm probably missing something
simpler.

My approach :
I have page number as a request parameter, a and show the results according
to this parameter.
To move between pages I have direct link to the same page with new page
parameter. I don`t use ActionForward,
because for me it doesn`t make sense.


Jacek


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