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:quans...@wans.net] 
Sent: Tuesday, June 24, 2014 4:11 PM
To: 'Struts Users Mailing List'; lukaszlen...@apache.org
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:lukaszlen...@apache.org]
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 <quans...@wans.net>:
> 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: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to