This is regarding struts 2.
I have my jsp "login.jsp" directly under context root of my web application.
I want to change the location of jsp to a folder jsps and specify the result to jsps/login.jsp.
How do I acheive this???
So, basically I want to be able to change the result tag of my action
from
<result name="input">login.jsp</result>
to
<result name="input">
jsps/login.jsp</result>
If I try this, the server tells me no resource available.
Thanks in advance.
I have the following struts.xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />
<package name="system-default" namespace="/" extends="struts-default">
<action name="LoginUser" class="bra.controller.LoginController">
<result name="input">login.jsp</result>
</action>
</package>
</struts>