How would I use JSP to write directly to a separate HTML page?
I was requested to built this project in JSP and one stipulation is that this project cannot have a database. I am trying to write a JSP form to allow users to add, remove and edit links on a separate HTML pag开发者_运维问答e. I have very, very limited JSP experience and I was hoping that someone could point me to a decent tutorial. I would greatly appreciate some direction. I am relatively comfortable with JavaScript, JQuery and the DOM in general.
If a fullworthy SQL database server is not an option for some reason, then you can always use an embedded SQL database server, like JavaDB, H2 or SQLite. It that is also even not an option, then you can always head to a textbased file in a predefinied format like CSV, XML or even JSON. There are lot of tools available which can convert between Java objects and CSV, XML and JSON. Even more, it's relatively easy to homegrow it. If that is even not an option for some odd reason, then you can as last resort use Java serialization.
At least, HTML is definitely not a suitable format for "data storage".
精彩评论