Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

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

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    Below is my Struts.xml

    <action-mappings>

    <action path="/valid"
    type="com.hitech.customer.actions.LoginAction"
    name="loginForm"
    scope="session"
    parameter="module"
    input="/web/jsp/HiTech_Login.jsp">
    <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" />
    </action>

    </action-mappings>

    And also below is my jsp page..

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

    <html:form action="/valid.do" method="Post" >

    <table class="DefaultTable" width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#BFD5FEA">
    <tr>
    <table class="DefaultTable" width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#BFD5EA">
    <tr>
    <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">
    <tr>
    <td width="14%">&nbsp;</td>
    <td width="78%"><font size="3" face="Verdana" color="#990000">&nbsp;</font></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><font size="4" face="Verdana" color="#FFFFFF"><b>HitechEngineering (Base From LEE)</b></font></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><font size="2" face="Verdana" color="#990000">&nbsp;</font></td>
    </tr>
    </table>
    <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">
    <tr>
    <td width="27%">&nbsp;</td>
    <td width="73%"><font size="3" face="Verdana" color="#990000">&nbsp;</font></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><font size="2" face="Verdana" color="#FFFFFF">&nbsp;</font></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><font size="1" face="Verdana" color="#FFFFFF">&nbsp;</font></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </table>
    <table width="100%" border="0"><tr>
    <td height="31"></td>
    </tr></table>

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


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

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

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

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

    <%-- User Name :<html:text property="userName" maxlength="6" size="31"/>
    Password :<html:password property="password" maxlength="20" size="40"/> --%>
    </table>
    </table>
    </table>
    </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..


  2. #2
    Member
    Join Date
    Apr 2012
    Location
    Superior, CO, USA
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default Re: The requested resource (Servlet action is not available) is not available.

    Check your log file. It sounds like the application didn't deploy correctly.
    Need Java help? Check out the HotJoe Java Help forums!

Similar Threads

  1. Cannot assign requested address
    By frozen java in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 12th, 2012, 01:32 PM
  2. [SOLVED] Resource Injection
    By newbie in forum JDBC & Databases
    Replies: 2
    Last Post: March 22nd, 2011, 04:27 PM
  3. HTTP Status 404-The requested resource is not available.
    By DeViLhUnTeR in forum Java Servlet
    Replies: 2
    Last Post: March 7th, 2011, 01:26 PM
  4. Replies: 2
    Last Post: August 4th, 2009, 11:25 PM
  5. Java Learning Resource for Beginners
    By Freaky Chris in forum The Cafe
    Replies: 1
    Last Post: April 29th, 2009, 04:57 AM