This is more of a programming style question than it tomcat-specific,
but it's running on tomcat 5.5, so here goes:
I have a .jsp where, right now, I have part of the page generation is
done in the .jsp, and the part with proprietary logic is done in a java
class behind it. What I'm wondering is if I should put more of the code
in the java class. Here's what I have right now:
<%@ page import="SiteData.Reports.GetNYDates" %>
<HTML>
<HEAD>
<TITLE>Enter reconciliation beginning and ending dates</TITLE>
</HEAD>
<BODY>
<FORM ACTION="NYListInventory.jsp" method="get">
<H3>Select the report you wish to generate:</H3>
<%= GetNYDates.getDates( session, request ) %>
<br>Choose your output format:<br>
<input type="RADIO" name="optFormat" value="fmtHtml" checked>HTML
<input type="RADIO" name="optFormat" value="fmtText" >Plain text
<BR><BR>
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Go">
</FORM>
<% String pageColor = "White"; %>
<% String currentPage = "NYDatePage.jsp"; %>
<%@ include file = "PageFooter.jspf" %>
</BODY>
</HTML>
My question is: would it be better practice to put the rest of the
<FORM> generation lines into the java class, or is it better form to
leave it the way it is. I realize there's no functional difference; I'm
just wondering which is considered to be 'better practice', however you
define that.
Thanks!
D
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]