poorjava poorjava

Greenhorn
+ Follow
since Oct 13, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by poorjava poorjava

I have created 2 instanaces and deployed the same application to both of them.
After logging in the system in instance A. I would like to click a link which will pass some parameters and generate a jsp page in instance B
(ie. <a href="http://instanceB/a.jsp?a=1&b=2>; It's just a string only)
After that I wanted to continue with my work in instance A. However the session was null and redirect me to the login page again.
How can I keep the session in instance A after calling a jsp page in instance B?
As if I use <a href="http://instanceA/a.jsp?a=1&b=2>, the session can be kept.
Any ideas? Thx a lot
16 years ago
Hi,
I have a struts <html:text> field and I would like to allow user to input Chinese Characters. I am using UTF-8.
When pressing the submit button, it will write to the Oracle DB and get it back at once and display back to the struts textfield. However what I get back is some strange symbols. Even though I have set
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> and
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %> in jsp page and request.setCharacterEncoding("UTF-8"); in struts action. It still didn't work. (As I heard that request.setCharcterEncoding() will set all request data to the specific charset, but I am now using form beans to get and set data rather than request.getParamter() ). So anyone can give me some suggestions?
I know that it works when I use new String(value.getByte("ISO-8859_1"), "UTF-8") , but I can't use it in every string as there will be 60 fields in that page. It will be very troublesome to set every field to UTF-8. Is there any method that I can set all the data to UTF-8 in the simplest way? Thx a lot.
(SunOne appserver 7.0)
(JSP, struts, EJB)
(Oracle - with NLS setting to UTF-8)
16 years ago