aspose file tools*
The moose likes Struts and the fly likes Enbed Struts Tags in JSP Scriptlet Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Enbed Struts Tags in JSP Scriptlet Code" Watch "Enbed Struts Tags in JSP Scriptlet Code" New topic
Author

Enbed Struts Tags in JSP Scriptlet Code

Elle Atechsy
Ranch Hand

Joined: Jan 23, 2004
Posts: 96
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

Joined: Jan 27, 2004
Posts: 71
No, you can't.

You have to put valid java code inside scriptlet.

--Nimchi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enbed Struts Tags in JSP Scriptlet Code