Hi,
I am new to Tomcat, and trying to run a simple HelloWorld servlet. I have installed Tomcat 6, and Jdk1.6 on Mandriva Linux, set CLASSPATH and JAVA_HOME. I have the following files and directories:
$CATALINA_HOME/webapps/MyApp/WEB_INF/classes/TestServlet.class
$CATALINA_HOME/webapps/MyApp/WEB_INF/web.xml
My web.xml file co...
Between the transitions of the web app I use a Session object to save my objects in.
I've heard there's a program called memcached but there's no compiled version of it on the site,
besides some people think there are real disadvantages of it.
Now I wanna ask you.
What are alternatives, pros and cons of different approaches?
Is memcached...
I have a jsp file in the root of .war file.
and then I have a folder named STUFF.
How do I get access to the file read.txt inside STUFF?
/Name_of_war/STUFF/read.txt is the correct path?
...
The build of the project is succesfull, but when I go the the url I get the following error report:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error instantiating servlet class examp...
I am looking for another book beside Head First Servlets and JSP. The Head First book didn't really appeal too me, as it was too much theory and questions/exam objectives.
I am looking something along the lines of RailSpace: Building a Social Networking Website with Ruby on Rails. Something that involves me writing a lot of code and wo...
In a servlet I have a config text file. How to prevent web access to it?
So that only servlet code can get access to it?
It is not encrypted and lays in the subdirectory of WebContent.
...
i'm using spring+tapestry for authenticate webuser. I wonder is there any technique i can force all users that currently login in to logout let say i'm on scenario where the site is 'under maintenance mode'
p/s: will it able to force all users' running process to finish and only force log out
...
I try to excute the servlet code given, like an exemple to understand how it works.
BUT I did not understand from where the attribut optionDAO and what is the necessity to use it.
The find method seems like the given by hibernate in package".base".
What should I really do to skip this.
Thanks.
...
We have a legacy web application (not Spring based) and are looking for best practices to autowire some newer Spring configured (thread safe) service beans into instance variables in several of the legacy servlets. Rewriting every servlet to Spring MVC is out of scope. For testability, we do not want any Spring specific bean lookup cod...
I'm using a servlet to download some file from a server to a computer. The servlet handle the MIME type and other thing, then launch the dialog box to what do with the file (open, save, cancel). It works correctly when used in FireFox, but when used with IE6 my file is downloaded, but I got a new window with the url of my servlet and wit...
Hi,
I had all my servlets and classes in the default package. I have created these and JSP's and its all working fine.
However i want to import some of the classes into the JSP's so i moved all the classes and servelts into a new package called Driver. I did not change any code anywhere, just moved it into a new package. The applicatio...
I have created a servlet which displays a form having some fields and a submit button and also created a web service having methods which are needed in my servlet.
I have deployed the web service on Tomcat 5.5.9/Axis and servlet web application on Tomcat ( same instance of Tomcat) using eclipse. Since one is web service and other is we...
I'm attempting to use Panda with my GWT application. I can upload videos directly to my panda server using
POST MY_PANDA_SERVER/videos/MY_VIDEO_ID/upload
However I would like hide my panda server behind my J2EE (glassfish) server. I would like to achieve this:
Start upload to some servlet on my J2EE server
Authenticate user
POST t...
I want to devlelop a chat website using JSP/Servlets and Tomcat. I have following questions:
Can the website handle load (1000 people at one time) without slowing down?
Will it cause the website to slow down? What is the ideal server configuration for this kind of website? Note that I don't have a huge budget to host.
How can I impleme...
I very often come across this question of why we have got lots of web frameworks addressing the same or similar drawbacks.
When looking deeply, I also have given thought on why JSP / Servlets is not being used after the other web frameworks (like Struts, Spring MVC etc) have shown their existence?
Is it because, the latest web framewor...
I want to capture the responseXML that i have built in my jsp.
What should I do.
after that i will transform it in html.
I know this is annoying and we could do it with a framework or a library like jquery but i realize it with ajax.
Also i have problems with jquery and jsp\servlet since i must use a JSON SERVICE.
Why it seems to me that...
Is it possible for the session data of one war file to be shared by other war file
...
I am writing a servlet which will examine a directory on the server (external to the web container), and recursively search for certain files (by certain files, I mean files that are of a certain extension as well as a certain naming convention). Once these files are found, the servlet responds with a long list of all of the found files ...
I'm using AjaxTags as a defined set of JSP tags to facilitate AJAX programming, saving me from some heavy lifting. The project is in trial mode, so I may not adopt the technology and write my own solution.
Here's what I'm running into (code abbreviated)
I have a drop-down list that defines an item that populates numerous other drop-dow...
1)My environment is web application, I develop servlet to receive request.
A) In some block/method i want to control concurrent to not greater than 5
B) if there are 5 request in that block , the new coming must wait up to 60 second then throws error
C) if there are sleep/waiting request more then 30, the 31th request will be throwe...