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("Wfalse");
               }

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Please don't post the same question multiple times. I've to close this thread since on the other thread there are few replays. If you have any question send a message to me.

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, 05:33 AM
  2. Struts: pass data to other form
    By sgoyal in forum Advanced Java
    Replies: 1
    Last Post: 10-01-2009, 05:12 AM
  3. Servlet action is not available in struts
    By anilonwebs in forum Web Frameworks
    Replies: 0
    Last Post: 11-21-2008, 06:20 AM
  4. How to pass two parameter in struts-config using dynaActionForm
    By 82rathi.angara in forum Web Frameworks
    Replies: 2
    Last Post: 06-10-2008, 02: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
  •