I've create a jsp page like this:
<% Object myName = session.getAttribute("name");
if(myName == null)
{ String redirectURL = "http://www.google.com";
response.sendRedirect(redirectURL);
}
%>
<html> ... some content ... </html>
The content inside html tage is around 100k. Now when I try to compile and run it in netbean/glassfish, i got an error message:
constant string too long
out.write("<html>.......</html>
I read it somewhere that there's a 64k limit. but i am not using "out.write" function at all, the jsp section is really small as you can see. How did this happen and how do I solve this?
What I want to achieve is first check if the session is valid, if not then redirect. if so, then show content. The content is quite large and static but i have no control over it :(. anyway i can achieve this?