File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Just using Struts tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Just using Struts tags" Watch "Just using Struts tags" New topic
Author

Just using Struts tags

Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
hi all

Is it possible to just put the struts jars in your lib and import the tags into your jsp? I mean without having to install and use the framework. I am curious because I came from a project that used struts and now I am on one that does not. I miss a lot of the tags we used in the jsps. I have been user JSTL and EL, but sometimes I need a little more.

Any thoughts,

AMD
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Yes, it is possible to use Struts custom tags without using the entire framework. You would still need the full complement of Struts jar files in your WEB-INF/lib directory, including the commons-xxx.jar files that come with the Struts download.

Some tags don't make any sense if you're not using the framework, though. For example, all the <html:xxx> tags require a Struts ActionForm or they don't make any sense. Most of the other tags such as <logic:xxx> and <bean:xxx> have corresponding JSTL tags that do the same job as well or better. I don't see a lot of benefit from using Struts tags without the Struts framework.


Merrill
Consultant, Sima Solutions
Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Thanks Merrill

What do you think of useing Struts with portlets? I am a little confused because with struts and servlets it is easy to have a controler handle requests. With portlets this type of design seems a lot harder to achieve.

Any thoughts?

Thanks,

AMD
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'm fairly new to Portlets myself. I know it's possible to develop portlets using Struts. IBM's WebSphere Portal Server has a Struts adapter for its portlet development environment. I would expect that other portal environments may have them as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Just using Struts tags