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

Ads









Related Tutorials/Questions & Answers:
Example questions of JSP & Servlet
jsp - JSP-Interview Questions
Advertisements
jsp interview questions
JSP Interview : JSP Interview Questions -2
uploding an file - JSP-Interview Questions
JSps - JSP-Interview Questions
Ask JSP questions online
JSP Interview Questions
Core Java Interview Questions Page 2, Core Java QuestionQ
jsp - Java Server Faces Questions
uploading a file - JSP-Interview Questions
jsp - Java Server Faces Questions
servlet questions
how to make multiple choice questions
beginners questions
questions from an xml file
Software Questions and Answers
Software Questions and Answers
Java Questions
Java Questions
programming questions
questions
questions
questions
questions
questions
questions
questions
questions
questions
questions

Ads