aspose file tools*
The moose likes Servlets and the fly likes quick syntax question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "quick syntax question" Watch "quick syntax question" New topic
Author

quick syntax question

Ronald Whalen
Ranch Hand

Joined: Mar 27, 2001
Posts: 38
Hi!
i am trying to print this statement out to a webpage.
out.println(" var filterOut1=/\D/;");

I want it to appear exaclty as is on the webpage. Unfortuntely I am getting the following error message:
Invalid string literal, cannot contain character '\?'

Any thoughts?

Thanks,
Ronald Whalen
Beksy Kurian
Ranch Hand

Joined: Jul 11, 2001
Posts: 254
Try this
out.println(" var filterOut1=/\\D/;");
Regards
Beksy
Ronald Whalen
Ranch Hand

Joined: Mar 27, 2001
Posts: 38
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: quick syntax question
 
Similar Threads
insert multi language
Regarding login into a webpage using java code ?
weblogic portlet
ProJavaFX examples
using string value as a variable name