3,760 Topics

Member Avatar for
Member Avatar for puk

Hi, I have written the following code to download a file from a MySql database using a Servlet.The problem i have is that i havnt done it right. Can someone please point me in the right direction. Any help will be greatly appreciated. Thank you for your help. [code=java] import …

0
73
Member Avatar for indu_ss4

Hi! i'm developing a web application in jsf. There are files that gets opened from the server when the user click the name of the file. It works perfect when many users access the same file at different time. But if more than one user access the same file or …

0
72
Member Avatar for rajkumarsrini

Hi All, I am new to JSP. From my JSP application i will be uploading some images these images should be encrpted when they are uploaded. If any one opens the image which was uploded through my JSP application, they should not be able to view the image. The images …

0
50
Member Avatar for oggiemc

Hi people, I want to have an if statement in my servlet that if no results are found from database i print out an error to a html page. Im not to sure how to do this though..See my attempt in code below, can someone tell me what im doing …

Member Avatar for javaAddict
0
100
Member Avatar for ninadg

I am new to JSP and am having trouble comparing string with the value in a form field submitted. The following is the code that I am executing through Tomcat and is not giving me the desired result: [CODE=java]<% String myvar = request.getParameter("var1"); boolean first = false; if (myvar == …

Member Avatar for javaAddict
0
355
Member Avatar for oggiemc

Hi everyone, i want to output the results of the select statement in the code below, to a html table as opposed to just a list of out.println statemants..Can someone tell me how to go about doing this please?? Thanks oggiemc [code=java] import java.io.*; import java.lang.*; import java.sql.*; public void …

Member Avatar for oggiemc
0
101
Member Avatar for pwindsor

Hi Having a problem with iframe resizing when the iframe body is a jsp file which contains a dynmically built ajax table. Users select different options from a drop down. All but 1 is a standard static jsp file. The other is a jsp file with a dynamic ajax table …

Member Avatar for Airshow
0
288
Member Avatar for Ghada Ibrahim

Hello , I really need your help! i created a textbox in a jsp page , but i want its value to change using another JSP page without using a submit button in the second page , i need it automatically if a certain condition applies.. Pleaaaase can anyone tell …

Member Avatar for Ghada Ibrahim
0
2K
Member Avatar for indu_ss4

Hi! i'm a new user of jsf. I'm developing a web application in jsf 2.0 . There is a page in my application for which i have given session scope. In this page i retrieve values in a datatable from mysql database according to the chosen combo box values. I …

Member Avatar for indu_ss4
0
1K
Member Avatar for magic88

Hey guys, In JSP I used to create my sessions in my servlet like this: [CODE]session.setAttribute("user", username);[/CODE] and then call it from a JSP page like this: [CODE]<%= session.getAttribute("user") %>[/CODE] However this does not work in JSPX pages and its driving me crazy. Can any one help me? Any help …

Member Avatar for peter_budo
0
93
Member Avatar for nschessnerd

Hey ppl. I've been working on this forever and cant seem to get it. I am developing a site in jsp using netbeans and i have an applet i want to add to a page.I know i have to use <applet> tags but i dont know what to put to …

Member Avatar for peter_budo
0
124
Member Avatar for vitroblue

hi i want to display the selected values from a "select" object into a new window with jsp but no matter what i do, it always writes "null" can you help me? this is mi code [CODE] <form id="form1" name="form1" method="post" onsubmit="revisar()" action="echo.jsp"> <table width="699" border="0" cellspacing="10" cellpadding="4"> <tr> <th …

Member Avatar for javaAddict
0
156
Member Avatar for samlabs821

[code=Java]public class logout extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); session.invalidate(); response.sendRedirect("index.jsp"); } }[/code] session is …

Member Avatar for lara.harsh
0
126
Member Avatar for KurtDOg200

Hi All, I'm having issues with a for loop in .jsp. The second for loop in red will not post anything to the webpage. It will do work with variables. But when I try putting something like [B]<%=employeeIDArray[i]%>[/B] in the loop it does not work. Any help is appriciated. [CODE] …

Member Avatar for javaAddict
0
69
Member Avatar for vij123

i have two Jsp's pages. on main.jsp have some list of schools. from there i can go home page of any school. home.jsp represents a school home page. in home.jsp have some links like message, vision, addmission etc. when i click on any of these link then i get some …

Member Avatar for tyson.crouch
0
102
Member Avatar for funnychild

