which is the best book for learning java servlets and jsp
Hi, Please anyone point me a best book for learning web server programming with servlets and jsp technology.It should contain introductions from the basics . Thanks ...
Hi, Please anyone point me a best book for learning web server programming with servlets and jsp technology.It should contain introductions from the basics . Thanks ...
j_security_check just doesn't seem enough for me to perform login process. So, instead of submitting the form to j_security_check i created my own servlet and in that i am programmatically trying to do login. This works but i am not able to redirect to my restricted resource. Can anybody tell me what can be the problem? This is processRe...
How i can run a servlet program in tomcat 6.0? ...
I have an applet that is communicating with a servlet. I am communicating with the servlet using POST method. My problem is how do I send parameters to the servlet. Using GET method, this is fairly simple ( I just append the parameters to the URL after a ?). But using POST method how do I send the parameters, so that in the servlet side,...
i Want to import a given css or javascript file depending os some conditions, in my Servlet i have: protected void doPost(...) { if(condition) { //import some javascript or css file here } } I need this behavior since i have too many files to import and the files name may vary according to the condition. Is it possib...
I have a servlet. But it is not working as desired. Hence for debugging purposes, I want to print statements to the java console(the one that can be opened using the java icon in taskbar). However, if I use System.out.println("message"), it doesnt display in java console. Is there any alternative way where I can display messages to the ...
I was reading this page and I found the following statement: MVC in Java Server Pages Now that we have a convenient architucture to separate the view, how can we leverage that? Java Server Pages (JSP) becomes more interesting because the HTML content can be separated from the Java business objects. JSP can also make...
I am developing a chat website using jsp/servlet.I will be hosting my website on gooogle appengine .Now i have some doubts regarding whether to use server push or client pull technology 1)If i use server push and if i dont close the response of servlet will it cause the server to go slow?How many simultanious connection can a tyicall t...
Hello, I am trying to execute a filter on j_security_check to perform some post login action like changing the redirect url etc. But problem is my filter never gets executed. Any patchwork that i can apply? Any help would be appreciated. I am literally fed up of container managed security. Thanks in advance. ...
Posting this one for a friend. They have an Icefaces app that uses Icefaces's inputfile functionality but it attempts to upload the file to a temporary directory before it allows access to it. Long story short, there is no access to the temp location so copying the file (which will enventually end up in a database) is not possible. Is i...
I've got a stand alone, headless, java server app that does a bunch of queue-based processing against a database that I'm thinking of migrating into a java app server. I've got plenty of back-end java experience and a bit of JSP, but not a lot of servlet experience. It seems like the approach would be to just wrap my app into a servlet...
I have a rather large amount of data (100 MB or so), that I would like to present to a user. The format of the data is similar to the following... Date Location Log File Link 03/21/2010 San Diego some_log.txt http://somelink.com etc My problem is that I would like to have some nice/slick way for the use...
hi in my jsp page i am a having a jquery area which pass the values to a servlet which returns an output of dropdownlist . then the jsp file do some updation so certain values which are in the dropdownlist should not be there while repopulating. but it is not happening. my jquery code is $("#cbocode").change(function(){ var cdid=$(...
I am trying to send the clicked value of a dropdown list to my servlet to run a SQL query using the value received. To do it I am using Ajax like that: function showProject(prj) { xmlhttp = GetXmlHttpObject(); if (xmlhttp == null) { alert ("Browser does not support HTTP Request"); return; } var url = "Se...
I am trying to communicate between an applet and a servlet. I first tried Http connection. But I am not getting the desired result. Hence decided to switch to socket communication. Hence I wanted to know which port to use for the same. I remember reading somewhere that port 80 is ideal. Is it port 80 or port 8080? I need a port that is n...
Has somebody an idea, why the getName() method of the UserPrincipal sometimes provides an empty String? Most of the time it returns the correct user name but not every time. This behaviour does occur randomly. I can start the application, run the command and it works. The next time I start the application and run the command (exactly th...
Is it possible to get the value from a JavaScript variable and use this value in a Java Servlet? I have read up on this but all I have found is getting the JavaScript value through a form submit. What I need is: I have a html select combo box. I need to extract the selected value from this and use this value to query a database. Is ...
Hi, I have downloaded eclipse jee version (3.5) and I would like to use it to develop a servlet project on tomcat. So I install tomcat and add it as my server in my eclipse environment. create a Dynamic Web Project called 'TestServlet' create a new servlet called 'MainServlet' and then I deploy my project to the tomcat server via...
In the java web application need to select the file from server and print to the local printer. how it can be done Thanks in advance ...
I have a class class ObjFactory { MyObject getObject() {...} void returnObject() {...} } How can we configure Tomcat so that it would provide this factory through JNDI and manages this factory? Say, one web app should get access to this factory and it must exist only 1 factory in Tomcat, every copy of a web app references the same ...