Solved

JSTL: How to use it without internet connection

Posted on 2003-10-24
2
527 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
runtime exception 2 62
Print Rhino Java Array in Javascript 1 54
Java array sort 10 59
listing all the respondents to a twitter feed - Java 5 41
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

738 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