jsp question?

jsp question?

see you all know about including file in a jsp... i want to know is... see i have 2 files

one.jsp two.jsp

in two.jsp i have below given code Long something = 0;

in one.jsp code is <%@include file='two.jsp'%> <%@include file='two.jsp'%>

i have included same file two times.... so there will be error because.. something variable will be created 2 times... right?

so it measn before including file second time i should check that.. if once its included then i should not inculde it again... how to check that..?

as in php there are functions like include("file.php"); //that will include file

and include_once("file.php"); //this will include file if its not included before...

ANY ANY solutions for that????

View Answers









Related Tutorials/Questions & Answers:
Example questions of JSP & Servlet
jsp - JSP-Interview Questions
Advertisements
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
JSP - JSP-Interview Questions
JSP - JSP-Interview Questions
JSP - JSP-Interview Questions
jsp - JSP-Interview Questions
JSP - JSP-Interview Questions
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
Jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
jsp - JSP-Interview Questions
JSP - JSP-Interview Questions
JSP - JSP-Interview Questions
question1 - Java Beginners
Debugging in jsp? - JSP-Interview Questions
jsp - Java Server Faces Questions
Jsp - Java Interview Questions
JSP Interview : JSP Interview Questions -2
Scriptless Jsp - JSP-Interview Questions
Controler as JSP - JSP-Interview Questions
JSF - JSP-Interview Questions
jsp interview questions
jsp paging - JSP-Interview Questions
bean - JSP-Interview Questions
java - JSP-Interview Questions
pagination in JSP - JSP-Interview Questions
java - JSP-Interview Questions
java - JSP-Interview Questions
jsp - Java Interview Questions
tomcat - JSP-Interview Questions
question - JSP-Interview Questions
BACKEND - JSP-Interview Questions
jsp - Java Interview Questions
JSP - Java Interview Questions
j2ee - JSP-Interview Questions
ArrayList - JSP-Interview Questions
java - JSP-Interview Questions
java - JSP-Interview Questions
counter - JSP-Interview Questions
Computer - JSP-Interview Questions
java interview - JSP-Interview Questions
jsp - Java Server Faces Questions
JSP - Java Server Faces Questions

Ads