Solved

JSTL: How to use it without internet connection

Posted on 2003-10-24
2
460 Views
Last Modified: 2013-11-24
I wish to use JSTL, to import the tag libary into your jsp you need to specify the uri as http://java.sun.com/jstl/core. if my pc is not connected to the internet how does it locate the tag library??

In which location do i need to store it in the web-inf directory?

Where can I download the directories from?
0
Comment
Question by:inzaghi
2 Comments
 
LVL 15

Accepted Solution

by:
jimmack earned 75 total points
ID: 9613702
You'll need a servlet container such as Tomcat (jakarta.apache.org)

When this is installed, there will be a webapps directory.  Under there, you create another directory to hold your web site (eg myApp).  Beneath that is the WEB-INF directory.

When Tomcat is running, you can connect to it on your local machine using, for example,

http://localhost:8080/myApp

This will look for a default file (index.jsp, index.html etc.).  Or you can specify the file, eg.

http://localhost:8080/myApp/index.jsp
0
 
LVL 3

Assisted Solution

by:savalou
savalou earned 75 total points
ID: 9614197
The declaration
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

is just to identify the "c" namespace.  You don't need to be connected to the Internet for this to work.  The c.tld file goes directly into WEB-INF and all the jar file go into WEB-INF/lib.  

That's all.  
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
triangle challenge 4 79
stringclean challenge 26 57
What is the latest versions eclipse neon 2 122
github account with ecipse 1 20
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now