hi, i just need to pass the value from my html page to my servlet...it is not working...pasting the code below.. [CODE] <html> <head> </head> <body> <form name="frm" method="GET" action="http://localhost:8080/connect/ConnectServlet.java"> <input type="text" name="txtName"> <input type="submit" name="btSub"> </form> </body> </html> [/CODE] my Tomcat is running and i am able to run …

Member Avatar for peter_budo
0
54
Member Avatar for Bobon

Hey lads, Firstly apologies for the long message. I just thought it might be easier to explain my issues. I'm doing a website for myself and have been getting some amazing info from this forum. I've moved onto the database part to it. Now, for my website, user can sign …

Member Avatar for ds2r
0
105
Member Avatar for tyson.crouch

G'day, My problem is not one that is overly complex but i have been unable to find a simple solution to my problem. My problem is that i have my given form with two submit buttons, for which I'm using images. Once i click on the images, how do i …

Member Avatar for ~s.o.s~
0
216
Member Avatar for Pradeep Nayak

In jboss, if i use localhost to access the application then its working and if i use ip address its not working why !!!!!!!! can anybody suggest ?

Member Avatar for ~s.o.s~
0
38
Member Avatar for fango

[code=java]package jee5study.exercise.disboard.servlet; import java.io.*; import java.net.*; import java.util.*; import javax.servlet.*; public class Board implements servlet { private String SvName; private Date Started; public void init(ServletConfig config) { SvName = config.getServletName(); Started = new Date( (java.lang.System.currentTimeMillis())); System.out.println("Servlet: " + SvName); System.out.println(" Started: " + Started.toString()); } public void destroy() { Date …

Member Avatar for jenn11
0
148
Member Avatar for rumpleteaser33

Hi I have a problem with my first program using JSP and am hoping that someone could help me? In my servlet I am using a vector to create my JavaBeans and insert the values from my database: [CODE] rs = stmt.executeQuery(); Vector collection = new Vector(); while (rs.next()) { …

0
69
Member Avatar for albertkao

The group button in my form is set to "unack". The Spring HwController receive the correct group "unack" when the "apply" button is clicked. However, the HwController receive the null group when the cursor is moved to the text box and press the <Enter> key. Only the data from the …

Member Avatar for albertkao
0
225
Member Avatar for andypooz

I'm desperately trying to do some coursework and its not going well. I've been searching for example code for registering a new user to a database. I have a database connection and data access servlets but its riddled with errors. Its building but throwing up apache errors of all types. …

0
51
Member Avatar for vandersal

Hello Experts pls i want get all the form data for id card along with the passport image when correct id corresponding to the database row is inputed. the code only retrieves other form data but can't get the image. --------------recovery.jsp--------- [CODE=jsp]<HTML> <HEAD> <TITLE>Database Lookup</TITLE> </HEAD> <BODY> <FORM ACTION="recover1.jsp" METHOD="POST"><fieldset><legend> …

Member Avatar for peter_budo
0
1K
Member Avatar for rje7

I am trying to change the look of the jsp/servlet pages dynamically based on the device from which the request comes. i have done the part of how to identify the devices from which the request arises. but stuck at the part where i should change the css sheet. is …

Member Avatar for jwenting
0
69
Member Avatar for vij123

i am calling a JSP from a servlet but i am getting a error Error 404- Not found. Servlet file is reside in E:\Simple\WEB-INF\classes\servlet folder. ServletHome.java [CODE] package servlet; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.net.*; public class ServletHome extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, …

Member Avatar for rahulrinayat
0
170
Member Avatar for Bobon

Hey lads, Just have a small query here thats really bugging me. When details are entered by user and checked in database, the program should display one of two messages as seen below. When the details are entered correctly the welcome message displays correctly. However, when incorrect details are entered, …

Member Avatar for Bobon
0
137
Member Avatar for jackrobert

I am new one for jsp and web developement... if i click back arrow in navigation toolbar (from any page in my application) ,then go to logout page... For example.... Suppose i am in page4... here i click backarrow in browser then i want to go logout page, don't go …

Member Avatar for jwenting
0
114
Member Avatar for eswaramoorthy

I am new one of jsp .i have developed simple webapplication using jsp... Step 1 : I have one login page : (contains username ,password and sumbit button) Step2 : I have one logout page : it has one link (Go to login page), just u click this link go …

Member Avatar for jwenting
0
139
Member Avatar for leena_patra

i am trying to make ajax call to a jsp and setting up a few variables using(retrieved from the session) # delimiter using out.println and then use this variable in the response object of onSuccess call back function. and then i have to remove that from the session. But if …

0
65

The End.