File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes  The requested resource (Servlet action is not available) is not available. ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " The requested resource (Servlet action is not available) is not available. ..." Watch " The requested resource (Servlet action is not available) is not available. ..." New topic

The requested resource (Servlet action is not available) is not available. ...

Paari Revo

Joined: Jun 05, 2012
Posts: 2
Below is my Struts.xml


<action path="/valid"
<forward name="success" path="/web/jsp/HiTech_HomePage_Home.jsp"/>
<forward name="reset" path="/web/jsp/HiTech_Login.jsp" />
<forward name="ErrorPage" path="/web/jsp/HiTech_ErrorPage_Error.jsp"/>
<forward name="error" path="/web/jsp/HiTech_Login.jsp" />


And also below is my jsp page..

Here i have given /valid but even though its kicking me back.

<html:form action="/" method="Post" >

<table class="DefaultTable" width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#BFD5FEA">
<table class="DefaultTable" width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#BFD5EA">
<td width="10%"><img src="/HitechEngineering/web/images/inner01.jpg" width="136" height="102" ></td>
<td width="33%" bgcolor="#294062"><div align="center">
<table class="DefaultTable" width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#294062">
<td width="14%"> </td>
<td width="78%"><font size="3" face="Verdana" color="#990000"> </font></td>
<td> </td>
<td><font size="4" face="Verdana" color="#FFFFFF"><b>HitechEngineering (Base From LEE)</b></font></td>
<td> </td>
<td><font size="2" face="Verdana" color="#990000"> </font></td>
<html:hidden property="module" value=""/>
<font size="3" face="Verdana" color="#990000"><b> </b></font></div></td>
<td width="57%" bgcolor="#294062"><table width="59%" border="0" cellspacing="0" cellpadding="0">
<td width="27%"> </td>
<td width="73%"><font size="3" face="Verdana" color="#990000"> </font></td>
<td> </td>
<td><font size="2" face="Verdana" color="#FFFFFF"> </font></td>
<td> </td>
<td><font size="1" face="Verdana" color="#FFFFFF"> </font></td>
<table width="100%" border="0"><tr>
<td height="31"></td>

<table width="92%" border align="center" cellpadding="0" cellspacing="0" bordercolor="#BFD5EA" color="cccccc">
<td width="326"><img src="/HitechEngineering/web/images/welcome1.jpg" width="600" height="400" ></td>
<td width="627">
<table border="0" align="center">

<td width="375" align="center"><font size="6" face="Verdana" color="#0C285F">HitechEngineering</font></td>
<td align="center"><table width="97%" height="146" border="0" cellpadding="0" cellspacing="0">
<td width="34%"> </td>
<td width="2%"> </td>
<td width="46%"><font size="3" face="Verdana" color="#990000"> </font></td>

<td>        <b><font color="#000033" size="2" face="Verdana">UserName<FONT SIZE="1" COLOR="#FF0000">*</FONT> </font></b></td>
<td> </td>
<td><html:text property="userName" maxlength="20" size="40"/></td>

<td>        <b><font color="#000033" size="2" face="Verdana">Password<FONT SIZE="1" COLOR="#FF0000">*</FONT> </font></b></td>
<td> </td>
<td><html:password property="password" maxlength="20" size="40"/></td>

<td align="right"> </td>
<td> </td>
<!-- submit button for login button -->
<html:submit value="Login" styleClass="Button" />
<!-- submit button for clear button -->
<html:submit value="Clear" styleClass="Button" />

<%-- User Name :<html:text property="userName" maxlength="6" size="31"/>
Password :<html:password property="password" maxlength="20" size="40"/> --%>
</html:form >

Action class is:
public ActionForward login(ActionMapping mapping,ActionForm form,
HttpServletRequest request,HttpServletResponse response) throws Exception {

// Business Logics..

Can any one help me on this please..
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Paari,

Welcome to JavaRanch!!!

1. As you used colors in the post we also have "code" tags. Additionally, the designers of this great forum also provided a "preview" button to verify the post before submitting. Please make best use of it.

2. I think you would have had an exception thrown at deployment time/server startup. Please check your server startup logs and if that is happening post the stack trace.
3. If 2 is wrong, then still post the stack trace when you are getting the exception. This is no logic problem, it should be configuration problem.

Have Fun with Java
little,little.. little by little makes a lot..
I agree. Here's the link:
subject: The requested resource (Servlet action is not available) is not available. ...
It's not a secret anymore!