This is my requirement. I have couple of columns in a table where one is a key and another is a value. I need to show those values in those pages which are mapped to the key(different pages are identified by using the key).
I thought of using a generic JSP page and control the display with logic equal tags. But my problem is how to trigger the query to fetch the values in the included JSP page.
I'm not sure I understand what you're trying to do, but it seems like you want to allow the user to make some selection and then have part of the page redisplay with new information. If this is true, I'd recommend one of the following options:
1 - Use an IFRAME for the changeable portion of the page. Then have the user action submit the page and specify the IFRAME name as the target. The Struts Action class would then retrieve information from the database and forward to a JSP which is then displayed in the IFRAME.