aspose file tools*
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 Java 8 in Action this week in the Java 8 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
Author

WebSphere 6.1.07 bug in forward jsp:param tag?

Juan Carlos Aponte
Greenhorn

Joined: May 29, 2007
Posts: 1
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

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: http://aspose.com/file-tools
 
subject: WebSphere 6.1.07 bug in forward jsp:param tag?
 
Similar Threads
jsp:forward doubt
jsp param tag(urgent)
"%=request.getParameter('redirectto')%" is this the correct syntex??
Call a Servlet from JSP
No equal tag error even when equal tag present in struts-logic.tld