wood burning stoves 2.0*
The moose likes Struts and the fly likes Using struts taglib without the framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using struts taglib without the framework" Watch "Using struts taglib without the framework" New topic
Author

Using struts taglib without the framework

John Robert
Ranch Hand

Joined: Jun 17, 2008
Posts: 39
Ranchers,
I am writing an application, where I want to use the struts taglib only not the frame work. When I tried doing that I get an error struts tags without associated filter. I am using struts version 2.1.8

thanks
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Why would you do that..? Isn't JSTL good enough?


OCJP 6 (93%)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why on earth would you want to use Struts 2 tags without Struts 2?

In any case, there is no possible way that will work. The Struts 2 tags are just that: Struts 2 tags, and will not survive outside of their natural habitat.
John Robert
Ranch Hand

Joined: Jun 17, 2008
Posts: 39
Ok thanks. I will look into jstl. I worked on struts 1.1 and am comfortable with struts tags. I belive I read somewhere struts tags can be used without the framework, may be I read it in the wrong context. I am trying to look for a taglib, that would help me maintain the state of elements on the JSP across requests.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yeah, that's never been true, in Struts 1 or Struts 2.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using struts taglib without the framework