Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enbed Struts Tags in JSP Scriptlet Code

 
Elle Atechsy
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Do to very limited time & a major struts tag learning curve we are using what we know, which is straight JSP scripting, for now. So, is it possible to embed struts tags within JSP scriptlet code?

We are using the properties file as a constants file, as well as for display messages. This is what I want to do, but if it can be done, this is not correct.

<%
if ( request.getAttribute(<bean:message key='appID.acronym'/>
+ "NavTree")) {
do something;
%>

Thanks for you assistance in advance.

Lulu
 
Nimchi Yung
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you can't.

You have to put valid java code inside scriptlet.

--Nimchi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic