[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JSTL: How to use it without internet connection

Posted on 2003-10-24
2
Medium Priority
?
651 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 225 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 225 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month19 days, 11 hours left to enroll

872 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