I have a JSP file that refers to CSS. My JSP has a form that redirects to the servlet .
The servlet does some heavy database queries etc.
Then the data is shown on the servlet page
However since the servlet does not have any formatting , the data is displayed without any formatting . How can I get the formatting from that jsp file and apply it to servlet .
I could use
out.println(".. )
but this is not convinient.