How to access Wicket WebSession from plain Servlet
I have my own Custom session class that extends Wicket's WebSession. I want to access this Custom session class from plain servlet doPost() method. What are the ways for this? ...
I have my own Custom session class that extends Wicket's WebSession. I want to access this Custom session class from plain servlet doPost() method. What are the ways for this? ...
Why would it be preferred over Tomcat? Is your experience with big or little companies? Internal or external (customer/public facing) systems? ...
I need a mechanism to read session state from a Java class, without having to pass any arguments (including HttpRequest) to the class. The reason is that the class is 1-3 calls away from the servlet and i dont want to pollute the method argument list with an extra arg for every call. I basically have the same prob of these guys: http://...
Hi, I have a YUI dialog that submits a form to a Java servlet. The servlet returns html and javascript. I take the response and put it into a div on the page and then eval the javascript that is within the div. My problem is that I get an error in the firebug console saying "YAHOO is not defined" as soon as the servlet returns. I do...
I had an argument today with one of my teacher where he was saying CGI was always slower than Servlet. I told him that performance was subjective and in some situation CGI could perform better than Servlet. He insisted on getting example of when CGI could be faster than Servlet. I just want to know what would be the most solid thing I co...
I have a servlet that does a request dispatcher include of another servlet. The included servlet sets headers that I would like to read in the including servlet. So I pass in a custom HTTPResponse object in the include() method which captures all feedback activity from the servlet. The problem is that the headers are not being set in...
Have a look at the following code snippet. response.setContentType("image/gif"); String url="jdbc:oracle:thin:@localhost:1521:xe"; String username="xyz"; String password="abc"; Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn=DriverManager.getConnection(url,username,password); String sql="Select name,description,im...
Hi guys, I am having a weird problem here, and I am really stuck, need to get this work badly. so i have a page say index.jsp with a link say "a href=servlet?action=viewMenu". when I click on this link it will go to doGet() on my servlet and here is the code in my servlet. protected void doGet(HttpServletRequest request, HttpServletR...
I wanted to consolidate two functions. After getting a viable solution, I decided to play with the code a bit further, and came up with this: package hu.flux.helper; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; import java.i...
Hi to all, I have a web application deployed on a tomcat server. I upload files via a POST method and then the uploaded files are transcoded to another type (e.g. 3gp to flv). How can I test, how many concurrent uploads and transcodings my web application can handle? Any thoughts or any examples? Don't know a thing about stress or load ...
I've created a servlet app using Netbeans and it works on my local machine. Now I need to deploy the app to my college class Tomcat 6 instance. The instance is set up like so: /java/tomcat/webapps/<student_id>, where student_id are the 30 student IDs for my class. What exactly do I need to deploy to /java/tomcat/webapps/elvin in order...
hello; i have a jsp page that checks a query if the answer is true the program goes to a servlet page otherwise the program continue as planned my question is: if i do go to the servlet page how can i close the original jsp page from the servlet ...
I use three servlets to serve files for download: ByteArrayDownloadServlet: used for small files, such as reports or files from database FileDownloadServlet: used for small to large files MultipleFileDownloadServlet: create a zip with the requested files and stream it They are based in the following implementation: link text I have ...
Can i send object or bean instead of sending parameters in jsp request to servlet, if yes , How can i get the value from each input field and use it inside jsp. E.g: //define user object <jsp:useBean id="user" class="iug.edu.entities.UserBean"/> //here is the input inside fomr <input type="text" name="userName"/> //here jsp code , to...
I'm working on a program that often does Excel exports from hypermassive database tables. One test case I'm doing right now does about 300k rows by 40 columns into one xlsx worksheet. It completes in about 6 minutes or so, taking about 1.1GB RAM, but I've run into a major hangup - after exactly 300 seconds have passed, I see this patte...
I have a JSF/JSP page, a managed bean, and a separate file/class that extends HttpServlet with the doPost method. I have a separate test program that sends a xml object to the doPost method via a HttpURLConnection. What is wanted: Start the JSP page with temporary data (works). At a later time, send a new xml object to the doPost met...
I apologize for the crummy subject line. I started at a new company last week and was thrown into the lion's den immediately. We had a application on the verge of going into production... One of my guys had the app running and QA'ed so I didn't delve too much into the details of what he was doing. We had this: ../legacy/ROOT/ ..........
Possible Duplicate: Java: How to invoke code running on a server from a browser? I just asked: Java: How to invoke code running on a server from a browser? I got back numerous suggestions. Here is a short summary: Java Servlets Java Server Pages Java EE Tomcat Axis Glassfish I am not sure what I should prioritize. I ha...
I am using Servlet and JSP without a framework to study for my SCWCD. I have a simple form that I want the parameters to bind to a bean automatically. Is this possible without writing binding code or using a framework? Thanks ...
Hi, I am absolutely new to android development and I need help in know how can I invoke a remote servlet which is gonna send me data from a database in the form of xml. I am a beginner and I don't understand jargon. If possible provide me with a link/tutorial for the same. Any help is greatly appreciated, Thanks! ...