I had a html page that take user's input and than the servlet save into database. When the input contains a "/", it interpret as a "a". For example, I put "hong_zhang/email", it will display as "hong_zhangaemail".
I user websphere as the server and oracle database.
Any idea to help me out this weird situation?
Thanks in advance.
I tried and with no luck. I input "hong_zhang\/email" and the result is "hong_zhangaaemail" the "\" escape character interpret as "a" with a tail on top of it.
Originally posted by Brian Glodde:
You might try placing an escape character in front of the forward slash ""hong_zhang\/email". This tells java to consider the next character as a literal.
I find it out in the request.getParameter.
In the servelet I did:
out = res.getWriter();
Is there something on WebSphere did not setup correctly? Or I missed somthing? I use the same code and run on Tomcat, it runs fine.
Any idea will be very much appreciated.
Originally posted by Jim Wang:
where do you find your input was changed. At the point when your servlet get it, like [ String str = request.getParameter("url"); System.out.println(str); ] or you get it on the feedback page ?
Thanks for your reply.
I still have no clue why the browser doesn't take "/" and interpreted as "a". In fact, it doesn't take any special character, like "%", "!", "$", etc.
I need that "/" in the field as it is used as email address. How I use javascrip to accomplish it. Could you elaberate a little more, or possibly give some examples.
Originally posted by Frank Lin:
The problem might have something to do with websphere setup. Check the code page or code set setting.
Thanks for your reply. I thought it was websphere issue, but I just don't know where to start. You mention about the "code page" or "code set" setting, could you explain more in detail. I'm not familiar with websphere admin, only use it as the web application server. The person set up did not have clue about the problem.
Thanks in advance.