This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have designed an web application "Hotel Reservation System" using JSTL sql tags and tomcat. I am accessing my SQL Server database through the JSTL sql tags. I am not using a single java class/bean in my application. Now, I want to convert my work into a web service using axis and tomcat. My concern is will it be possible to somehow develop a web service without having any explicit java classes having the business logic..since I wrote my logic into JSP pages using JSTL tags! I am in a fix as to is this possible or it completely defies the concept web services and RPC. I am look forward to use my work as till now (JSP+JSTL) further to get the web service designed. It will be really helpful if anyone can show me the direction I will have to head to. Thank you.
If you look at how WS engines work you will find that at the core a web service is a Java class. While it is certainly possible to build a web service around JSP pages, it is a really bad design, and not supported by any of the WS engines I'm familiar with.
Go with Bears advice and refactor your code so that the business logic sits in Java classes, and JSP pages are only used for presentation. That will give you a foundation for building a WS.