my dog learned polymorphism*
The moose likes JSP and the fly likes encoding in jsp effect jsp Rendering on browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "encoding in jsp effect jsp Rendering on browser " Watch "encoding in jsp effect jsp Rendering on browser " New topic
Author

encoding in jsp effect jsp Rendering on browser

shyam ji gautam
Ranch Hand

Joined: Sep 17, 2011
Posts: 48
Hi all;

I am Geting one issue Initially my application is Runing oN oracle soa oc4j server. There is already 1 jsp page says Jsppage1 . Which is working fine.
But I do some customization and add new feature include some java script with page . this jsp page1 has

case 1 when Jsppage1 has

<%@ page language="java" contentType="text/html;charset=UTF-8"%>
request.setCharacterEncoding("UTF-8");

in this case if i include my java script or even same keydown retun"false" on password label then that changes are not reflected. even page is not dispaly
it display empty page.

even i Restarted the server after that also it display empty page.

case2 when jsppage1 has

<%@ page language="java" contentType="text/html"%>

in this case when i include my java script file for new feature or even same keydown retun"false" on password label then that changes are reflected. even page is dispaly properly.


So What is the Reason of this behaviour . I am using oc4j application server.


Please explain any one

-Thanks





Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38107
    
  22
Don't know, but that question is too hard for “beginning”, so I shall move it. Let's try the JSP forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: encoding in jsp effect jsp Rendering on browser
 
Similar Threads
struts 1.3,Validator forpassword field
Problem with simple .jsp file running on my ISP's space
Sending message to the user from a servlet
How to force encoding of web browser to UTF-8
Calling jsps