M
Mike
Hi,
I have developed a bulletin board using JSP. At the moment all the
code resides in the JSP pages in scriptlets.
I understand that it would be advantageous to move a lot of the java
out of the jsp pages. (Presumably so that a lot of it can be
precompiled, so that there is more efficiency at runtime - or are
there other reasons?)
The book I'm learning from covers scriptlets, then goes on to cover
including code, writing custom tags, using standard tags...
As a beginner, I'm trying to gain insight into what would be the best
approach for my application. From where I'm standing at the moment,
JSP seems a pretty messy collection of equivalent ways of doing the
same thing.
My application requires a good deal of database connectivity, and
writing of html tables using the results. (Database is MS SQLServer.)
I'm trying to find an efficient way of using database connections.
I'm also passing parameters from page to page using variables on the
end of URLs - e.g. newPage.jsp?t=99&p=2 - should I be using http
sessions to store this kind of info?
Any advice on best practice would be much appreciated.
Mike
I have developed a bulletin board using JSP. At the moment all the
code resides in the JSP pages in scriptlets.
I understand that it would be advantageous to move a lot of the java
out of the jsp pages. (Presumably so that a lot of it can be
precompiled, so that there is more efficiency at runtime - or are
there other reasons?)
The book I'm learning from covers scriptlets, then goes on to cover
including code, writing custom tags, using standard tags...
As a beginner, I'm trying to gain insight into what would be the best
approach for my application. From where I'm standing at the moment,
JSP seems a pretty messy collection of equivalent ways of doing the
same thing.
My application requires a good deal of database connectivity, and
writing of html tables using the results. (Database is MS SQLServer.)
I'm trying to find an efficient way of using database connections.
I'm also passing parameters from page to page using variables on the
end of URLs - e.g. newPage.jsp?t=99&p=2 - should I be using http
sessions to store this kind of info?
Any advice on best practice would be much appreciated.
Mike