GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 244 of 306    Print  
How do I include static files within a JSP page?

  
Total Answers and Comments: 2 Last Update: June 20, 2006     Asked by: naveen 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 19, 2006 10:54:12   #1  
deepak911        

RE: How do I include static files within a JSP page?

use include directive.It takes 2 paramaters "page" and "flush"

 <jsp:include page ="filename"/ > or <%@ include ="filename"%>


 
Is this answer useful? Yes | No
June 20, 2006 01:32:30   #2  
kalya        

RE: How do I include static files within a JSP page?
using where filename -- path of the file to be includedand ext -- the extension for the file name
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : It means its a static and for example page1 and page2 are web pages if that content of the page2 is include with in the page1 and the its execuited.As well as First page2 is execuited after that page1 is execuited.And ...

Latest Answer : hi, We Can restrict page errors by using the two attributes of page directive i.e. error attribute set to true and then use the errorPage attributes that specifies the url of Error page.Thanks ...

Latest Answer : Hi guysthere are 3 ways to do this1) 2) response.sendredirect3)  forward methos of requestdispatcher ...

How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?
One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimization that 

The following code snippet shows how a servlet instantiates a bean and initializes it with FORM data posted by a browser. The bean is then placed into the request, and the call is then forwarded to the 
Latest Answer : Hi Jose Kutty,Mr. Nanda is wrong. We can create RequestDespatcher object by two ways, either  by ServletRequest object       request.getRequestDispatcher("/abc.jsp");// here you need to mention relative path(or) ...

A cookie, mycookie, can be deleted using the following scriptlet: 
Latest Answer :  In First line, We are creating cookie object of cookie class,after that we are sending response to server.we make object which take null value and it, setting life 0, after that we cookie send token to server, with null value, and max age 0.then cookie ...

You can declare methods for use within your JSP page as declarations. The methods can then be invoked within any other methods you declare, or within JSP scriptlets and expressions.Do note that you do 

We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session 

You can use the errorPage attribute of the page directive to have uncaught runtime exceptions automatically forwarded to an error processing page. For example:redirects 
Latest Answer : Alternatively u can get Servletcontext and use the log file to push the errors to the log file.. ...

You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute the following scriptlet at the beginning 


 Sponsored Links

 
Related Articles

jQuery - Marking the Current Page

Learning jQuery Marking the Current Page Our pager can be made more user friendly by highlighting the current page number We just need to update the classes on the buttons every time one is clicked mosgoogle geshibot lang php&quot; var pager ; for var page 0; page numPages; page pag
 

C++ Static Functions

C Static Functions Static member functions have a class scope and they do not have access to the this pointer of the class When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class The main usage of
 

Importance of Header Files

What is the importance of header files? The main role of header file is it is used to share information among various files. In brief, if we have several functions say 4 functions named as f1, f2, f3, f4 placed in file say sample.c and if all the functions want to get accessed by each other then all
 

The Interview Snafu

How to turn someone else&rsquo;s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won&rsquo;t get over the line without a polished, prof
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part One

These days, the biggest threat to an network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be sealed off from the outside via firewalls-a public Web site is generally accessible to anyone who wan
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part Two

Some of the most common and dangerous application security vulnerabilities that exist in ASP.NET Web-based applications come not from the C# or VB.NET code that make up its pages and service methods, but instead from the XML code that makes up its Web.config files. Incorrect configurations can open
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

JSP Page Directive

JSP Page Directive In this JSP tutorial you will learn about JSP page directive attributes of the page directive along with syntax examples and explanations mosgoogle autoFlush autoFlush&nbsp; attribute is used to specify whether or not to automatically flush out the output buffer when it is ful
 

How to use JavaScript in HTML page

How to use JavaScript in HTML page In this JavaScript tutorial you will learn how to use JavaScript in HTML page how to write output to a page different places where JavaScript can be paced in HTML JavaScript in external file and how to place and execute JavaScript in external file mosgoogle How to
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape