I don't really know where to start with this issue, so I'll just say what's wrong:
I'm running some code in Eclipse that is connecting to our remote "dev" server and presumably using the server there. This means that when I update code in the servlet or any code that actually uses the servlet, no changes are reflected on my local machi...
Hi, is there a way to use request.getRequestDispatcher with a FQDN? Something like
request.getRequestDispatcher("http://mysite.com/test")
If I try it, I get the error
JSPG0036E: Failed to find resource /http:/mysite.com/test
I need to forward it outside the current context to another app.
Thanks
...
I have a single WAR that runs two servlets. One provides AMF remoting to Flex clients and other SOAP/HTTP to web service clients. I currently have Spring Security configured to authenticate the Flex clients using DaoAuthenticationProvider. However, I'd like to use a different authentication provide for the SOAP/HTTP. Possibly basic a...
I've recently run into a snag that will probably keep me from being able to follow through with plans to package a single WAR with two servlets. The work-around is to create an extra Maven WAR module.
Besides the extra hassle for me and for customers, is there any other real drawback? are there advantages?
@Edit
The "snag" I have ...
Hi all,
Wondering how can I do the following in JSP/Servlets:
Upload a zip file (containing multiple CSV files)
Unzip the file to obtian the CSV files
Read the CSV files and pump the records into a mySQL database
Note: mySQL table is set up and ready for CSV files inputs.
Thanks in advance.
...
private void somename(HttpServletRequest request, pageBean UTIL) throws Exception
{
checkEmpHxAction(request, UTIL);
long empRecNum = UTIL.getNumValue("EMPLOYEE", "REC_NUM");
ListBean list = UTIL.getListBean(request, "EMPTRNHX", true);
}
My boss says that there is an improvement needed in the coding st...
Why is the parameter value an Object hash code:
input_name:[[Ljava.lang.String;@3f4d64]
I thought the code request.getParameterMap().get(name); would produce the value of the request parameter:
Enumeration params = request.getParameterNames();
while(params.hasMoreElements())
{
String name = (String)params.nextElem...
My application should work without cookies. How can I get the parameters of the URL from a java file if cookies are disabled.
req.getParameter("abc") gives null when I tried.
I've 3 spring GenericFilterBeans in this application and I can see the values inside filters. How can I make the parameters available to others controllers and o...
We have a commercial software product under development. It supports Oracle, MySQL, and SQL*Server backends (we also use H2 for testing). We do our integration testing against those different database using JDBC drivers of a specific version. Maven handles all this beautifully.
When packaging the application as a WAR, is it ok if we ...
Let's say I have a running Java-based web application with 0 or more valid HttpSession objects associated with it. I want a way to access the current list of valid HttpSession objects. I was thinking that I could implement an HttpSessionListener and use it to append to a list of session id values that are stored in an application-scoped ...
Hi,
Firstly, I have a zip file containing CSV files. I have to unzip it to a temporary folder and load data into jdbc database and then delete temporary folder.
Note: mySQL table is set up and ready for CSV files inputs.
thanks.
...
Hi , I have the below code:
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
out.print(isMultipart);
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request...
I'm using Apache Tomcat 6.0.26 with java servlets and JSPs.
Whenever I'm trying to link to an external website, my anchor tags always contain my request context path before the external link. For example if my context path is http://localhost:8084/MyWebPage/ and I'm trying to link to www.google.com via this tag:
<a href="www.google.com...
Hi,
i am using NetBeans, and i am working on a jsp page that allows the upload of a zip file. The zip file contains 6 CSV files, that is to be written to the SQL database.
My question is, how do i go about allowing the user to upload the file, unzip it in the jsp page, and allow me to read the file? Thanks in advance!
...
My problem is this:Google App Engine allows cron jobs to be active for only 30 seconds before an DeadlineExceededException is thrown. And my app that isn't suited for the google app engine platform from this point of view, needs to call a time-consuming cron job.
One solution that I figured out was to calling another Servlet (Servlet2) a...
I created one web application so i want to store my past logged user name list for comparing new users which are going to login. so how i do that by using ServletContext ?
or is there any other way?
...
Hello everyone
how can i refresh a jsp page from other jsp page
i have a jsp (jsp1) page that hold 2 frame of jsp
i need that the jsp (jsp2) will refresh the other jsp (jsp3)
and another question same one as above only with servlet
how can i make a servlet page refresh a jsp page
...
Hello All,
I've a production env and test env. Production has win2k3+tomcat 6.0+ and network drive mapped to a drive letter for easy access (z:\app instead of \symba\files\app). My test env has windows xp (all the software is same including the source code for servlet) and test also has the same drive letter mapping to the network drive....
I have a new web app that is packaged as a WAR as part of a multi-module Maven project. The applicationContext.xml for this WAR references beans that are imported from the "service" module, which in turn imports beans from the "dao" module. The import statement in applicationContext.xml looks like this:
<import resource="classpath*:se...
Hi,
I'm having an issue with a servlet that delivers multimedia data. I'm trying to use it from mobile safari on the iPhone and I get the "server not configured correctly" error. I server the same multi-media file using a web share on my Mac (Apache) and it works fine. I start looking at HTTP heades to see if the servlet is messing up a...