File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes A jsp scriptlet question 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 » Java » JSP
Bookmark "A jsp scriptlet question" Watch "A jsp scriptlet question" New topic
Author

A jsp scriptlet question

Ramina Nibilian
Ranch Hand

Joined: Mar 30, 2005
Posts: 65
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

Joined: Aug 02, 2004
Posts: 19
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

Joined: Jun 08, 2005
Posts: 1
Try the same using tag libraries.
kirtikumar patel
Greenhorn

Joined: Jun 29, 2005
Posts: 14
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.


kirti patel<br />software engiener<br />pune
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A jsp scriptlet question
 
Similar Threads
How to display string array value in jsp for html:text box
render string array in xslt
how to assign java vaiable value from resource file (array cells from resource)?
a question about a drop-down menu
Nested members in XML-RPC