Meaningless Drivel is fun!*
The moose likes Struts and the fly likes How to use message bundles in hidden field? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use message bundles in hidden field?" Watch "How to use message bundles in hidden field?" New topic
Author

How to use message bundles in hidden field?

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
Hi Team,

I am trying to use <html:hidden property='urlValue' styleId='urlValue' value='<fmt:message key="save.urlvalue'/>' />
But i am facing some jsp exception, like unterminated < <html:hidden> tag.

Could some one help me out in this.

Actual requirement is, in a button onclick function i am calling a javascript function, where i am passing some url to open in new window, for now we have hard coded the url value in javascript, but it should not be done for some security reasons, so trying to use the url value from message bundles and getting it in jsp page and passing as hidden value and getting it in javascript as d.getelementbyid('urlValue').value.

But facing exception on this.
 
Don't get me started about those stupid light bulbs.
 
subject: How to use message bundles in hidden field?
 
Similar Threads
JSP values into HTML hidden fields ? or javascript ?
populating jsp through javascript
populating jsp fields through javascript
access iterated struts tag in javascript
html:hidden