Advertisement

02.25.2006 at 07:03PM PST, ID: 21751775
[x]
Attachment Details

hard coded urls.

Asked by jayrod in Java Programming Language

Tags: urls

I'm creating a servlet and in it i'm doing some dynamic html creation. I have a href that references a url like so

http://localhost:8080/SWE642Assign2/servlet/ShowContent/?contentId=1

the ShowContent is a servlet and I guess SWE642Assign2 is my context.. how can I code this so that it doesn't break upon deployment?

Thank youStart Free Trial
[+][-]02.25.2006 at 07:05PM PST, ID: 16047726

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2006 at 07:11PM PST, ID: 16047746

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: urls
Sign Up Now!
Solution Provided By: sudhakar_koundinya
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.27.2006 at 07:36PM PST, ID: 16061844

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32