jspinclude « Import « JSP-Servlet Q&A





1. How to import constants in a JSP page    stackoverflow.com

Are there any better ways to use constants in a JSP than:

<%@ page import="static package.Interface.NAME"%>
Is there any downside to using these (outside of mixing code/content)? Thanks!

2. jsp: page imports causing a syntax error    stackoverflow.com

I'm writing a jsp application, what i did so far was to include the classes i need and to write the string text:

<%@ page import="com.google.code.facebookapi.FacebookException;" %>
<%@ page import="com.google.code.facebookapi.FacebookWebappHelper;" %>
<%@ page import="com.google.code.facebookapi.FacebookXmlRestClient;" ...

3. Can i import my own jsp page into another jsp page..?    stackoverflow.com

i have prepared a a static html page using netbeans. Can i import that page into another page so as to not re-write the code again n again and then make the ...