?
Solved

JSTL: How to use it without internet connection

Posted on 2003-10-24
2
Medium Priority
?
567 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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