JSP/JSTL equivalents to PHP
Hello all. I was recently advised by another forum member to use JSTL to develop a system I am developing which is web based and accesses an Oracle Db.
I am familiar with basic PHP in that you can define functions like register_user or login etc, whatever it may be, you write the code and process the data then out put it - all in that PHP (or another).
You can "include" other PHP files to be loaded that provide functionality when another file is loaded, like, functionality to connect to a database or whatever it might be.
Now I know I can do the same using JSP and JSTL, I know I can use the <jsp:import directive to import JSPs. To provide functionality, should I create custom tags that contain java "scriptlets" (for want of a better word) and then call these tags to process whatever they process ?
Or can I do something similar to PHPs, create some methods, say , some Db manipulation methods, bundle them all in a DbFunc.jsp for example, include that file to be loaded prior to accessing it's functions and then call these methods from within the JSP file that I am using ?
There will be a small finite set of functions (initially), login function, insert data function, edit data function, register user, communicate with another user function, delete data function, search for user function and search for data function. I can work out the java/JSTL coding for these, I'm just not sure how to store the code, servlet, scriptlet, JSP, tagfile, Bean etc etc. I'm confused. HELP !
Message was edited by:
MrVenjer
Message was edited by:
MrVenjer>

