4,248 Topics

Member Avatar for
Member Avatar for eddy556

Please take a lot at this. Tomcat is reporting the variable editQuestion cannot be resolved. [code] <% String key = request.getParameter("edit"); ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE ID ="+ key +""); while(columns1.next()) { String editid = columns1.getString("ID"); String editQuestion = columns1.getString("Question"); String editAnswer = columns1.getString("Answer"); String editUpdated = …

Member Avatar for eddy556
0
77
Member Avatar for sree22_happy

hi friends, I want to create a chart (pie,linear) and bar diagrams for my project in struts.Anyone knows about this,please help me.Thanks in advance

Member Avatar for ~s.o.s~
0
74
Member Avatar for shrish_sontakke

Hi Friends, I want a dummy JSP/Servlet project for Study. Please help me out for this. Thanks and regards, Shrish

Member Avatar for peter_budo
0
59
Member Avatar for bbhmusic

For whatever reason my jsp won't open in excel, it just keeps rendering in the browser. have a look, seems straightforward enough, any thoughts would be appreciated. thx Mike [CODE]<%@ page language="java" import="java.util.*" %> <%@ page import="com.****.*****.bsc.bo.*"%> <%@ page contentType="application/vnd.ms-excel" %> <% response.setHeader("Content-Disposition", "attachment; filename=\"bsc.xls\""); %> <%ArrayList al = (ArrayList)request.getAttribute("METRICVALUES");%> …

0
42
Member Avatar for electron33

Hi. I have been trying to access Microsoft Outlook from Java. This be in case of jsp page or traditional Java. Is there anyone how knows how? In the same case i would also ask if someone have tried to use mail session in Apache Geronimo. There is a plugin …

Member Avatar for peter_budo
0
234
Member Avatar for Ankita B

hi, can u tel me where should i place the code for database connection?..is it placed in the same directory as other jsp and html files?....shall i put it in a java bean and then include it in all the other jsp files?..i

Member Avatar for Ankita B
0
127
Member Avatar for chitra1

Hi, I'm new to JSP. Can anyone suggest me any site where I can get good tutorial for beginners. Thanks.

Member Avatar for electron33
0
104
Member Avatar for Mohandsa

i have acode that upload file from client to web server but i need to insert the file name into DB (mysql) to get it in download list............HOW? this is jsp code <%@ page contentType="text/html;charset=windows-1252"%> <% response.setContentType("text/html"); response.setHeader("Cache-control","no-cache"); String err = ""; String lastFileName = ""; String contentType = request.getContentType(); …

Member Avatar for masijade
0
2K
Member Avatar for Ankita B

hi, can you please give a step by step procedure on how to connect oracle database with jsp. I am new to the language and cant quite figure a way out.My first page is a user login and therafter username is used.How do i use sessions for this? Thanks in …

Member Avatar for jwenting
0
88
Member Avatar for Ankita B

thx..my first page is a login.in that user name and password are to be accessed from oracle database and then matched on button click.if match occurs then user proceeds to next page. So please help me out.I m getting very confused as to where to put what code..ryt from db …

Member Avatar for jwenting
0
104
Member Avatar for mramrit

friends i got problem in connection between oracle and jsp as given in cracking codes in j2me in following codes <?xml version="1.0"?> <jsp:root xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd"> <main> <title>Branch Info</title> <%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <%java.sql.connection db=java.sql.DriverManager.getConnecton("jdbc:odbc:master","sa","amrit");%> <%java.sql.Statement st=db.createStatement();%> <%java.sql.ResultSet rs;%> <%rs=st.executeQuery("select item_code,quantity,unit_price form stock_mast;");%> <%while(rs.next(()){%> <%String name=rs.getString("item_code");%> <%int aId=rs.getInt("quantity");%> <%int uPrice=rs.getInt("unit_price");%> <item_code><%=name%><quantity><%=aId%></quantity><unit_price><%=uPrice%></unit_price></item_code> <%} %> <%rs.close();%> </main> …

Member Avatar for jwenting
0
113
Member Avatar for aksm

