I would like to automatically generate documentation for jsp files, similarly to javadoc with java files. I would also to include the documentation generation in an ant build.
Do you know any practical tool or method to document jsp files?
...
Oracle 10g Application Server, Java 1.5 + JSF (presentation layer) + iBatis (database communication layer)
In the place where I work at the moment, there sometimes rises the necessity to do small tweaks to the deployment directory. I don't deny that it's not the best practice (if I stay long enough on this site maybe I'll end up the exa...
My web page uploads a file. Currently it places that file in a directory which is polled by a cron job. If the file is there, a bash script acts on the file. I hate the fact that I am polling. The upload happens perhaps once a week, but the user wants to see results within minutes from their file, so I end up polling every 5 minutes....
I have a set of .tag files (for example a tag that renders a copyright notice) that I want to share across all my application contexts on my Tomcat application server.
I've only ever used them in a context's /WEB-INF/tags directory, referring to them via the taglib directive tagdir = "/WEB-INF/tags"
How can I make the tags available to...
I am just starting with coding some JSP, which I find isn't all that different from asp.net or any other "real" web-language / web-gateway. I found this question; Structure JSP/Java code where logic is not in the JSP file. However I don't find it helpful.
My daily work contains of ASP.NET MVC development which is Really the best way I'v...
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 works okay, the result alert string is:
akb
But when i put this file in a remote serve...
Before I go and create a custom tag or Java method to do it, what is the standard way to escape HTML characters in JSP?
I have a String object and I want to display it in the HTML so that it appears to the user as is.
For example:
String a = "Hello < World";
Would become:
Hello < World
...
Hey,
I have this application i'm developing in JSP and i wish to export a couple of data from the database into XLS (MS Excel format).
Is it possible under tomcat to just write a file as if it was a normal java aplication, and then generate a link to this file? Or do i need to use a specific API for it?
Will i have permition problems...
Hello everybody,
My task is to compile a norm / best practices especially for XHTML and CSS.
Would somebody have some good references ?
Thanks.
...
To include another file in JSP, we use the @include tag
<%@ include file="NameOfFile"%>
In my case i want to include a html file whose name will known during the run-time - i,e from Database.
How can I do this in JSP?
...
The question is in the title : "Is there an equivalent to java @SuppressWarnings in JSP ?"
...
I'm having a hard time figuring out how to handle this problem:
I'm developing a web tool for an Italian university, and I have to display words with accents (such as è, ù, ...); sometimes I get these words from a PostgreSql table (UTF8-encoded), but mostly I have to read long passages from a file. These files are encoded as utf-8 xml, ...
Coming from a background in Django, I often use "template inheritance", where multiple templates inherit from a common base. Is there an easy way to do this in JSP? If not, is there an alternative to JSP that does this (besides Django on Jython that is :)
base template
<html>
<body>
{% block content %}
{% endblock %}
</body...
I need a workaround with this URL mapping in web.xml to create URLs with a letter, followed by a "_" followed by any combination of alphanumeric characters.
I want to map a servlet to something like this:
/something_*
Instead of:
/something/*
Using different "somethings" for different JSP's. Example:
/search_Something-I-searched...
I'm developing some custom JSP tags. In my SimpleTag.doTag() I grab the JspContext and call getOut() to get the JspWriter. When writing to JspWriter, what's the different between write(String) and print(String)? Should I be calling one instead of the other?
...
My situation:
On my jsp site I show a table. When somebody click a row, this row must be marked with an other backround color for example. Also more then one row can be marked. Two things are important.
First: I bear in mind which rows are marked.
Secend: In which order.
My idea is:
I have a ArrayList and put all row IDs in this. So I...
We're using both Apache Tomcat 6.0 and Jetty 6 where I work. We mostly use Jetty for testing (it's great for running embedded in JUnit tests) and Tomcat for production.
By default, Tomcat compiles JSPs on-the-fly as users request them. But this results in degraded performance for the first hit. It also highlights bizarre bugs in Tomc...
In a JSP page(index.jsp):
${requestContext.requestURL} is the URL
just shows the expression itself. It used to be evaluated to something like "http://.../somerset/"
I created the Maven project with maven-archetype-webapp archetype in Eclipse. The Jetty version is jetty-6.1.14.
My web.xml is simple:
<web-app>
<display-name>Arche...
Hi,
I want to get data from a LAN system by using JSP. How can I make the connection between two systems?
Thanks in Advance
...
I have an options menu, over a jsp page, on which users explore items, that have sub-items, that have sub-sub-items and so on. Items are collapsable, so the user can see the hierarchy of the items he want.
The menu is expanded manipulating the css using javascript and jquery.
This menu is shown on all the pages of the application, and,...