string « Tomcat « JSP-Servlet Q&A





1. Javascript String.replace(/\$/,str) works weirdly in jsp file    stackoverflow.com

For simplicity, i have the following file named test.jsp:

<script language="javascript">
    alert("a$b".replace(/\$/g,"k"));
</script>
I put this file in my local server, then display it using firefox: http://localhost:8080/myproj/test.jsp. It ...

2. JSP compilation to string or in memory bytearray with Tomcat/Websphere    stackoverflow.com

I am doing conversion to image and PDF output. I need an input HTML document that is generated by our application JSPs. Essentially, I need to render the final ...

3. How can I get Tomcat to output empty string instead of null?    stackoverflow.com

I just switched over to Tomcat 6.0.26 from a different Servlet/JSP engine. Previously, null values would print out as an empty String. However, Tomcat is printing out nulls as ...

4. Convert a JSP contained in a String to a Servlet programatically    stackoverflow.com

I have a JSP in a string variable in a servlet and I would like to compile it as a JSP myself (on the fly, programatically). Right now what I ...

5. How to modify query string when debugging JSPs in Eclipse    stackoverflow.com

I just set up Eclipse with Tomcat so that I can debug JSP files. One thing I still haven't figured out is how to modify the URL that Eclipse uses for ...

6. How can I handle UTF-8 encoded strings in my servlet    stackoverflow.com

After searching for 4 straight hours now, I have to give up and ask you guys. I have a very simple form which will take an input and on action, write it ...

7. String to Enum Binding inside JSP works on Jetty but not on Tomcat    stackoverflow.com

I'm struggling with a strange behavior between Tomcat and Jetty. Inside a tag-file I refer to another tag (based on SimpleTag) which has two attributes. One is a Enum (PictureScale) with several ...