[code] hello! Can anyone plz tell me how 2 write z following php code into jsp..Thx in advance.. <?php $userid = $_POST["txt_login"]; $password = $_POST["txt_pwd"]; //Connecting to database include("db_connect.php"); if (($userid=='admin' OR $userid=='ADMIN') && ($password=='admin' OR $password=='ADMIN')) header( 'Location: http://localhost/MyWeb/admin.php?id='.$userid) ; else { $Rs = mysql_query("SELECT * FROM Users WHERE …

Member Avatar for peter_budo
0
345
Member Avatar for muthumari

Hi , How to write the database connection(insert,delete or select query) within javascript function.Is it possible.Anyone can you help me Thank you

Member Avatar for Zhoot
0
194
Member Avatar for pradeep.singh28

hi friends, I am pradeep , i have a PC having configuration as: P-3, 1.2 GHz,256 MB RAM . when i am installing tomcat 5 ,it is starting properly but when I run any JSP page from the browser the message comes as "Server not found" . I have set …

Member Avatar for majestic0110
0
180
Member Avatar for hanaas

helo zer,well am actually developing a course system where lecturers can upload all notes online and students need to download them.Can any1 help me with the codes to attach the files and insert them in MySQL database(for lecturers) and retrieve them from the database(for students) Thanks!

0
63
Member Avatar for jsp001

When submitting a page via the internet, I get a 500 error and the name of the file. Are you able to help?? Basically I have an expense system implemented with JSP in JBuilder 4 using Oracle 9i and SQL Plus. When submitting any pages in the system, I get …

Member Avatar for peter_budo
0
125
Member Avatar for jptech

Hello, I need to send the displayed jsp page in an email. My jsp has rows in a table and other good stuff like text, values, icons etc., Any ideas, how I can do that. I am familiar with the java mail, I am not looking for how I do …

Member Avatar for masijade
0
56
Member Avatar for daintydamsel

hii ... i am trying to learn jsp technology . i tried a couple of ways to run the jsp pages but none was successful . can anyone temme the exact way to install a server and run a jsp page .

Member Avatar for ~s.o.s~
0
36
Member Avatar for Xessa

Hi people. I am new to this forum. In fact the reason why i registered here is my problems about making a JSP page work. I am using Apache-Tomcat I just wanted to test an html file. It was form.html.When i start tomcat and type ht*tp://localhost:8080/ everything works fine. But …

Member Avatar for ~s.o.s~
0
224
Member Avatar for michellet35

I am using JAVA studio creator and I am having a hard time understanding how to add a page hit counter that uses the ApplicationBean. I am just trying to create a simple JSP that shows how many times the page has been visited. ANY help on where to get …

Member Avatar for peter_budo
0
116
Member Avatar for vincenzom86

Hi all this is my problem: description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in JSP: /DAO.jsp:16 13: 14: Class.forName("oracle.jdbc.driver.OracleDriver"); 15: 16: conn = DriverManager.getConnection("jdbc:oracle:thin:vincenzom86@localhost:1521:XE","xxx","xxx"); 17: 18: Statement st = conn.createStatement(); 19: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause …

Member Avatar for masijade
0
364
Member Avatar for dogma

I'm getting a problem with a database resource in Tomcat 5.5.25 The error (from the log) is: [code] Cannot create JDBC driver of class '' for connect URL 'null' java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507) at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476) at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307) at java.sql.DriverManager.getDriver(DriverManager.java:253) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:274) at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159) at org.apache.jsp.test_002ddb_jsp._jspx_meth_sql_005fquery_005f7(test_002ddb_jsp.java:9766) at org.apache.jsp.test_002ddb_jsp._jspx_meth_c_005fcatch_005f7(test_002ddb_jsp.java:9732) …

Member Avatar for dogma
0
221
Member Avatar for adil7

Hi, In this , i dont know how to do nested colums. <display:table name="${form.results}" id="row" cellpadding="true"> <display:column property="firstName" value="${row.firstName}"/> <display:column property="lastName" value="${row.lastName}"/> | | |// list of columns | | <display:column> <display:table name="${row.cdList}" id="row" > <display:column> <display:table name="${row.CDSummary}" id="row" > <display:column property="cdAccountType" value="${row.cdAccountType}"/> <display:column property="cdType" value="${row.cdType}"/> </display:table> </display:column> </display:table> </display:column> …

0
67
Member Avatar for soulchris

hi can I insert a xslt in a page jsp??? do you have some examples???? thanks

Member Avatar for peter_budo
0
43
Member Avatar for shweta797

Dear sir In my project i have to pass variables when a user click on the link i.e there is full address of a client which is getting from a table,when user click on this link all information is displayed,but the problem is if there is a space in the …

Member Avatar for ~s.o.s~
0
98
Member Avatar for danik

How do you display a drop down box with a resultset in a loop? I just get a sql exception with my current servlet code. any help appreciated Thanks [CODE] out.println("Select Reading List"); out.println("<select name=" + rs1.getString("degree")+ ">"); while(rs1.next()){ out.println("<option value=" + rs1.getString("idcol") + ">" + rs1.getString("degree") + "</option>"); } …

Member Avatar for ~s.o.s~
0
80
Member Avatar for tayana

Hi I'm trying to create more attractive UI in JSP. I want a mouse over hyperlink popup menu for my page navigations. If there is anyone who knows how it's done please help me out.

Member Avatar for Sulley's Boo
0
58
Member Avatar for kaushik259106

Is it possible to get the key value of any property file through JSP.. Let me explain.. I have following keys in my application.properties file. it has my.a=http://apple.com my.b=http://ball.com my.c=http://cat.com Now i want to access this from my jsp.. i tried to access like this.. <fmt:message id="alphabets" key="my.a" /> I …

Member Avatar for lovely12
0
84
Member Avatar for stoncoder

how to code a function to send an email to a predetermine email address. I developt a sample but i got som error message due to mailhost . the error is showen in attached file. can anyone say me how to solve this problem. i tried several mailhost, but it …

Member Avatar for mellamokb
0
102
Member Avatar for gauravmishra
Member Avatar for mellamokb
0
66
Member Avatar for sunflower_rahul

Hi to All , I am getting this type of error while running the Sql through JDBC. java.sql.SQLException: Invalid column index java.sql.SQLException: Invalid column index at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208) at oracle.jdbc.driver.OraclePreparedStatement.setIntInternal(OraclePreparedStatement.java:4635) at oracle.jdbc.driver.OraclePreparedStatement.setInt(OraclePreparedStatement.java:4627) at weblogic.jdbc.wrapper.PreparedStatement.setInt(PreparedStatement.java:536) I am implementating the Paging in jsp. I m using The TYPES. parameterList.add( …

0
86
Member Avatar for stoncoder

hei all im a new web developer and wnt to use some jsp code in my website. I tried to open som file from tomcat Root folder from a browswer. but it dose not open. What's problem. the relative address is [url]http://localhost:8080/index.html[/url] where in apacha can I find the port …

Member Avatar for peter_budo
0
90
Member Avatar for caldercay

First, the sample code: <%-- ================ some.jsp =============== --%> <%-- bunch of code [...] --%> <tr> <td><bean:message key="prompt.desc" /></td> <td><html:textarea property="desc" /></td> </tr> <tr> <td> <bean:message key="prompt.notes" /> <tiles:insert page="checkSpellTile.jsp" flush="false"></tiles:insert> </td> </tr> <tr> <td><html:textarea property="notes" /></td> </tr> <%-- ================ end some.jsp =============== --%> <%-- ================ checkSpellTile.jsp =============== --%> <%-- …

Member Avatar for caldercay
0
131
Member Avatar for smruti_patra

Hi, I want to create the Json(Java Script Notation Language) String in the struts2 action class and pass in to my jsp page. I am new to Json and struts2. Please guide me if any body has any idea on same. Thanks In advance.

0
46
Member Avatar for biocyberman

[B] I am totally new to jsp application administration, recently I got a task to transfer a website from a windows 2000 server which is running Tomcat 4.0.6, java 1.4, MySQL to our new Ubuntu 7.10, 64 bit server which is running tomcat 6, java 1.6, MySQL. Things did not …

0
51
Member Avatar for sweetheartjava

javax.servlet.ServletException: Servlet execution threw an exception i am getting this error root cause [ java.lang.NoSuchMethodError: javax.servlet.http.HttpSessionBindingEvent.<init>(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/Object;)V org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1306) org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:176) masterservlet.CheckLogin.doPost(CheckLogin.java:87) javax.servlet.http.HttpServlet.service(HttpServlet.java:760) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) note The full stack trace of the root cause is available in the Tomcat logs. =================== my CheckLogin code is: ================ [code=java] package masterservlet; import java.io.IOException; import java.io.PrintWriter; import …

