This is the problem I am facing everytime I am creating new project in Netbeans and modify the default pages. Am I missing some sequence of action or parameters. To make it clear I am including most of the code which I think are related. Can any one suggets me why I am getting following error when I run my application.

*type* Status report

*message* _Servlet action is currently unavailable_

*description* _The requested service (Servlet action is currently unavailable) is not currently available.
_

_
_Code fragments_
_

1. Tiles layout jsp page (tiles.jsp)
-----------------------------------------
<html>
<head>
<link rel="stylesheet" href="css/dynamic_css.css" media="screen, projection" type="text/css" />
<title><tiles:getAsString name="title" ignore="true"/></title>
<meta HTTP-EQUIV="Pragma" content="no-cache">
<meta HTTP-EQUIV="Expires" content="-1">
</head>

<body>
<div id="everyoneneedsawrapper">
<img id="logo" src="images/myLogo.png" alt="logo">
<div id="header"><tiles:insert attribute="header"/></div>
<div id="content"><tiles:insert attribute="body"/></div>
<div id="footer"><tiles:insert attribute="footer"/></div>
</div>
</body>
</html>

2. I have struts tiles as
----------------------------
<definition name=".mainLayout" path="/tiles/layout.jsp">
<put name="title"  value=":: Agent Managing Application ::" />
<put name="header" value="/pages/header.jsp" />
<put name="footer" value="/pages/footer.jsp" />
<put name="content"   value="/pages/login.jsp" />
</definition>

<definition name="groupingPage" extends=".mainLayout">
<put name="title"  value=":: Group Manage Page ::" />
<put name="content"   value="/pages/groupIn.jsp" />
</definition>

<definition name="loginPage" extends=".mainLayout">
<put name="title"  value=":: Login Page ::" />
<put name="content"   value="/pages/login.jsp" />
</definition>

3. My struts-config files as
---------------------------------
<action-mappings>
<action path="/Login" forward="loginPage"/>

<action input="loginPage" name="LoginForm" path="/loginsubmit"
scope="request" type="gov.ma.itd.grouping.actions.LoginAction" >
<forward name="success" path="groupingPage" />
<forward name="failure" path="loginPage" />
</action>
</action-mappings>

4. My web.xml files as
---------------------------
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
            30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

5. index.jsp
------------
<jsp:forward page="Login.do"/>

6. And ofcourse I have login.jsp, groupIn.jsp, header.jsp, and footer.jsp pages.

Thanks
Anjib






Reply via email to