Hi,
I am new to JSTL and
JSP & need some direction on this - preferably and example on how this should be done:
I am running 2 seperate SQL queries from a java/jsp program and I need to display the results from both queries on one JSP page output.
Currently I have
java code that passes the 2 queries to a method along with passing the jsp files to output the query results
- the method dispatches the results to these 2 JSP pages using JSTL tags in hope for seperate output results:
I need to have a way to display these 2 outputs into 1 jsp page: - currently one just overwrites the other.
I also tried using the jstl core <c: tags in 2 seperate methods on the same jsp page but the <c: tags just resulted in overwriting one another -
The queries run and display fine except I cannot get them both to display correctly.
I need help on best practice with using jstl and jsp for displaying multiple queries on the same page
please post an example on how this should be done.
thanks! I look forward to any solution on this.
example: the jsp file that runs the queries:
runQuery.jsp:
________________________________________________________________________________________________________________________________________
viewResults1.jsp & viewResults2.jsp
_____________________________________________________________________________