I have a web development project where I need to migrate some VERY SIMPLE ASP code to run on a JSP site. A couple hours of looking at documentation is simply not gettingme anywhere fast, and the project has a narrow deadline.
Here is my ASP code. I start by defining some string variables. Then I wrap some text in a header/footer pair so that the content (Stuff in here) is wrapped with a decorative box. The "boxtitle" and "boxwidth" are used to set the title and width of the box (along with a bit of IF logic to see if the title was specified or not).
boxtitle = "A message from blah blah blah"
boxwidth = 360
boxmore = ""
boxmoreshim = "0"
Stuff in here
Inside cev_box1_header.asp, I have this:
" cellspacing="3" cellpadding="0" border="0">
|| <%= boxtitle %><% if len(trim(boxmore)) > 0 then %>" height="1"> <%= boxmore %> <% end if %>
Could someone puhlease post the comparable code for JSP, along with a link or 2 that might show me some code examples for my learning purposes? I'll be SOOO appreciative.