• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A jsp scriptlet question

 
Ramina Nibilian
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello , thank you for reading my post.
I have a jsp file which i define some String array variable in it :
for example :
<% String [] StrindOfSystem = {"strSys1","StrSys2","",""} %>
I used content of this array in some places , no i want to be able to internationalize it
I tried using <bean:message key="str1" /> in place of any " StrSys " but it can not read the data
can you pleas tell me how i can solve it ?
 
leon fan
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason is that JSP expressions, scriptlets, and declarations only let you insert simple Java code, So Scriptlets won't support tag inline.
 
giri viswanadhuni
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the same using tag libraries.
 
kirtikumar patel
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
you can resolve this problem by used of Messages object in frame work and you can get message one by one as object and add it into messages collection obj.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic