Struts 2 error.

11 views
Skip to first unread message

henry joe

unread,
Mar 26, 2013, 8:55:22 AM3/26/13
to JPassion.com: Java Programming
Hello guys,

I am new to struts2 and i was trying out a project. I have attached the project below. I need help with why it is not running. when I deployed it using glassfish, it shows nothing. Could anyone suggest what the problem is by running the project on their work station. Thanks

Br,

Henry


MyStrut2.zip

Saravanan Cd

unread,
Mar 26, 2013, 12:58:18 PM3/26/13
to kan...@gmail.com, JPassion.com: Java Programming
Hi Henry,

The project does'nt run for couple of reasons.

1. Login,jsp ---> missed out <s:form> </s:form>

within s:form --->property file value fetching will not work

2.. LoginAction ---> use getUsername and getPassword.

3. Invalid Struts.xml ---mapping action and action class

4. invalid web.xml


I have modified all files and have sent you the code alone.

Hope you are having the valid libs inside WEB-INF/lib

commons-logging-1.1.jar
xwork-2.0.1.jar
struts2-core-2.0.6.jar
ognl-2.6.11.jar
freemarker-2.3.8.jar

I have modified it in eclipse and ran against tomcat,it does work fine,the version of mine.
It is working fine


Thanks,
Saravanan CD

--
You received this message because you are subscribed to the Google Groups "JPassion.com: Java Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpassion_jav...@googlegroups.com.
Visit this group at http://groups.google.com/group/jpassion_java?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Struts2.zip
Reply all
Reply to author
Forward
0 new messages