Vinit Sacheti

Greenhorn
+ Follow
since Apr 09, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vinit Sacheti

I have following design requirement
Page 1 - Save Category (it has name, description, status)
Page 2 - List Product (List All the Products with some search condition)
Page 3 - List Category (List All the Categories with some search condition)


From Page 1 , on hitting next, should go to Page 2, after saving Category
From Page 1, on hitting back, should go to Page 3, after saving category

I am using following pattern
Page1.jsp --> ApplicationControllerServlet - CommandFactory - SaveCategoryCommand - CategoryDAO.

I am not sure what pattern to user for Listing the Category and Product.
What I can think of currently is
I can add two more commands like ListCategoryCommand & ListProductCommand. But how will I link the various Command.

Any Suggesstion will be most welcome.
You can store them as hiddent variables. And it will be available for the next request.
<% String cmdDesc = (String)request.getAttribute("cmdDesc");
String resourceIdList = (String)request.getAttribute("resourceIdList");
%>
<input type="hidden" name="cmdDesc" value=<%=cmdDesc%>"

For the next reqest, get the value as
request.getParameter("cmdDesc")
16 years ago
JSP