Results 1 to 2 of 2
Thread: pass value to action.do struts
- 11-13-2009, 02:41 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 26
- Rep Power
- 0
pass value to action.do struts
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.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>
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"); }
- 11-13-2009, 02:58 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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
-
decorator.jsp problem building Struts Menu in JSP when Struts action is used
By dkirvan in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-29-2010, 05:33 AM -
Struts: pass data to other form
By sgoyal in forum Advanced JavaReplies: 1Last Post: 10-01-2009, 05:12 AM -
Servlet action is not available in struts
By anilonwebs in forum Web FrameworksReplies: 0Last Post: 11-21-2008, 06:20 AM -
How to pass two parameter in struts-config using dynaActionForm
By 82rathi.angara in forum Web FrameworksReplies: 2Last Post: 06-10-2008, 02:43 PM


LinkBack URL
About LinkBacks

Bookmarks