You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ghan_java <gh...@yahoo.co.in> on 2008/04/06 10:13:32 UTC

The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.

hi , i tried to add new jsp  in struts2-blank application, iand i have
configer it into  sturts.xml 
but it's 

<package name="ems" extends="struts-default" namespace="/ems">
		<default-interceptor-ref name="crudStack" />

		<action name="list" class="action.EmsAction" method="list">
			<result>/emsitem/emsList.jsp</result>
			<interceptor-ref name="basicStack" />
		</action>
		<action name="edit" class="action.EmsAction">
			<result>/emsitem/editItem.jsp</result>
			<interceptor-ref name="params" />
			<interceptor-ref name="basicStack" />
		</action>


but when i try run these jsp on server , it not responded me ..

-- 
View this message in context: http://www.nabble.com/The-requested-resource-%28-struts2-blank-2.0.11.1-emsitem-index.jsp%29-is-not-available.-tp16521956p16521956.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.

Posted by Dave Newton <ne...@yahoo.com>.
--- Eric Nelson <er...@unishippers.com> wrote:
> Hi Ghan.  You're not trying to directly access the JSP are you?  For
> instance, browsing to http://host/emsitem/emsList.jsp?  You need to go
> through the action: http://host/context/list.action, and then make sure
> that your action bean returns a result string of "SUCCESS", and it will
> automatically navigate to your resulting JSP page.

Navigating directly to the JSP, if the JSP isn't in the /WEB-INF hierarchy,
shouldn't return anything like "not available". Any issues would be data-
and/or tag-related.

It's more likely that either: the app or JSP isn't being deployed, or there's
a configuration issue.

With no real error message provided in the original post it's impossible to
say, though.

Dave


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


RE: The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.

Posted by Eric Nelson <er...@unishippers.com>.
Hi Ghan.  You're not trying to directly access the JSP are you?  For
instance, browsing to http://host/emsitem/emsList.jsp?  You need to go
through the action: http://host/context/list.action, and then make sure
that your action bean returns a result string of "SUCCESS", and it will
automatically navigate to your resulting JSP page.

--Eric

-----Original Message-----
From: ghan_java [mailto:ghanshyam_ambah@yahoo.co.in] 
Sent: Sunday, April 06, 2008 2:14 AM
To: user@struts.apache.org
Subject: The requested resource
(/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.


hi , i tried to add new jsp  in struts2-blank application, iand i have
configer it into  sturts.xml 
but it's 

<package name="ems" extends="struts-default" namespace="/ems">
		<default-interceptor-ref name="crudStack" />

		<action name="list" class="action.EmsAction"
method="list">
			<result>/emsitem/emsList.jsp</result>
			<interceptor-ref name="basicStack" />
		</action>
		<action name="edit" class="action.EmsAction">
			<result>/emsitem/editItem.jsp</result>
			<interceptor-ref name="params" />
			<interceptor-ref name="basicStack" />
		</action>


but when i try run these jsp on server , it not responded me ..

-- 
View this message in context:
http://www.nabble.com/The-requested-resource-%28-struts2-blank-2.0.11.1-
emsitem-index.jsp%29-is-not-available.-tp16521956p16521956.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


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