Results 1 to 2 of 2
  1. #1
    munish is offline Member
    Join Date
    Jul 2009
    Posts
    37
    Rep Power
    0

    Default pass value to action.do struts

    Java Code:
    <bean:define id="dVar" type="java.lang.String"> <%=uname%> </bean:define>
    <td><struts:link page="/mdpaction.do?pageID=${dVar}" >Delete</struts:link></td>
    i am using this code for transfer the value of uname to mdpaction.do but error is coming: The requested resource (Invalid path was requested) is not available.

    and in mdpaction i am getting this value by
    Java Code:
    String uname=request.getParameter("pageID");
               if(uname!=null){
                   g.update("delete from login where userid="+uname);
                   return mapping.findForward("Wtrue");
               }

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    That means that the action wasn't found. Make sure you have correctly configured it in the config files.

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 06:33 AM
  2. pass value to action.do struts
    By munish in forum Web Frameworks
    Replies: 1
    Last Post: 11-13-2009, 03:58 PM
  3. Struts: pass data to other form
    By sgoyal in forum Advanced Java
    Replies: 1
    Last Post: 10-01-2009, 06:12 AM
  4. Servlet action is not available in struts
    By anilonwebs in forum Web Frameworks
    Replies: 0
    Last Post: 11-21-2008, 07:20 AM
  5. How to pass two parameter in struts-config using dynaActionForm
    By 82rathi.angara in forum Web Frameworks
    Replies: 2
    Last Post: 06-10-2008, 03:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •