File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes s:hidden's   title attribute not rendering 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 "s:hidden Watch "s:hidden New topic

s:hidden's title attribute not rendering

kannan ind

Joined: Apr 05, 2010
Posts: 5

im trying to add value to title attribute of s:hidden tag,but in the rendered html page the title value is not displayed.
am i missing something?

i need that value in title ,so that in final rendered HTML page i can use javascript to access the title value from hidden field

im using struts 2.1.6

David Newton

Joined: Sep 29, 2008
Posts: 12617

My guess is that if you look at the template it doesn't render a title. Why do you need to access a hidden input element's title? Perhaps there's a different way to do what you're trying to do.

(And I'm not sure why you'd want to disable a hidden element; if you don't want it submitted just don't render it.)
kannan ind

Joined: Apr 05, 2010
Posts: 5
Thanks David

i got it done with normal HTML tag

I agree. Here's the link:
subject: s:hidden's title attribute not rendering
Similar Threads
http 404 error in uploading the file
struts2 textfield tag not populating with correct value from action class
Passing arraylist as hidden variable in JSP Struts2 framework
Google Map Mashup in JSF
Problem with Hidden Tags