> I have a List box in jsp file, 

Is a List box an HTML <select> that allows multiple selections?

> and I try to delete only selected values. 
> Could you please tell me how to
> get the selected values, 

What does the corresponding Form bean property look like?  I don't have any
multiple select lists, but I think you use String[] for the get/set methods
in the Form bean, and Struts will populate it from the Request.  Take a look
at the struts-example webapp, it probably has an example of this.

> then delete them? the data is
> store in the database, so I need process delete action
> in server to delete them.

This part is not really Struts-specific.  You need to have already figured
out your data access layer before you add Struts to the mix.  And you
haven't told us what database, whether it has a JDBC driver, etc., so it's
pretty hard to advise.  While you _can_ put JDBC code directly in your
delete Action, resist the temptation!  Unless this is a small one-time
project purely for demonstration purposes, do it right the first time, or
else you'll be back doing it over later.  (BTDT... ;)

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Public Affairs, Information Resources Management
Arizona State University, Tempe AZ 

Reply via email to