Thanks a bunch Narcis! I believe this might help, will give it a try.
Jerry
Paslaru Narcis Eugen wrote:
> That is quite imposible if your form needs those values to reload with
> the exact same data.
> But if there are only some on the parameters that you want to hide you
> can do this :
>
> In your displaytag.properties you must put somrthing like this :
>
> factory.requestHelper=edu.indiana.util.MyRequestHelperFactory
>
> And this class :
>
> public class MyRequestHelperFactory implements RequestHelperFactory{
>
> /* (non-Javadoc)
> * @see
> org.displaytag.util.RequestHelperFactory#getRequestHelperInstance(javax.servlet.jsp.PageContext)
> */
> public RequestHelper getRequestHelperInstance(PageContext
> pageContext) {
> return new MyRequestHelper(
> (HttpServletRequest) pageContext.getRequest(),
> (HttpServletResponse) pageContext.getResponse());
> }
>
> }
>
> And offcourse this one :
>
> public class MyRequestHelper extends DefaultRequestHelper{
>
> /**
> * original HttpServletRequest.
> */
> private HttpServletRequest request;
>
> /**
> * original HttpServletResponse.
> */
> private HttpServletResponse response;
>
>
> /**
> *
> */
> public MyRequestHelper(HttpServletRequest request,
> HttpServletResponse response) {
> super(request, response);
> this.request = request;
> this.response = response;
> }
>
> /**
> * This is to remove the username and the password from the URL's
> generated for sorting
> * @see org.displaytag.util.RequestHelper#getHref()
> */
> public Href getHref() {
> String requestURI = this.request.getRequestURI();
> // call encodeURL to preserve session id when cookies are disabled
> Href href = new DefaultHref(this.response.encodeURL(requestURI));
> Map paramMap = getParameterMap();
>
> //removing the user and password
> if (paramMap != null){
> paramMap.remove("user");
> paramMap.remove("password");
> }
>
> href.setParameterMap(paramMap);
> return href;
> }
>
> }
>
> I hope it helps !
>
> Regards,
> Narcis Paslaru
>
> */Jerry Neal <[EMAIL PROTECTED]>/* wrote:
>
> Does anyone know a way to keep your form values when a display tag
> page
> or sort is done (since it does a get not post)?
>
> thanks,
> Jerry Neal
> Indiana University
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
> ------------------------------------------------------------------------
> Check out the New Yahoo! Mail
> <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta>-
>
> Fire up a more powerful email and get things done faster.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user