4,248 Topics

Member Avatar for
Member Avatar for anindo87

hello evryone. please someone help me. I want to load the data frm sql server database at the button click...how to load the data using resultset rs.getString("column name") in the <option></option> tag using JSP codes??

Member Avatar for anindo87
0
461
Member Avatar for karamjeet2004

INFO: validateJarFile(C:\fetching\build\web\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [B]i have got this error while running the servlet jsp code[/B] sometime show [B]servlet jsp is unavailable[/B]

Member Avatar for kvprajapati
0
85
Member Avatar for baftjar

Hi Guys, I have hit a wall with a problem that does not allow me to go any further. Here is what I am developing. =========Story=============== Firstly, I am using Spring MVC and Java to develop this small application. I have a form input screen which populates records to DB. …

Member Avatar for ~s.o.s~
0
97
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for ~s.o.s~
0
181
Member Avatar for memegha123

hi! I m writing a jsp where i want the page content to change when the selected option from a combo changes...how do i execute the method that determines the code which will fetch that data....i guess i'' have to go with javascript but i dont think a java script …

Member Avatar for javaAddict
0
4K
Member Avatar for mimsc

Sup fellas...another question..how Can I pass my jsp as the contents of a email message. The way we send email around here is we set the parameters of a form into a DB table and a cron job sends the emails out [code] String address= "suggestaservice@agentadvantage.com" String name = request.getParameter("name"); …

Member Avatar for mimsc
0
113
Member Avatar for UnforsakenX

I'm trying to figure out how to get results from a database query to be displayed on a listed page and if the user wants to know more about the results they will click one of the dynamically generated items that is hyperlinked. This will then bring the user to …

Member Avatar for UnforsakenX
0
109
Member Avatar for alsoumhi

Hi Friends hope you are fine, my question is how to send a respond message created by a servlet to a specific e-mail. let's say I create a registration servlet, this servlet will send a respond message to an e-mail , instead of showing the respond message as a web …

Member Avatar for peter_budo
0
69
Member Avatar for CodeBoy101

Hello to all, I was wondering how to run servlets using Glassfish V2. I'm using NetBeans 6.5 and need to use servlets, but I don't want to install Tomcat to do so, any suggestions?

Member Avatar for peter_budo
0
127
Member Avatar for Rapmanseele

I have a problem with tomcat 5.5. I always have to start a service manually.So what can I do in order to make it start automatically?

Member Avatar for peter_budo
0
86
Member Avatar for llazar

Is it possibile to insert SQL in JSP? If you have examples about how to connect to a MySQL database from a JSP web page, how to view, edit, create tables please send. I am looking forward to receive some code about JSP & MySQL. Yours sincerely, Laurian Lazar

Member Avatar for kvprajapati
0
264
Member Avatar for alsoumhi

hi all , I have a simple question , let's say we have a servlet program and a web page . the question is how to make a servlet calls the web page and sends it as a respond to any request coming to the servlet. Is there any statement …

Member Avatar for kvprajapati
0
98
Member Avatar for rs25

Hello everyone I'm just a newbie in java/jsp Need suggestion and how to proceed in the following: 1. Wanted to create web app. (jsp/servlet) with login and access autorization. the situation is like i have a home page with login info inputs, i direct the inputs to a jsp in …

Member Avatar for masijade
0
125
Member Avatar for memegha123

can anybody tell me how do i create a link that forces a .doc file to download on the client computer or if that's really difficult to do without a ftp server.. then how can i display the file in browser as pdf

Member Avatar for memegha123
0
91
Member Avatar for mimsc

I did a google search and found that PHP uses: $_SERVER['HTTP_USER_AGENT'], which would give the following result, should I visit a page: [code] Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16 [/code] is their any functionality in java that will do the same?? …

Member Avatar for ThinkFree
0
98
Member Avatar for alsoumhi

hi all , my question is how to create a hypertext link in servlet so if the user click it, it shows another web page or a message .

Member Avatar for Thirusha
0
86
Member Avatar for kinger29

I have a passkey to authenticate access to a web service in the code of one of my java serlvets. How easy is it for someone to view the code for my java servlet when it is on my web server? It would pose a security risk to my entire …

Member Avatar for Alex_
0
160
Member Avatar for Ayeman

Actually i download the source code of forum website from a website but there is no documentation about interfaces code contain java and servlet classes. i send this code with email tell me how this code interact with interfaces and what are the names of interfaces and how many textareas …

Member Avatar for kvprajapati
0
41
Member Avatar for harshit99

hii i will to code a submit button so that a mail is generated carrying the information of the client to a destined email id form the database. i want this email created and sent without the user seeing the content, eg when u register at some site u get …

Member Avatar for kvprajapati
0
71
Member Avatar for Alex_

Hello. I'm starting to have a headache at solving this. I work in Eclipse IDE and run the project on tomcat server. What i do is this: i have a form, like this: [code=html] <form method="GET" action="http://localhost:8080/BookShelf/ComputeSearch"> <p>Book <input type="text" name="book" size="7"/></p> <p>Chapter <input type="text" name="chapter" size="5"/></p> <p>Verse <input type="text" …

Member Avatar for Alex_
0
120
Member Avatar for peggie1990

Hey, I really need you guys help as I had been searching info on displaying blob images from database for weeks:( I tried to add in the code that i think would display however it only display the path instead if the image. [CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ …

Member Avatar for peggie1990
0
1K
Member Avatar for ThinkFree

Please help me in setting apache-tomcat-6.0.20 on linux. When I use the code [QUOTE]sh startup.sh[/QUOTE] I see this. [QUOTE] Using CATALINA_BASE: /home/apinder/apache-tomcat-6.0.20-src Using CATALINA_HOME: /home/apinder/apache-tomcat-6.0.20-src Using CATALINA_TMPDIR: /home/apinder/apache-tomcat-6.0.20-src/temp Using JRE_HOME: /usr/java/jdk1.6.0_14/[/QUOTE] No error message is shown here, but if I open [url]http://localhost:8080/[/url] tomcat default page doesn't open. I haven't changed …

Member Avatar for ThinkFree
0
127
Member Avatar for jeff_00789

Hi, i want to know how to extract values from drop down box for processing in next field. In my file first drop down has list of countries taken from a database. I want to show location of that particular country in the other dropdown. The list of all locations …

Member Avatar for manfosys
0
183
Member Avatar for java_programmer
Member Avatar for ThinkFree

Want to create a small project for online exam using jsp. As of now I am unable to find, how can I > Get random questions from mysql database > Put the timer, so that the exam result is shown automatically after the specified time for exam is over More …

Member Avatar for ThinkFree
0
366
Member Avatar for ravi_kos

I want to create a forum for the college. Could anyone tell me the [U]suitable platform or software[/U] that supports forum creation.

Member Avatar for kvprajapati
0
103
Member Avatar for swathirao

I have installed on Linux Tomcat 5.5. I have no problem accessing jsp pages. However, I have problem accessing a test hellow world servlet. I tried the following url on my local tomcat on win xp and it worked. [url]http://localhost:8080/hw[/url] Attached is a copy of my web.xml file I used …

Member Avatar for ayaz786
0
106
Member Avatar for farahshafilla

my code : ********uploadImage.jsp************* [code=JSP]<form action="UploadImage" method="post" enctype="multipart/form-data" name="productForm" id="productForm"><br><br> <table width="400px" align="center" border=0 style="background-color:ffeeff;"> <tr> <td align="center" colspan=2 style="font-weight:bold;font-size:20pt;"> Image Details</td>[/code] ******UploadImage.java****** [code=Java]import java.io.*; import java.sql.*; import java.util.*; import java.util.regex.*; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.*; import javax.servlet.*; import javax.servlet.http.*; public class UploadImage extends HttpServlet { @Override public void …

Member Avatar for kvprajapati
0
2K
Member Avatar for alsoumhi

Hi all , I have a servlet program, this program will get a user name and password from a web page. I need to check the user name and passsword entered by user with a data file has all user names and passwords. the thing is I know how to …

Member Avatar for alsoumhi
0
89
Member Avatar for prasannakarthik

Hi, I like to add textbox based on the user selection in drop down box,I have used an function to do that but its not workin,also i like to append the selected value(from drop down) to the input from the text box. Cheers! lpk

Member Avatar for CoSIS1
0
3K
Member Avatar for nipa.pillai

I want to create a tabbed menu using jsp. Any example would be helpful so that i can start working on it.

Member Avatar for CoSIS1
0
342
Member Avatar for alsoumhi

hi all , I am new to this forum I have a simple question why getParameter() doesn't work with me . My java server page is as follow: [code=Java] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class InputServlet extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException, ServletException { String …

Member Avatar for alsoumhi
0
296
Member Avatar for nipa.pillai

Below is the scenario.. First Page Second Page Radio button 1 Radio button 2 Submit. I select the first Radio Button and submit and then i go to second page where i have some content. Now when i go back to first page the same radio button which i had …

Member Avatar for kvprajapati
0
255
Member Avatar for CoSIS1

Hi everyone ; I have read The JFreeChart Class Library Version 1.0.13 Installation Guide and I follow the instruction there but I got some errors while the Installation; allow me to show the steps that I have followed and the errors I got : 1. Download jfreechart-1.0.13.zip and jcommon-1.0.16 files …

0
69
Member Avatar for CoSIS1

Hi everybody, I am going to develop a web application by using jsp, in this application when I retrieve multiple rows from table into form as following : [code=jsp]<%Vector v1,v2; jmm.Database database = new jmm.Database(pageContext.getServletContext().getRealPath("/WEB-INF/config.txt")); database.jdbcConnect(); String sql; sql = "select question_text from tableA where type = 'Student'' "; v1=database.jdbcMultipleRowQuery(sql); …

Member Avatar for CoSIS1
0
126
Member Avatar for CoSIS1

Hi everyone; I have table contains question and answer columns , the answer either yes or no , I want to count the answer yes and answer no then compare the two results and if the count(answer) yes is greater than count (answer) no print yes else print no I …

Member Avatar for CoSIS1
0
189
Member Avatar for Tmanchester

Howdy, I am quite unskilled on UI but have been tasked with looking at behavioral problems on our site. It has been observed that the app acts differently when a user clicks on a submit button with a mouse versus tabbing to it and the pressing Enter on the keyboard. …

Member Avatar for Airshow
0
114
Member Avatar for memegha123

hi! this is what i m trying to do i m trying to display a form which has a drop down menu n a table displaying some basic data....now i want once user selects an item i want the form to submit to itself with the selected item as parameter..n …

Member Avatar for javaAddict
0
151
Member Avatar for gshockneo

Hi, I am really struggling with this problem. For ex. I have a login jsp page . After user logs in , I store their username and password in session object in next page. Now if I want more than 1 user to abe able to login from same browser. …

Member Avatar for gshockneo
0
997
Member Avatar for mimsc

Hey Fellas...Im getting this error on a "select box"...im trying to parse some info: PWC6197: An error occurred at line: 88 in the jsp file: /jsp/cpanel/HomeSellerList.jsp PWC6199: Generated servlet error: string:///HomeSellerList_jsp.java:147: cannot find symbol symbol : method indexOf(java.lang.String) location: class java.lang.Object PWC6197: An error occurred at line: 88 in the …

Member Avatar for hkansal
0
90
Member Avatar for get2tk

PLEASE HOW DO I START USING JSP TO BUILD WEB PAGES ON NETBEANS FROM SCRATCH.I HAVE LOOKED UP ALMOST EVERYWHERE AND IT KEEP CONFUSING ME.(I HAVE netbeans ide 6.1 VERSION). ALL MY CODES HAVE BEEN WRITTEN IN JAVA AND I NEED TO UPLOAD THEM USING WEB PAGES AND NOT JUST …

Member Avatar for memegha123
0
156
Member Avatar for gshockneo

hi I have a simple log in form. I want that after user logs in , he should not be able to goto login page again using back button of browser. Does page reloads fresh when back button is clicked or it simply displays what was earlier. login.jsp [code] <% …

Member Avatar for peter_budo
0
109
Member Avatar for mimsc

Hey Fellas...Im getting this error on a "select box"...im trying to parse some info: PWC6197: An error occurred at line: 88 in the jsp file: /jsp/cpanel/HomeSellerList.jsp PWC6199: Generated servlet error: string:///HomeSellerList_jsp.java:147: cannot find symbol symbol : method indexOf(java.lang.String) location: class java.lang.Object PWC6197: An error occurred at line: 88 in the …

Member Avatar for sillyboy
0
846
Member Avatar for ankurmawanda

i want to create a simple form which stores date in to a ms access db so i created a form register.html and action user_register.jsp i also created a ms aceess db when i fill the form the data is passed to the Auction.mdb but the server shows error HTTP …

Member Avatar for kvprajapati
0
179
Member Avatar for taresh1

I developed a jsp page.. and i dont want any one to access the page just by copying he URL what to do.???

Member Avatar for Thirusha
0
88
Member Avatar for ppomu

Hello, I need the jsp scripts to retrieve data of my radio button from database to my form which i have developed using jsp and connected to oracle database. Find below sample of my radio button code. Thank you [code=html]<td width="147" valign="middle"><input type="radio" name="biztype" id="biztype3" value="corporate" onclick="checko();"/> Corporate/Limited</td> <td width="182" …

Member Avatar for ppomu
0
2K
Member Avatar for NeelimaB

i am getting an exception "org.apache.jasper.JasperException" with root cause "java.lang.NullPointerException" why does this exception come?

Member Avatar for masijade
0
54
Member Avatar for gokyo66

Hi there, new here, found this website this morning when I was looking on google for a solution related to JSP, and guess what? I found it here. So first of all thank you. Im Roberto 43 yo. Living in Switzerland moving to US probably end of this year. Im …

Member Avatar for artagnan1978
0
116
Member Avatar for ppomu

Hello, I have developed a web based application using jsp and connection as Oracle 9i database. The problem encountered is that whenever I am opening any jsp pages, a session is being created in the database which even after being killed did not disappear. In fact it should be that …

Member Avatar for peter_budo
0
147
Member Avatar for vandana88

Hi I have a difficulty in insertion data. I don't get any error message but it doesn't insert data to database. My code is below. Where am I wrong? [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <HR noshade size="5" width="50%" align="center"> <title>ZONE</title> …

Member Avatar for irfannagaria
0
165

The End.