Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 18th, 2002, 03:22 AM
a-track a-track is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 11 a-track User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
links within servlets

Hi,

I cant get a web link to work within a servlet I have written. I get an error saying the web page is not available. is there a particular folder in which I have to put the web page or am I doing something entirely wrong. please help. I'm using tomcat as my server
the error I get is as follows:

type Status report

message /examples/servlet/options.htm

description The requested resource (/examples/servlet/options.htm) is not available.


please help

Reply With Quote
  #2  
Old September 18th, 2002, 01:08 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Tomcat directory structure:

%tomcatHome&/webapps/myapp - maps to "/"

%tomcatHome&/webapps/myapp/testing - maps to "/testing/"

%tomcatHome&/webapps/myapp/web-inf/classes - maps to "/servlet/"

That help?

Reply With Quote
  #3  
Old September 18th, 2002, 08:19 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Quote:
a-track wrote on September 18th, 2002 05:03 PM:
thank you for your help but for some reason I seem to be getting the error still.

this is the link I'm using:
out.println("<P ALIGN=CENTER> You may now proceed to the <A HREF=\"/options.htm/\">Options Page</A></P>");

and the HTML file is stored in:

E:\Tomcat\jakarta-tomcat-4.0.1\webapps\examples\servlets

called options.htm.

I'm really grateful for your help so far, and would appreciate it even more if you could help me get rid of this headache. I'm getting desperate.
thanks


Put your options.htm file in E:\Tomcat\jakarta-tomcat-4.0.1\webapps\examples\, and change you like to HREF=\"/options.htm\", you have one too many "/" in there.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > links within servlets


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway