This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am wondering if anyone has a suggestion on how to best handle this situation: I've got a reoccuring block of HTML that needs to be displayed in my JSP page (or servlet). The number of occurances of this block of HTML will depened upon a varialble that is received by the page.
So my question is this - what is the best way to store this block of HTML? Should I store it as JSP file and do a JSP include as needed? One more twist: There are a few variables in each HTML block that may change with each occurance, so I am not sure if I can change those variables using the include method mentioned above. Thanks! Drew
You can very well have that specific block of html as a jsp file and include it in the main page.The variables avaliable in the main jsp will be avaliable in the include jsp too. so you wont have any pbm in changing the values in yr include file.