Tagged Questions
0
votes
3answers
24 views
Connect to a MySQL DB with JSP through another class
Can I connect to a MySQL DB with JSP through another class?
Here is my my own suggestion:
...<body>
<h3>The User List</h3>
<br>
<%
// JSP/Java kode
UsersDAPInterface ...
0
votes
1answer
13 views
Embedding Jetty as a Servlet Container
I'm using tomcat to serve my Java Servlets and it's kinda more for me. I just need to serve, Servlet Requests alone, no static content,neither JSP,etc. So i was looking for a Servlet container that ...
0
votes
1answer
21 views
Embedded Tomcat 7 passing Spring application context to servlets
I would like to add web interface to my java application, so that I can manipulate it's state using http.
I have added to application context a spring bean for some class that starts embedded tomcat. ...
2
votes
2answers
65 views
How do i get rid of: HTTP Status 405 - HTTP method GET is not supported by this URL?
I have been breaking my head over this issue over the past few hours. This is my first attempt at writing a web app and deploying it to the apache tomcat web container. I follow a simple tutorial from ...
1
vote
2answers
49 views
Get root domain from request
Consider the below URL as an example.
http://www.test1.example.com
Is there any method by which I can get "example.com" as an output. I know there is a method servletrequest.getServerName(). It gives ...
1
vote
1answer
12 views
Add/Edit request parameter to Jetty request
I am interfacing some legacy code with a new system and I have to edit a HTTP request.
I am using Jetty to launch an embedded webserver from our application and have wrapped our webapp with the a ...
0
votes
2answers
49 views
Get and post in the same Servlet
I have a doubt, in my code i need to works with a get and a post method because in the get i pass some info of one page using Window.open, and in the post i return the value of some field taht i ...
-1
votes
0answers
21 views
how to create a discussion board? [closed]
i want to create discussion board for my website where admin can post question and login members can comment or like it similar to Facebook.
What is best and effcient way for this? i have gone ...
-1
votes
6answers
83 views
Java Servlet if statment don't need { } brackets?
I am a beginner and reading through Murach's Java Servlet and JSP... Going through the examples. Kind of stuck at this Ch11 simple shopping cart example.
I would post the whole code here but its ...
1
vote
1answer
25 views
Serving Dynamic Images with Google App Engine Java
I have been following http://code.google.com/appengine/articles/java/serving_dynamic_images.html to learn how to upload an image to the database by using Google app engine and JDO.
I tried that ...
0
votes
2answers
27 views
Error when running dynamic web project in eclipse
I am new to servlets and jsp in eclipse.. I made a simple servlet/jsp application, but when i ran it on my tomcat server in eclipse i got the following errors:
jun 21, 2013 1:07:01 AM ...
-3
votes
1answer
28 views
How to make java servlets in eclipse [closed]
I'm currently trying to make servlets in eclipse using java. I just cant seem to find a good beginning tutorial for making them.. I have installed the neccesary plugins for eclipse and tomcat. I just ...
0
votes
1answer
21 views
HttpServletRequest cannot be resolved while i am trying to do my first program in Struts
I just started writing a basic program for structs, i did installed tomcat and set the CATALINA_HOME to - C:\Program Files\apache-tomcat-7.0.41
and set the path variable to - %CATALINA_HOME%\bin;
i ...
0
votes
1answer
23 views
Eclipse: Does only “Run As > Run On Server” call web.xml
I have a Java script that currently, which I rightly click and select Run As > Java Application, launches a webpage with Jersey. It is not a servlet (though it calls a servlet through Jersey?... I ...
0
votes
3answers
41 views
Processing heavy operations with doGet() method on a servlet
The tool I'm working on can only send GET requests, and I need to process heavy operations using the information contained within the request. These operations then return a String containing a URL I ...