Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assigning a Value in to String variable using JSTL

 
Latha Prudhivi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have one property file with the name _en.properties.
Basically i need to find the length of the string which is defined in property file. and use the length inside some scriplet code.
Here is an example :-
<fmt_rt:message key="labelAuthorization"/> this is teh key variable to get the value
is there any way i can declare the variable and assign it using taglibs and use the same for next internal purposes say for eg the code will be like this
<% String auth =""; %>
<fmt_rt:set var="auth" value=value= <fmt_rt:message key="labelAuthorization"/> />
then i am using the auth to find out the length of the given string. but it is not working properly.....
I will appreciate if you look into this issue and gaive me some suggestion regarding the same..........
Thanks
Prudhivi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic