wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Enbed Struts Tags in JSP Scriptlet Code" Watch "Enbed Struts Tags in JSP Scriptlet Code" New topic

Enbed Struts Tags in JSP Scriptlet Code

Elle Atechsy
Ranch Hand

Joined: Jan 23, 2004
Posts: 96

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.

Nimchi Yung
Ranch Hand

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

You have to put valid java code inside scriptlet.

I agree. Here's the link: http://aspose.com/file-tools
subject: Enbed Struts Tags in JSP Scriptlet Code
Similar Threads
Difference between struts-html and struts-html-el taglibs
Scripting Invalid
Javascript Vs JSP Loops
Select Box question
Problem in running struts application