Solved

document.write removing "\" I need for directory structure

Posted on 2006-07-05
3
223 Views
Last Modified: 2012-05-05
Need to add the path audit in front of the below expression but when it writes out it always path\auditClascompletionAudit.jsp and not path\audit\ClasCompletionAudit.jsp.  Have tried various ways but still cant get past the "\" being removed

Original statement....
      document.write("<A HREF=\"ClasCompletionAudit.jsp?server_name=" + serverName + "\" >");

Change I made do add audit before ClasCompletionAudit.jsp...
      
document.write("<A HREF=\"audit\ClasCompletionAudit.jsp?server_name=" + serverName + "\" >");

0
Comment
Question by:TheVeee
  • 2
3 Comments
 
LVL 5

Author Comment

by:TheVeee
ID: 17044226
Figured this out finally, had to put two \\ together...
0
 
LVL 14

Accepted Solution

by:
dfu23 earned 250 total points
ID: 17045651
The backslash "\" is Java's (and most C syntaxed languages) escape character ...

\n - new line
\t - tab

And like you did:

\\ - escaping the escape character
0
 
LVL 5

Author Comment

by:TheVeee
ID: 17050365
Thanks dfu23 for the info!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running Java Servlet inside Eclipse Luna 6 147
constuctor calling other constructor 2 74
HTML5 vs JSP - REST based application development 4 940
java operators 3 109
With more and more people tethered to the internet, advertisers can reach you in new and creative ways. Push notifications on your smartphone, customized advertisements based on your previous searches, and email inboxes filled with promotional pitch…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now