Foros de discusión

Search in my library

Paolo da Vinci, modificado hace 15 años.

Search in my library

Junior Member Mensajes: 34 Fecha de incorporación: 1/02/09 Mensajes recientes
Hi people! I'm creating a new portle for search a book in my library (database). In the first page (page1.jsp) there is a form where the user put the words for search.
Now, I would like to set the cmd when the user click on button "search" , so when the portlet sees that there is a search should be to make the query to dataase.


This is the control in portlet:

String cmd = ParamUtil.getString(request, Constants.CMD);

if (cmd.equals(Constants.SEARCH))
 {
   .........................
.....................
...............


How can I do this in my page1.jsp??