All,
I ran "Debug" and "Deploy" under NetBeans and found my error in line "result"
of struts.xml file.
Change
<result name="success">iteratorkfc.jsp</result> ** this line
causes error. '/' is missing
to
<result name="success">/iteratorkfc.jsp</result>
URL : http://localhost:8080/IteratorKFC/IteratorKFC/menu.action returns data
filled in the .jsp file
Tri Quan
-----Original Message-----
From: Tri Quan [mailto:[email protected]]
Sent: Tuesday, June 24, 2014 4:11 PM
To: 'Struts Users Mailing List'; [email protected]
Subject: RE: need help using Struts2 - interator
I use Netbeans-7.0, Tomcat 2.2.3, JDK1.6 for development and use ant-deploy
Per the perspective of Netbeans, iteratorkfc.jsp is under 'Web Pages'
Project IteratorKFC has the following structure:
InteratorKFC
Web Pages
META-INF
WEB-INF
iteratorkfc.jsp
Source Pages
Libraries
Configuration Files
Context.xml
Struts.xml
Web.xml
Do you see any issue with location of iteratorkfc.jsp ?
Error --> The requested resource (/IteratorKFC/IteratorKFC/iteratorkfc.jsp) is
not available.
Tri Quan
-----Original Message-----
From: Lukasz Lenart [mailto:[email protected]]
Sent: Tuesday, June 24, 2014 3:18 AM
To: Struts Users Mailing List
Subject: Re: need help using Struts2 - interator
2014-06-23 23:06 GMT+02:00 Tri Quan <[email protected]>:
> iteratorkfc.jsp file is in 'web' folder of the project. Its content
> listed
'web folder' means nothing, you cannot label folder web or js or css and expect
it will be automagically selected as a folder with web content. It depends on
build tool you are using, for Maven it is src/main/webapp, Eclipse uses
WebContent as I can recall
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]