tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ⱥ" <>
Subject Re: import files question under Tomcat6.0.13
Date Thu, 12 Jul 2007 10:52:23 GMT
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 <> 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
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
So I replace your code

> <c:import url="/example/HelloWorld.action"/>

with <c:import url="/example/HelloWorld.jsp"/> and things goes what I expected.
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
since the application can't even be successfully deployed, don't know what is

Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto
Green Center. 

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message