I tried to use the same environment to get the error that you said recur. With Tomcat 6.0.13 and jakarta-taglibs-standard-1.1.2, browsing http://localhost:8080/struts2-blank-2.0.8/a.jsp when using your code produces the same output with you.
--- red phoenix <[EMAIL PROTECTED]> wrote: > The requested resource (/struts2-blank-2.0.8/example/HelloWorld.action) is > not available > Since I'm new to struts, I'm not aquainted with *.action in the url. After looking around I find there is a HelloWorld.jsp in the example directory, and it would possibly be that WEB-INF\src\java\example.xml which defines the HelloWorld action, and the definition seems to be struts-only, which probably unknown by taglibs. So I replace your code > <c:import url="/example/HelloWorld.action"/> with <c:import url="/example/HelloWorld.jsp"/> and things goes what I expected. Using the c:import tag, I can successfully import *.html *.jsp files. There remains one question, why does struts use the *.action form to construct a url, maybe this question would be better posted on the struts user list, hehe. > Someone say before Tomcat5,it will run well,but after Tomcat5 or higher,it > will raise above error.I only want to use relative path,not absolute path,I > don't know why raise above error,and how to correct it? I also tried running the application in Tomcat 5.0.28, the error didn't occured, since the application can't even be successfully deployed, don't know what is the cause. ____________________________________________________________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]