How about doing a jstl if statement within the index.jsp page. If you need to pass the parameters, then within the if errors put in a hidden field named portal with value of collab, else no hidden value.
something like that maybe? On 10/19/06, Perry Minchew <[EMAIL PROTECTED]> wrote:
Hi everyone, Another beginner question. I have an index page that currently does nothing but redirect (<logic:redirect action="/Register2.do"/>). However, I need to pass a parameter passed in from the calling page to be transferred to a bean. The parameter is in formal "./index2.jsp?portal=collab". I have created a portalForm with a getter/setter, and public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if(getPortal() == null || getPortal().length() < 1) { errors.add("portalNotFound", new ActionMessage("errors.portal.not.supplied")); } return errors; } I would prefer not to make the index page a form with a submit button, because I just want to pass the portal from the parameter into a bean to get validated. If the portal parameter exists, we are good. If it doesn't, I need to redirect to an error page. I just can't figure out how to pass the parameter into the bean and get the bean validated without clicking a submit button. Struts 1.3.5, Tomcat 5.5 Perry Minchew Systems Integrator SPAWAR Systems Charleston Office : (843) 218.7031 Cell : (843) 822.1555
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]