File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes WebSphere 6.1.07 bug in forward jsp:param tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WebSphere 6.1.07 bug in forward jsp:param tag?" Watch "WebSphere 6.1.07 bug in forward jsp:param tag?" New topic

WebSphere 6.1.07 bug in forward jsp:param tag?

Juan Carlos Aponte

Joined: May 29, 2007
Posts: 1
Hello to all JavaRanch comunity. I'm migrating an Insurance Web Application from WebSphere to WebSphere 6.1 [BASE 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 name="moduleCommand" value="policyAssociateThirdParty">
<jsp:forward page="ThirdPartySearchForPolicy.jsp"/>

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"/>
[ May 29, 2007: Message edited by: Juan Carlos Aponte ]
Slim Jim

Joined: Jul 08, 2002
Posts: 2
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 ]

:--:<br />:--: Jim<br />:--:
I agree. Here's the link:
subject: WebSphere 6.1.07 bug in forward jsp:param tag?
It's not a secret anymore!