This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes row id to display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "row id to display tag" Watch "row id to display tag" New topic
Author

row id to display tag

divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
can i pass row id to display table ?


SCJP - 5.0
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Please make sure whether it is display tag or table. I suspect display tag provide a param name and param value attributes. Please confirm from display tag site.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
i m using display:table can i set rowid using display:setProperty
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

I can't help you in that regard, never used display tag, and as I already said, you've to consult display tag tlds/docs.
divya kundapur
Ranch Hand

Joined: Aug 21, 2007
Posts: 110
In case it helps anybody in future i have my code below which worked, i wanted a row id to be in this pattern ROW_NUMtrID

so theres a arraylist which gives me the row count and the other Test_id is a property from the bean which is used to populate display table

include the dyndecorator in your display:table decorator attribute ... decorator="dyndecorator"

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Good and I hope this code is for testing purpose, because using scriptlet in JSP is considered as bad practice.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: row id to display tag
 
Similar Threads
show/hide the contents of the table
Generate dynamic id for rowlayout in Trinidad
Dynamically Adding Row in JSF
Dynamically Scrolling to the newly added row in HTML table.
Error while displaying validation message for inputText generated dynamically in rich:dataTable