|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
/struts-tags not foundhello,
on our app we are getting error: PWC6117: File "/struts-tags" not found App is running on Sun App Server 9.1 struts2-core-2.0.6.jar is in class path of the application server. Code in the JSP: <%@ taglib prefix="s" uri="/struts-tags" %> What can we do to fix this error? I assume since the struts2 core jar is on the app server and not physically in our WEB-INF/lib we maybe need to reference the struts-tags in a different way. but how? We want to avoid putting struts2 core in our application web-inf/lib Thanks -bhaarat |
|
|
Re: /struts-tags not foundThere are other ways to define a tag library, from jsp spec:
"The container searches for all files with a .tld extension under /WEB-INF or a subdirectory, and inside JAR files that are in /WEB-INF/lib. When examining a JAR file, only resources under /META-INF or a subdirectory are considered. The order in which these files are searched for is implementation-specific and should not be relied on by web applications." so you can just extract the tld file in there. or map it in web.xml: " The web.xml file can include an explicit taglib map between URIs and TLD resource paths described using the taglib elements of the Web Application Deploy- ment descriptor in WEB-INF/web.xml. See Section JSP.3.2, “Taglib Map” for more details." musachy On Tue, Oct 27, 2009 at 1:07 PM, Bhaarat Sharma <bhaarat.s@...> wrote: > hello, > > on our app we are getting error: PWC6117: File "/struts-tags" not found > > App is running on Sun App Server 9.1 > > struts2-core-2.0.6.jar is in class path of the application server. > > Code in the JSP: > > <%@ taglib prefix="s" uri="/struts-tags" %> > > What can we do to fix this error? > > I assume since the struts2 core jar is on the app server and not physically > in our WEB-INF/lib we maybe need to reference the struts-tags in a different > way. but how? > > We want to avoid putting struts2 core in our application web-inf/lib > > Thanks > -bhaarat > -- Screw John Galt, who is Martin Gainty? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: /struts-tags not foundIf I just extract it in /WEB-INF then I dont have to go back and change all
my jsp's If I create a map in web.xml to point to tags on app server class path then I will have to change all my jsp's But just curious. what will the mapping look like? <taglib> <taglib-uri>/WEB-INF/struts-tags.tld</taglib-uri> <taglib-location>/WEB-INF/struts-tags.tld</taglib-location> </taglib> what should I change the above taglib-location to...so that it points to struts2core on app server class path? On Tue, Oct 27, 2009 at 4:18 PM, Musachy Barroso <musachy@...> wrote: > There are other ways to define a tag library, from jsp spec: > > "The container searches for all files with a .tld extension under /WEB-INF > or a > subdirectory, and inside JAR files that are in /WEB-INF/lib. When examining > a > JAR file, only resources under /META-INF or a subdirectory are considered. > The order in which these files are searched for is implementation-specific > and > should not be relied on by web applications." > > so you can just extract the tld file in there. or map it in web.xml: > > " The web.xml file can include an explicit taglib map between URIs and TLD > resource paths described using the taglib elements of the Web > Application Deploy- > ment descriptor in WEB-INF/web.xml. See Section JSP.3.2, “Taglib Map” for > more > details." > > musachy > > On Tue, Oct 27, 2009 at 1:07 PM, Bhaarat Sharma <bhaarat.s@...> > wrote: > > hello, > > > > on our app we are getting error: PWC6117: File "/struts-tags" not found > > > > App is running on Sun App Server 9.1 > > > > struts2-core-2.0.6.jar is in class path of the application server. > > > > Code in the JSP: > > > > <%@ taglib prefix="s" uri="/struts-tags" %> > > > > What can we do to fix this error? > > > > I assume since the struts2 core jar is on the app server and not > physically > > in our WEB-INF/lib we maybe need to reference the struts-tags in a > different > > way. but how? > > > > We want to avoid putting struts2 core in our application web-inf/lib > > > > Thanks > > -bhaarat > > > > > > -- > Screw John Galt, who is Martin Gainty? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > |
|
|
Re: /struts-tags not foundI have never used this approach, but I am guessing it would be:
<taglib> <taglib-uri>/struts-tags</taglib-uri> <!-- the value of taglib's uri--> <taglib-location>/WEB-INF/struts-tags.tld</taglib-location> </taglib> On Tue, Oct 27, 2009 at 1:29 PM, Bhaarat Sharma <bhaarat.s@...> wrote: > <taglib> > <taglib-uri>/WEB-INF/struts-tags.tld</taglib-uri> > <taglib-location>/WEB-INF/struts-tags.tld</taglib-location> > </taglib> > -- Screw John Galt, who is Martin Gainty? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |