3,760 Topics

Member Avatar for
Member Avatar for Rajesh.D.N

<html><body> <%@ page import="java.sql.*" %> <% String user="root@localhost"; // root itself String password="pwdl"; String connectionURL = "jdbc:mysql://localhost/Database_name"; Connection connection = null; Statement statement = null; ResultSet rs = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, user, password); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * table"); while (rs.next()) { out.println(rs.getString("name")+"<br>"+rs. getString("emailid")+"<br>"+rs.getString("contents ")+"<br>"); } …

Member Avatar for masijade
0
106
Member Avatar for venkatnavi

Hi, This is naveen, i am having a problem that, i am having a combo box in the JSP page when i select an item from that i am calling the onchange function. In javascript i am getting the value now i want to pass this value to JSP scriptlet.. …

Member Avatar for hudz
1
13K
Member Avatar for Cerberus

Hi all. How do you get values from an appended url string using JSTL? For example: redirect.jsp?pageid=23 -how would i get that value? Thanks.

Member Avatar for Cerberus
0
73
Member Avatar for kedarkhedkar

Hi All, I am doing a project which is struts based. I have included following files in build path of eclipse. servlet-api.jar jasper-runtime.jar jsp-api.jar struts.jar antlr.jar commons-beanutils.jar commons-digester.jar commons-fileupload.jar commons-logging.jar commons-validator.jar still I am getting errors: the import javax.activation can not be resolved at line import javax.activation.*; the import javax.mail …

Member Avatar for sillyboy
0
80
Member Avatar for Tenketsu

Hi Guys, This is probably a very basic query, but asnyways. I'm trying to write a jsp website involes doing some data calculations. However, I'm having problems trying to get my own java classes to be recognised by tomcat. So far I've tried :- 1. putting the classes in the …

Member Avatar for Cerberus
1
57
Member Avatar for hidash_in

pls help how to open a file in an application using jsp and it should not open in a browser if possible pls send ur code as soon as possible.. pls help pls help.

Member Avatar for masijade
0
113
Member Avatar for mav2040

Can aanyone help me with my ApacheTomcat. I have never configured sever before. Its actually my first time. I just dont know how to run or even configure this ApacheTomcat. Where should I set the CATALINA_HOME variable? and what is it for?

Member Avatar for masijade
0
85
Member Avatar for paski

Hi I am trying to create something like online shop with products and a shopping basket. User can see an html form and edit it. The form is represented by bean. After editing it, he should be able to create new, or submit all products he edited (add actual bean …

Member Avatar for paski
0
154
Member Avatar for kedarondaniweb

i want to show word(.doc) files contents in JSP (in IE when run) itired with include action and directive but it disent works. OS- win2k -- tomcat 5.5

Member Avatar for hidash_in
0
52
Member Avatar for palanidgl

Hi can i open the excel and indesign files through java or jsp or javascript Thanks Palani

Member Avatar for masijade
0
64
Member Avatar for elangobala
Member Avatar for nschessnerd
0
46
Member Avatar for asangas

i have a class like this public class TDorgrnize{ private long orgID private orgnizMini org //getter and setters } public class orgnizMini{ long id Sting name //getter setter } in a action class i m getting this TDOrgrnize to generic list like this private List<TDorgrnize>() torg; so i want to …

0
36
Member Avatar for jilshi

i am using jsp to create web site. How can i insert data into database but do not have text box in the web site. i want to have data automatically show in the database without having people key in data from web site. the purpose for doing this is …

Member Avatar for masijade
0
147
Member Avatar for aruna_k_2006

[COLOR=green]This is my main window [/COLOR] [COLOR=green]<html>[/COLOR] [COLOR=green]<head>[/COLOR] <SPAN style="COLOR: green">[COLOR=green]<[/COLOR][COLOR=green]script [/COLOR][COLOR=green]language[/COLOR][COLOR=green]=[/COLOR][COLOR=green]javascript[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]function [/COLOR][COLOR=green]PopWindow(URL,height,width)[/COLOR] [COLOR=green]{[/COLOR] [COLOR=green]// alert("in popwindow");[/COLOR] [COLOR=green]window.open(URL,height+width,[/COLOR][COLOR=green]"width="[/COLOR][COLOR=green]+width+[/COLOR][COLOR=green]",height="[/COLOR][COLOR=green]+height+[/COLOR][COLOR=green]",resize=no,resizable=no,scrollbars=yes,menubar=no,status=no"[/COLOR][COLOR=green]);[/COLOR] window.focus(); [COLOR=green]}[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]script[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]head[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]body[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<%[/COLOR] String StudentID=request.getParameter([COLOR=green]"id2"[/COLOR]); System.out.println(StudentID); [COLOR=green]%>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]form [/COLOR][COLOR=green]method[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"Post" [/COLOR][COLOR=green]name[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"f1" [/COLOR][COLOR=green]action[/COLOR][COLOR=green]=[/COLOR][COLOR=green]""[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<table [/COLOR][COLOR=green]border[/COLOR][COLOR=green]=[/COLOR][COLOR=green]0 [/COLOR][COLOR=green]align[/COLOR][COLOR=green]=[/COLOR][COLOR=green]left[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]tr[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]td [/COLOR][COLOR=green]align[/COLOR][COLOR=green]=[/COLOR][COLOR=green]left[/COLOR][COLOR=green]><[/COLOR][COLOR=green]b[/COLOR][COLOR=green]><[/COLOR][COLOR=green]font [/COLOR][COLOR=green]color[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"maroon" [/COLOR][COLOR=green]size[/COLOR][COLOR=green]=[/COLOR][COLOR=green]3[/COLOR][COLOR=green]>[/COLOR][COLOR=green]&nbsp;[/COLOR][COLOR=green]|[/COLOR][COLOR=green]&nbsp;[/COLOR][COLOR=green]</[/COLOR][COLOR=green]font[/COLOR][COLOR=green]></[/COLOR][COLOR=green]b[/COLOR][COLOR=green]>[/COLOR][COLOR=green]Student ID[/COLOR][COLOR=green]</[/COLOR][COLOR=green]td[/COLOR][COLOR=green]><[/COLOR][COLOR=green]td[/COLOR][COLOR=green]><[/COLOR][COLOR=green]input [/COLOR][COLOR=green]type[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"text" [/COLOR][COLOR=green]name[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"StudentID" [/COLOR][COLOR=green]value[/COLOR][COLOR=green]="[/COLOR][COLOR=green]<%[/COLOR][COLOR=green]StudentID[/COLOR][COLOR=green]%>[/COLOR][COLOR=green]" [/COLOR][COLOR=green]size[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"20"[/COLOR][COLOR=green]>[/COLOR][COLOR=green]&nbsp;&nbsp;&nbsp;&nbsp;[/COLOR][COLOR=green]<[/COLOR][COLOR=green]A [/COLOR][COLOR=green]HREF[/COLOR][COLOR=green]=[/COLOR][COLOR=green]Javascript:PopWindow([/COLOR][COLOR=green]"[/COLOR][COLOR=green][URL="http://127.0.0.1:8081/I_Campus/PopUp?EI=<%=EI%>&CC=<%=CC%>&GC=<%=GC%>&fname=Display"][COLOR=green]><[/COLOR][COLOR=green]img[/URL] [/COLOR][COLOR=green]src[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"images/search.gif" [/COLOR][COLOR=green]border[/COLOR][COLOR=green]=[/COLOR][COLOR=green]0[/COLOR][COLOR=green]></[/COLOR][COLOR=green]a[/COLOR][COLOR=green]>[/COLOR][COLOR=green]</[/COLOR][COLOR=green]td[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]tr[/COLOR][COLOR=green]>[/COLOR] …

Member Avatar for peter_budo
0
195
Member Avatar for sonawane.prakas

I have a table within that i update particular cell and want to store the update value into table after clicking save button My page is JSP page

Member Avatar for hidash_in
0
613
Member Avatar for kavisymphony

hi every body! i m doing my online project in jsp..i want to refer some other online exams..so i need source code for online exam application in jsp...any body is there for me to help?

Member Avatar for hidash_in
1
2K
Member Avatar for woopsor

I am new to JSP and am having trouble with an if statement. [code=jsp] <c:if test="#{authorizedProduct.product.product.orderMethod}=='H'"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/> </c:if> [/code] The order method does equal H because it will display that if I don't put in inside the if statement. Can someone help me with my if statement syntax …

Member Avatar for woopsor
0
67
Member Avatar for soda0091

I am trying to set up a java server page and mysql. I have installed jdk and all of the neccessary tools and drivers. I am using Tomcat for the servlet container. I have also set up an account with a password on mysql. I think that the only issue …

Member Avatar for masijade
0
557
Member Avatar for nikhita
Member Avatar for gaurav84

HI , I am using JSP + apache tomcat 5.5 . The database I am using is mysql. The database have tables , with rows 1.2 lacs and above . I have to run atleast , atleast 15+ sql query in one JSP page . while loading the page , …

0
68
Member Avatar for Pinky.Rozita

Hi all .. this jsp code when we use database access, to get the information by entering the price , my problem is that now iam using oracle as database and i dont know what are the changes that can be made here only ofcorse the path of database this …

Member Avatar for lookof2day
0
241
Member Avatar for kedarkhedkar

Hi, I am developing online examination in servlets/jsp. the problem with I stucked with is how to show user a timer. the jsp page which showing current question to user should show time remaining & that time should be continuously decreasing by 1 sec. One approch is to use applet …

Member Avatar for ~s.o.s~
0
142
Member Avatar for sathya_k_83

i am developing a project using jsp & servlet. i want create a xml from result set using document builder but when the servlet is executed it displays the Http Status 500 error tell me what to do . where to place that xml file is there other for writing …

Member Avatar for lookof2day
0
105
Member Avatar for vijiruba

Hi, I am trying to populate the JSP page content into Excel file. I am able to get this. But i have problem while trying to populate the string ("1/0") in Excel. This string is taken as date format in excel. But i want to display "1/0" as such. Any …

0
45
Member Avatar for apontutul

suppose there's a bean file (.java) consisting of SQL query, and a servlet (.java) used to show an image, and lastly a jsp page when clicked shows the image.............can you please explain how does this function,how the logic flows,what happens step by step.......... I really need to understand this, thankz.

Member Avatar for jwenting
0
88
Member Avatar for rohit saroha

Pls Tell Me Name Of A Reference Book On Jsp,which Contain All The Features.does It Available Online...

Member Avatar for jwenting
0
67
Member Avatar for bdichiara

I am new to JSP and struggling with this issue. I created a Hello World page and worked fine. After I made some changes, I uploaded the new version of my index file several times. I have even deleted my index.jsp file from the server, along with the WEB-INF and …

Member Avatar for ksaxena
0
115
Member Avatar for MonkeyGarage

Search.java: [code] package com.monkeygarage.carclubhub.clubinfo; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Logger; import com.monkeygarage.DBConnect; import java.util.logging.Level; import java.util.*; public class Search { private List<SearchResults> list = new ArrayList<SearchResults>(); DBConnect db = new DBConnect(); public Iterator getResult() { Result(); return list.iterator(); } private void Result() { try { ResultSet rs = db.getResult("SELECT club.clubId, …

Member Avatar for MonkeyGarage
0
154
Member Avatar for MonkeyGarage

Any idea? I get this error: org.apache.jasper.JasperException: An exception occurred processing JSP page /test2.jsp at line 7 4: <title>DB Test</title> 5: </head><body> 6: <% DBConnect d = new DBConnect(); 7: ResultSet rs = d.getResult("SELECT name FROM items"); 8: 9: while (rs.next()) { 10: String name = rs.getString("name"); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435) …

Member Avatar for MonkeyGarage
0
111
Member Avatar for mimsc

any suggestions...my "weatherState" value doesnt seem to be passing over: 1st jsp: [code]<% Vector theStates = WeatherDAO.getWeatherStates(); %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </script> <body> <TR bgColor="#ffffff"><TD COLSPAN="2"> <TABLE CELLPADDING="3" CELLSPACING="2"> <TR><TD> </FONT></CENTER><BR> <BR> <TABLE BORDER="0" CELLSPACING="5" CELLPADDING="5" WIDTH="100%"> <TR BGCOLOR="#C0C0C0" ><TD COLSPAN="2" ALIGN="CENTER"> <FONT SIZE=+3><B> …

Member Avatar for aniseed
0
145

The End.