If you have not tried "javaranch.com", then you reallly miss some great help in your java learnings. This is a forum site where you will find the best people who will help you in your problems which you are facing day to day. i was loving this site and i was using it from last 3 years. Try it you fell worth :)
Friday, August 28, 2009
Tuesday, August 11, 2009
Try HTML2ASCII convector Utility
Then i searched google and found a online HTML2ASCII convector Utility which really helped me :)
http://www.dynamicguru.com/tools/html.php
Try it you really find useful when you needed and bookmark it if you like...
Thanks a lot guys who was created this online tool :)
see you later
- Share this on del.icio.us
- Digg this!
- Stumble upon something good? Share it on StumbleUpon
- Share this on Reddit
- Add this to Google Bookmarks
- Tweet This!
- Share this on Facebook
- Share this on Mixx
- Subscribe
- Buzz up!
- Share this on Linkedin
- Submit this to DesignFloat
- Share this on Technorati
- Submit this to Script & Style
- Post this to MySpace
- Share this on Blinklist
- Share this on FriendFeed
- Seed this on Newsvine
JSP Page encoding can’t be Dynamic?
<%@ page language="java" import="java.text.*" pageEncoding="UTF-8"%>
In above code snippets I was trying to inject the pageEncoding value as dynamic value (by using the evil Scriptlets) as below.
<%@ page language="java" import="java.text.*" pageEncoding="<%=pageEncodingString%>"%>
But Eclipse was shouting that it was not valid pageEncoding value.Then I realized that in @page attribute you can’t give a Scriptlets value… I am not sure is there any other way we can achieve this ? ….
I came to another way by searching google (as usual) , that nothing but adding a jsp-property-group attribute in
<jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <page-encoding>UTF-8</page-encoding> </jsp-property-group> </jsp-config>
You know how above code snippets work? It’s quite simple . You don’t need to add the pageEncoding="UTF-8" attributes in @page directive for all your Jsp files. If you make changes here it will affect all you jsp’s (based on your url-pattern).
Class : org.apache.jasper.compiler.JspConfig
But this also doen’t serve my purpose, the reason I have to change the encoding value which coming the Backend layer. I gone little bit further and found that there is some apache API to get the values of jsp-config in java class. When I saw that API I can find only the get methods and not the set methods. So again that doesn’t serve my purpose.
I still feel there should be some way to achieve this. If you guys have any thoughts please feel free post your replies here.
Finally welcome to my blog :)
- Share this on del.icio.us
- Digg this!
- Stumble upon something good? Share it on StumbleUpon
- Share this on Reddit
- Add this to Google Bookmarks
- Tweet This!
- Share this on Facebook
- Share this on Mixx
- Subscribe
- Buzz up!
- Share this on Linkedin
- Submit this to DesignFloat
- Share this on Technorati
- Submit this to Script & Style
- Post this to MySpace
- Share this on Blinklist
- Share this on FriendFeed
- Seed this on Newsvine
Subscribe to:
Posts (Atom)