aspose file tools*
The moose likes JSP and the fly likes Inserting scriptlet in HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Inserting scriptlet in HTML" Watch "Inserting scriptlet in HTML" New topic
Author

Inserting scriptlet in HTML

Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
Good day!

I want to externalize the string or values of my JSP in a properties file.
I have this code from my applet tag



I have imported the Messages class in my page, but still this does not
work. Is this not possible?

I have also tried this one but it doesn't work also.




Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

It doesn't work" doesn't tell us anything at all that we can use to help you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

P.S. At this point in time you should be using the JSTL internationalization tags for this sort of thing rather than rolling your own with scriptlets.
Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
What I meant by that is I followed the usual method of putting in scriptlets
in the HTML as what the tutorials have indicated. But just found out that not all of the time or in my present problem, this usual method doesn't apply.

Anyway, thanks for the advice I'll be looking now in the JSTL internationalization tags and try to implement it in my JSP.

Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting scriptlet in HTML
 
Similar Threads
<f:ajax> tag not responding when adding trinidad jars
JBoss-EL + GlassFish com.sun.faces.expressionFactory
JSF 1.1 and Tomcat 6
Help with setting up Tomcat 6.018 for Python scripts
Multiple Struts-config.xml in Jboss 4.2.1