Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

request param set in html:link showing the classname instead of value

Status
Not open for further replies.

dcintern

Programmer
Jun 3, 2006
2
0
0
US
Hey Guys,

In my jsp I am passing a param as follows,

<logic:iterate id="Listingcategory" name="categoryList">
<tr>
<td>
<html:link action="createListingBridge" paramId="CategoryTitle" paramName="Listingcategory" property="title"><bean:write name="Listingcategory" property="title"/></html:link>
</td>
</tr>
</logic:iterate>


When I do a request.getParameter in the action class it returns the name of the class instead of the actual value.

Action Class Snippet:
String title = request.getParameter("CategoryTitle");


logger.info("The value of the title parameter is: "+title);

Output:The value of title is: com.jumper.dao@749436.

Can someone tell me what I need to do to get the value of the bean property instead of the class name.
 
First of all, try to avoid brightning colors, it hurts my eyes.

Second, use the property name to retrieve it.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top