in ur actionhandler class code for each request...
do something lik
public static Hashtable getParameters(HttpServletRequest request) {
Enumeration enum = request.getParameterNames();
Hashtable parameterContainer = new Hashtable();
while(enum.hasMoreElements()) {
String name = (String)enum.nextElement();
String edit[] = request.getParameterValues(name);
if (edit != null) {
HashSet hashset = new HashSet();
for(int i=0; i<edit.length; i++) {
hashset.add(edit[i]);
}
parameterContainer.put(name, hashset);
}
}
return parameterContainer;
}
so that u get more then 1 request in ur action handler and then forward them
each to the jsp that u wud lik to
if u want that the user shud select at a time only one row...
use radio button instead of check box....
cheers
susmita
-----Original Message-----
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 1:06 PM
To: Struts Users Mailing List
Subject: few questions about design struts application
Hi,
I have to develop a website using struts, most all my webpages will be add,
change, delete, display type.
Like, i will show about 20 records per page, each one will have a checkbox,
there will be 3 buttons on bottom.. Add, Change, Delete,
so if the user clicks add, i will show him add screen and add the record, if
user selects one record and presses change i will show the user data where
he can change and same in delete..
now how can i decide on the action class on my first display page, also the
form tag, so when the user clicks add direct him to add.jsp, if change or
delete to change or delete.jsp with the selected value and also have
validtion like user cannot use change unless he clicks one row, also cannot
click more then one row for change etc.
Any comments will be appreciated
A$HI$H
---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>