I just change the to url to href="/ibmss/getstudent.do paramId="name" paramProperty="name"/> and
I didn't get any error but I'm still having trouble when I will populate a form with the datas I get from the preceding view. In fact what I want to do is to when a user select a person in my view page (where I have defined the link) is to pass all the datas to an action named getstudent. In this action I create a new ActionForm and populate with the datas I just pick from my action. I 've do some System.out.println just to test if my datas was taken. But I'm still having trouble when I want to forward theses datas to an editstudent view page. I define in my getstudent action an execute method who do this job : public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { try { form = buildStudent(request.getParameter("name")); if (form == null) { System.out.println ("form nulle"); } if ("request".equals(mapping.getScope() )) { System.out.println("<<<----request---->>>"); request.setAttribute(mapping.getAttribute(), form); } else { System.out.println("<<<----session---->>>"); HttpSession session = request.getSession(); session.setAttribute(mapping.getAttribute(), form); } } catch (Exception ex) { } return mapping.findForward("success"); The buildStudent(request.getParameter("name")) method build me the a new form with the existing datas. But when I run my editstudent view page have blank field. My mapping is defined this way : <action attribute="studentForm" input="/form/editstudent.jsp" name="studentForm" path="/editstudent" type="soft.ibmss.struts.action.Action"> <forward name="success" path="/editstudent.do" /> <forward name="failure" path="/form/viewstudent.jsp" /> </action> <action path="/getstudent" name="studentForm" scope="request" validate="false" type="soft.ibmss.struts.action.GetstudentAction"> <forward name="success" path="/form/editstudent.jsp" /> </action> Any idea ???? Thank you in advance. -- Alexandre Jaquet ----- Original Message ----- From: "alexj" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 8:03 PM Subject: passing parameter between a view and an action with <display> > Hi, > > I'm been looking how can I passe a parameter between a view to an action > using > > the <display tag lib. I'm not sure if I can do it that way : > > > > <display:column property="name" title="Nom" > href="/ibmss/getstudent.do?name=" paramId="name" paramProperty="name"/> > > Thanks for your help. > > <-- > Alexandre Jaquet > -> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]