Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to pass to parameters using <html:link> in struts

843838Mar 27 2006 — edited Mar 27 2006
Hello,

I want send the two parametername [i.e opertaion and userid] to next page.

this is my code in jsp

"emp_val" is arry list object that having userId.

<bean:define id="user_id" name="emp_val" property="userId"/>
<html:link page="/editEmployee.do?operation=edit_view&userId=<%=user_id %>">Edit</html:link>

in struts-config.xml :

<action path="/editEmployee"
name="EmployeeListForm"
type="com.pack1.Employee">
<forward name="edit_success" path="/jsp/Edit_Employee.jsp"/>
</action>

when i clik this link next page showing NullPointer Exception.

Advance thanx...............
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2006
Added on Mar 27 2006
2 comments
136 views