“You may never get to touch the Master, but you can tickle his creatures.”
― Thomas Pynchon, Gravity's Rainbow
“You may never get to touch the Master, but you can tickle his creatures.”
― Thomas Pynchon, Gravity's Rainbow
Blake Edward wrote:The point here is just to get everything on one page so it can be easily viewed. This jsp file replicates what I am trying to do. Whether it stays in this form is yet to be determined. If enough people agree about not using jsp's and can tell me why it is bad practice then that's advice I am willing to take. The initial/original version doesn't have the DB info embedded in it anyway, so it is split up and the page lives in the Web-INF folder and is password protected.
Thank you!
Blake Edward wrote:The point here is just to get everything on one page so it can be easily viewed. This jsp file replicates what I am trying to do. Whether it stays in this form is yet to be determined. If enough people agree about not using jsp's and can tell me why it is bad practice then that's advice I am willing to take. The initial/original version doesn't have the DB info embedded in it anyway, so it is split up and the page lives in the Web-INF folder and is password protected.
Maneesh Godbole wrote:Your problem is with DB connectivity. No body would like the read the JSP which frankly speaking is unrelated.
So start by writing a small code which connects to the DB and does some test CRUD operations.
Test it. If it works, compare it with your existing code. If not, post the full stack trace with the relevant code so we can take a look.
All this is usually called SSCCE
(Most probably, while writing the SSCCE you will figure out the problem yourself. )
Good advice by Tapas above. JSPs should be responsible for presentation not logic. Once you fix the DB issue, you might also want to consider refactoring your project accordingly.
“You may never get to touch the Master, but you can tickle his creatures.”
― Thomas Pynchon, Gravity's Rainbow
Blake Edward wrote:Also, thanks for the advice regarding jsp's and keeping the code separate. I am amazed at how many tutorials and well respected books don't preach this philosophy.
Dave Tolls wrote:It's all too common, sadly.
Dave Tolls wrote:It's all too common, sadly...
“You may never get to touch the Master, but you can tickle his creatures.”
― Thomas Pynchon, Gravity's Rainbow
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|