Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebSphere 6.1.07 bug in forward jsp:param tag?

 
Juan Carlos Aponte
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all JavaRanch comunity. I'm migrating an Insurance Web Application from WebSphere 5.1.0.11 to WebSphere 6.1 [BASE 6.1.0.7 cf70711.17] and I have problems with standar JSP tag. The following is my code:

<logic:equal name="moduleCommand" value="productAssociateThirdParty">
<jsp:forward page="ThirdPartySearchForProduct.jsp"/>
<jsp : param name="classtarget" value="<%=request.getParameter("classtarget")%>" />
<jsp : param name="idproduct" value="<%=request.getParameter("idproduct")%>" />
<jsp : param name="idPlan" value="<%=request.getParameter("idPlan")%>" />
<jsp : param name="idio" value="<%=request.getParameter("idio")%>" />
<jsp : param name="idcoverage" value="<%=request.getParameter("idcoverage")%>" />
<jsp : param name="command" value="<%=request.getParameter("command")%>" />
<jsp : param name="searchForBenfRoleIds" value="<%=request.getParameter("searchForBenfRoleIds")%>" />
</logic:equal>

<logic:equal name="moduleCommand" value="policyAssociateThirdParty">
<jsp:forward page="ThirdPartySearchForPolicy.jsp"/>
</logic:equal>

The error is:

Error Message:JSPG0227E: Exception caught while translating /ThirdParty/Search/ThirdPartySearchSelector.jsp: /ThirdParty/Search/ThirdPartySearchSelector.jsp(85,9) --> JSPG0061E: Attribute classtarget is unrecognised for jsp element jsp : param

I post this here if somebody have any comments or news about this error.

Thanks for your valuable help!



it seems that WebSphere 6.1 are not recognizing the parameters. If I use only a forward without any parameters there is no error. The following code not generate errors:

<logic:equal name="moduleCommand" value="thirdpartyMaintenance">
<jsp:forward page="ThirdPartySearchForMaintenance.jsp"/>
</logic:equal>
[ May 29, 2007: Message edited by: Juan Carlos Aponte ]
 
Slim Jim
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The issue is the double quotes inside the tag value. Websphere will see the double quotes inside the tag value and close the attribute prematurely. Change the quotes to single quotes and it will work. (e.g. <jsp:param name="command" value='<%=request.getParameter("command")%>' />)
[ December 06, 2007: Message edited by: Slim Jim ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic