Hello,
I don't know PHP but maybe this will help.
String myString = "Test";
String newString="/"+myString+"/";
or
public class Slasher
{
public static String addSlashes(String s) {return "/"+s+"/";}
}
in your class code
String mySlashedString = Slasher.addSlashes(myString);
Brad Webb
Risto Reinpold wrote:
> Hi,
>
> Does anybody know how can quote string with slashes. Something like
> addslashes function in php.
>
> Thanks in advance.
>
> Risto
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets