Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting scriptlet in HTML

 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't work" doesn't tell us anything at all that we can use to help you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65226
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic