We are building a Java app that creates reports from various data sources. For end user simplicity we want to serve these reports via a browser so we’re planning on incorporating Jetty into our app. However, it seems like JSP pages would prove quite useful for what we are doing. Since I’ve never worked with JSP pages and have only so far created a Hello World Jetty example (I do have lots of other Java experience though) I’m wondering if someone might be able to point me in the right direction on how to incorporate JSP pages into our app.
Basically I’d like to have a Java app that crunches all the numbers and then uses Jetty to display a bunch of JSP pages. Is that how it should work or am I missing something in my understanding?
Thanks,
Harry
Just of curiosity, why did you choose Jetty? Why not use Tomcat or GlassFish?
You can make your application work only with JSP pages, but it is bad practice and not good approach for creating web application. JSP together works with Java Servlets. Basically JSP pages is used for the view, servlets works as the controllers. In servlets you providing all your application’s logic and in JSP pages you display what you need.
I suggest you to start reading about servlets, try to make a web application, understand how it works and you’ll see yourself if this solution is appropriate for what you trying to achieve.