Hello,
I am trying to build a search page for movie webite.. I am able to show the movie names when I search as links.
My requirment is when I clicked on the movie name I should be able to view the movie details. For which I used bean
efine tag.
<logic:iterate id="result" name="searchform" property="arl">
<bean
efine id="paramId" name="result" property="movie_id" />
<%params.put("passId",pageContext.findAttribute("paramId"));
pageContext.setAttribute("params",params);%>
<html:link action="/DisplayMovieDetails" name="params">
<bean:write name="result" property="movie_name" /></html:link>
</logic:iterate>
arl is my arraylist.
searchform is my formbean.
When I say Object requestId = request.getParameter("passId");
I am not getting the value:
my
struts config is
<action path="/DisplayMovieDetails" type="magfa.actions.DisplayMovieDetailsAction" name="moviedetailsform" scope="request" input="/SearchResults.jsp">
<forward name="success" path="/MovieDetails.jsp">
</forward>
Please tell me the error in this. If possible help me doing this in anyother form.
Thanks