This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Need configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need configuration" Watch "Need configuration" New topic

Need configuration

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

Hola, I need some help here please.
I am developing a web application, which have the following structure (under the current dir) :
and the web.xml is:
In show.jsp I wrote:
<a href='shopping/add?name=<%= rs.getString("name") %>'>Add To Shopping Cart</a>
<a href="price/total.jsp">Show Shopping Cart</a>
but when testing the application, the urls became:
Why /shopping is added to every url?
Please some help.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30138

The URLs are relative. The first time, you are in the shopping directory. Then when you click a link, it looks within the current directory for a shopping directory. This gives you to shopping directories. The same concept is true for your other link.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Need configuration
Similar Threads
How to run jsp on TOMCAT?
Request Dispatcher problem
Problem with jspInit() overriding
web.xml within tomcat
getting exception in JSF Tutorial of JR