Member Avatar for ksaxena
0
151
Member Avatar for sensitive girl

hi to all I am trying to make a simple java servlet(like jsp) program which allow user to update his profile but I have a problem when user click on update's button [CODE]String un = req.getParameter("username"); String Fn = req.getParameter("Fname"); String Ln = req.getParameter("Lname"); String pw = req.getParameter("passwors"); String updateString …

Member Avatar for sensitive girl
0
111
Member Avatar for mayanka

Hi, I am trying to develop a JSP page so that if a user enter his password (wrong)more than 3 times then he will be redirected to an unauthorized page. I have a login page which contains the HTML login form and the login.jsp to check the userid and password, …

Member Avatar for masijade
0
35
Member Avatar for Subha_1984

[B]i want the project source code of online examination system in jsp.[/B]

Member Avatar for peter_budo
0
105
Member Avatar for anastacia

hi to all well i know html, css javascrpit php apache and mysql. but now i am learning jsp and I DONT HAVE ANY JAVA PROGRAMMING EXPERIENCE!!!:sad: uptill now i just cant figure out whats java and jsp all about well i know its a serverside scripting for web development …

Member Avatar for raja baba
0
255
Member Avatar for patmagpantay

We currently have a working JSP script that can add and average integers, now our professor wants us to make the same script but using a different language, she wants us to program it using "java servlet". Our script is currently posted at [url]http://www.patrickmagpantay.com/wishlist.html[/url] . Please help us :(

Member Avatar for peter_budo
0
180
Member Avatar for gauravmishra

hi i created a html form in which i took a date as input now how can i determine the day(sunday or monday etc) on that particular date .

Member Avatar for masijade
0
72
Member Avatar for gauravmishra
Member Avatar for peter_budo
0
69
Member Avatar for pizzazzman2000

hi.............. I'm very new to java, viz. servlets,jsp,jdbc, etc My trainer has assigned me a project: Online Recruitment System My trainer is putting us under tremendous pressure to complete the project in a very short span of time ( 4 days, to be precise) Is there anyone who has done …

Member Avatar for jwenting
0
141
Member Avatar for renars1985

Hi, I created JAVA prorgamm. It works like this: I can enter some book parameters (author, name, year) and programm will write data in file and also will display data in console. Code is below in bold. Compile code below and you will understand how programm works. However I have …

0
61
Member Avatar for dakkar

Hi, I've an HTML form (I generated it from a XML schema .xsd file) I'd like to know a good way to save the form input data (POST/GET don't matter) to an XML file (or fragment) that can be validated with the XML schema that I used to generate the …

Member Avatar for mavines
0
117
Member Avatar for kobi

How can I load an xml file and show it as a treeview control in my HTML page

Member Avatar for mavines
0
109
Member Avatar for muthumari

Hi, Tillnow am using notepad.I want to use Jcreator editor.I haven't any idea about how to use jsp in Jcreator.Now Am using ApacheTmacat4.0 is my Webserver. Anyone help me to this Query. Thanx in advance

Member Avatar for peter_budo
0
466
Member Avatar for push
Member Avatar for peter_budo
0
63
Member Avatar for virividivici

Hello everyone, I need to change the value of a jsp variable in javascript. I have got this code in my .jsp page: <c:set var="searchType" value="jobsearch" /> the value of the "searchType" should change depending on which link the user click on. I though if I put this variable in …

Member Avatar for masijade
0
69

The End.