I have a doubt. I have two modules A and B and both of them are in two different packages. Each Module has a
JSP page and a Bean and a Command.java(this program has the logic for what to do when a search button is clicked and so on)
Both JSPs search data from database based on the selections and show the data in the results. Both the main page and results are in the same JSP with the help of taglibraries.
Now, When the search button in A is clicked I have to show the search results of B, so how can I do that without duplicating the code in module B?
Will a forward do, with setting the properties in Bean and then forwarding to the JSP in B ?
If anyone know then please let me know.
Thanks,
Suresh