This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes Passing JSP Expression in Query Strings in DisplayTag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Passing JSP Expression in Query Strings in DisplayTag" Watch "Passing JSP Expression in Query Strings in DisplayTag" New topic
Author

Passing JSP Expression in Query Strings in DisplayTag

sapna dhamone
Greenhorn

Joined: Apr 17, 2008
Posts: 5
Hi All,

I am facing a typical problem.i need information on this display tag usage

currently i am using display tag in this way.

<display:table name="sessionScope.LIST" pagesize="50" class="simple" id="cgList">
<bean:define id="selValue" name="showCgLtForm" property="selPos">
<display:column style="{width: 80px;}" property="label" title="key"
sortable="true" headerClass="sortable" href="cgConfig.do?
action=display&position=<bean:write name='selValue'>"

paramId="label"/>
</bean:define>
<display:column style="{width: 450px;}" property="value" title="value" />
</display:table>

when i am trying to retrieve the query string "position" .i get only the
this value as "<bean:write name" rather than selValue.

the other option i tried:
href="cgConfig.do?action=display&position=<%=selValue %>>"

even this is displaying null value.

Does the bean define tag doesnt work in conjuction with display:column?

any suggestions and help would be thankful!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Passing JSP Expression in Query Strings in DisplayTag