• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Just using Struts tags

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic