Can you describe what you are doing in the Action and on the page a little bit more?
It seems like you are trying to resolve if the portfolio is new or not. Where in your action do you load up the portfolio object? Are you familar with the Preparable interface for your actions? What does your form look like? Are you editing the portfolio or an object that is related to the portfolio? Adam Hardy (debian) wrote: > > I have an Action and corresponding JSP form with the property "portfolio". > > In my JSP, I have this JSTL tag test: > > <c:if test="${not empty portfolio and portfolio.id gt 0}"> stuff </c:if> > > which works fine for my purposes. But then when I submit the form and > validation > fails and myAction.portfolio is not initialized, Struts2 injects the > portfolio > request parameter into the requestAttributes. > > Now my JSP blows up because: > > ${portfolio} = "0" > > and > > ${not empty portfolio} = true > > and then > > ${portfolio.id} ----> javax.servlet.jsp.JspException: > javax.el.PropertyNotFoundException: Property 'id' not found on type > java.lang.Character > > > What influence can I have over this injection behaviour? > > Or perhaps, can I reformulate my test so that I can tell whether my > "${portfolio}" is a string or a bean? > > Thanks! > Adam > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/xwork-injecting-parameters-into-requestScope-tp20090024p20102956.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]