4,248 Topics
![]() | |
Hi, I have write the code to upload a file to database. I checked it by uploading a text document which is in my desktop and it is working and successfully uploaded to database. [CODE]File tomcat.txt has been uploaded and inserted into Database.[/CODE] But when I tried to upload an … | |
Hi, I'm a beginner in the J2EE field. I've already learnt the basics of Java programming and now I'm moving on to web development. What I want to know is if I could skip learning JSP/JSF, servlets, EJB, JPA etc if I learn Wicket, Spring and Hibernate. I'm still not … | |
I am trying to process data by servlet sended by jsp form using AJAX..... with 'GET' method its working okey ... but using 'POST' method to do this creating problem that [CODE]onreadystatechage[/CODE] condition not exectue at [CODE](xmlhttp.readyState==4 && xmlhttp.status==200)[/CODE]. [CODE]xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 || xmlhttp.status==200) { alert("state=4 OR 200"); //for … | |
Hello. This is what i'm trying to do: [code=java] public class ComputeSearch extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter exit=response.getWriter(); exit.println("<%@ include file=\"GetByPath.jsp?path=1/2/5/\" %>"); } } [/code] The problem is that the server does not compile … | |
Hi, can anyone help me to split the servlet(week02_4) so that only control code remains.I need to forward/redirect request/responses to two other servlets(VowelFrequencyServlet and WordCountServlet).I am not sure where to place the RequestDispatcher. Week02_04 servlet: [CODE=java]package servlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Week02_04 extends HttpServlet { protected … | |
Would be possible to create "generic" sub-forum in Databases where we can place any db related stuff which doesn't fit into any of our present options?(MySQL, MS SQL, Oracle, MS Access and FileMaker Pro, Database Desing) Having something similar to Software Development sub-forum Legacy and Other Languages. Reason: Often there … | |
Can somebody pls explain me this error that I am getting when I try to run my web application on Tomcat. java.lang.NullPointerException business.Cart.addItem(Cart.java:27) cart.CartServlet.doGet(CartServlet.java:49) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) The code for the Cart.java is [CODE]package business; import java.io.Serializable; import java.util.ArrayList; public class Cart implements Serializable { private ArrayList<LineItem> items; public Cart() { … | |
Hi! I am newbie in java program. All I want is to have a method that check the filename of the file that I want to upload, if it is correct given filename convention. | |
Hello everyone, I'm working on a project where I wish to find out who the instructor for a particular course is. The user is has to input the course name and course id for that course id then the script will search for the instructor. If the value returned is … | |
Hi I have created a simple search form to search a movies database on my page using jsp and mysql, how can I make a download link after results have been extracted in a result page. Thanks for your nice reply. | |
Hi All, I am creating an application in which I want to keep refreshing a jsp file and in that jsp file i need to keep calling another url of type [url]www.daniweb.com/receive.jsp?a=xxx&b=xxx[/url] and save this url in database. Here the url keeps changing in every second ie. values of a … | |
Hi All, I am creating an application in which I want to keep refreshing a jsp file and in that jsp file i need to keep calling another url of type [url]www.daniweb.com/receive.jsp?a=xxx&b=xxx[/url] and save this url in database. Here the url keeps changing in every second ie. values of a … | |
Hi all i am creating an application in which i m using jsp,servlet and javascript. on jsp page there are text boxes named ID and Passwprd and a submit button. When we submit jsp page first javascript will be executed if we left any of the text boxes blank, that … | |
I am using Apache Tomcat 5.5 + JSP in the web server, and MS SQL Server 2000 in another database server. There is no problem before I resinstall the web server due to hardware failure. I am not sure if I miss some configuration that all the Chinese character stored … | |
How we change values of one combo box with respect to second combo box in same page using ajax in jsp?Plz help me its uergent. | |
How do [B][URL="http://www.improsys.com/importer.htm"]IMPROSYS[/URL][/B] use Contact Importer JAVA in a JSP page? <%@ page language="java" contentType="text/html" %> <% String user = request.getParameter("user"); %> <% String password = request.getParameter("password"); %> <% String parser = request.getParameter("parser"); %> <% String userId = "";%> <% if(user == null) user = ""; if(password == null) password … | |
Hey GUys, im trying to include a file inside my template. My code: [CODE=jsp]String get_act = null; get_act = request.getParameter("act"); boolean loggedin = (session.getAttribute("logginname") != null) ? true : false; if( loggedin == false && get_act != "login"){ out.write("Redirecting<br>"); response.sendRedirect("?act=login"); }else{ String include_page = null; include_page = get_act +".jsp"; %> … | |
Please bear with me, I'm quite new at this Java stuff. I'm quite confused as to what Java technology does what and which is a better choice. I've done quite a lot of research and found Wicket, Seam, Spring, JSF, Struts and Hibernate to be especially popular. But I'm very … | |
hi am a new joinee, how to get values of selected checkboxes in a table? please help me, selected Lc code from UI, that LC code value should get into the table plz help me out this is my action class, [code]package webapp.control.nri; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import … | |
when we call servlet from a JSP page .. explorer/program moves to servlet page .... Such in my scenareo i have JSP form that on submiting call servlet to retrieve data from XML .. But problem is that . i like that on submitin form servlet runs in background without … | |
Hey guys.. I've done one project on Online Shopping Cart. It is some 98% completed. I've made it using Netbeans IDE and Tomcat, MYSQL database.. I usually run it using Netbeans only. But I really want to run it in Tomcat's webapps folder. I tried it but I'm getting Can … | |
Hi, my front end is jsp and my backend is mysql iam design online cinema ticket reservation . It contains no of seats. if i choose 3 or 4 seats in checkbox,it stored in my database. After i refreshing the page that checkbox seats should be bolocked.. im saving film … | |
hi, im doing it in jsp and my backend is my sql ... im inserting the checkbox values and some details in table but for checkbox values i have given the executequery statement(where we write query) as integer so all other string details are not inserted in table it show … | |
hi, I have three jsp files. main.jsp grizzly-link-application.jsp grizzly-link-menu.jsp In the mail.jsp I am including the other two. [CODE]<%@ include file="/WEB-INF/jsp/grizzly-link-application.jsp" %> <%@ include file="/WEB-INF/jsp/grizzly-link-menu.jsp" %>[/CODE] my grizzly-link-application.jsp and grizzly-link-menu.jsp files are actually pointing to the different css files. Content of grizzly-link-application.jsp is: [CODE]<link id="grizzlystyleid" title="grizzlystyletitle" href="style/application/grizzlystyle.css" rel="stylesheet" type="text/css"/>[/CODE] Content … | |
hi i am jakir , i want to do web application in java so plz suggets some project topic topic must be different bye. | |
I have a JSP page 1 to addusers to the account.On submission of the form another JSP 2gets called and manipulates the parameters.If values are null i am returning an error message to the user.If values are not null i need to call a servlet which will run a backend … | |
Please help me to design currerency converter using JSP for all countries with daily internet updates | |
[CODE]<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="Player1" width="200" height="100"> <param name="URL" value="<s:property value="adFilePath"/>"> <param name="http://path_to_the_video"> <param name="AutoStart" value="0"> <param name="ShowControls" value="1"> <param name="ShowStatusBar" value="1"> <param name="ShowDisplay" value="1"> <param name="stretchToFit" value="1"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="200" height="100" src="<s:property value="adFilePath"/>" filename="<s:property value="adFilePath"/>" autostart="0" showcontrols="1" showstatusbar="1" showdisplay="0"> </embed> </object>[/CODE] Above code in the place file name i am … | |
my colleague give me his system that he did in jsp when he was in college which is simple online help desk but he didn't send me the database tables he didn't backup it said it was lost so he asked me to simply create my own db(i have no … | |
I am writing a tiny program to learn Spring framework. My application will just print a message which is binded with the view in the server side. My jsp is as follows : [CODE] <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <body> <p>This is my message : ${message}</p> </body> </html> [/CODE] … | |
[code]<%@ page import="java.sql.*"%> <html> <body bgcolor="pink"> <% String user=request.getParameter("us"); String pass=request.getParameter("pa"); String a=request.getParameter("na"); String a1=request.getParameter("no"); String a2=request.getParameter("el"); Connection con=null; Statement stmt=null; ResultSet rs=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("Jdbc:Odbc:Data405"); stmt=con.createStatement( ); stmt.executeUpdate("Insert Into stud(username,password,nam,nos,elg) Values('"+user+"','"+pass+"','"+a+"','"+a1+"','"+a2+"')"); out.println("File inserted"); } catch(Exception e) { out.println("error"); } con.close(); %> <a href="http://localhost:8080/maya/login1.jsp">go back</a> </body> </html>[/code] I can … | |
hello, iam trying to host jsp/servlet on IIS 7.0 web server and getting HTTP error 404.3: not found for more details open [url]www.scrapmania.co.in[/url] i have no experience in hosting, on googling i get a result to select jsp in scripting supports of parallels helm v4 control panel. but i get … | |
Hi All, For my FYP I am investigating web-based IDEs. As part of the feasibility study, and primary research, I would like to get your views on what you think about programming online, and if you have ever used it, what was your experience. Here is the link to the … | |
Dear Freinds, I want to develop a newspaper website independently.Please Suggest me what can be a right strategy to develop it in J2EE.If we talk in terms of performance and scalability would it be possible to make my project with the help of Servlets and JSPs without using any particular … | |
hi ! I am working on a project Online Bus Ticket Booking System. I want to add online payment module. Have no Experience . Anyone can tell me the basic steps .... thanks in advance! | |
environment variable1: %JAVA_HOME%\bin;%JC_HOME%\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar; environment variable2: C:\j2sdk1.4.1_07 hav 2 submit few progrms at college using servlets...n getting the errors mentioned abov...plzzzzzz hellllllppppppppp.... | |
HI All, I need to submit my feedback form contents to an e-mail id as soon as the user clicks the submit button. How will I implement this in java. I googled and found out that FormToEmail which is a php script does this. But since i Am using netbeans, … | |
Hi, here is the question: I have 2 textfields in my JSP: [CODE] <s:textfield name=" ...." /> <s:textfield name=" ...." /> [/CODE] Now I went to browser and did: View Source Code, and noticed that around the above tags, there were auto-generated tags that put the above fields into 2 … | |
Ahh, long time since I was on pposting end :D Ok here it goes. The code bellow show mobile application that takes string from user and past it on to servlet. Servlet read it add extra data on front of message and send it back to mobile device that display … | |
[COLOR="Green"]hello every one hi i am new to daniweb i think i will find a solution in daniweb. hi i wanted to change my php melody1.6.4 url structure my url structure is like this [url]http://example.com/frozen/frozen-2010-movie-video_1c4063b5a.html[/url] i wanted to change it to like this [url]http://example.com/frozen/frozen2010movie/1c4063b5a[/url] i have spent my valuable time … | |
Im developing one application here i need to pass the data from servlet to JSP .How can i pass it ? i tried by request.setAttribute() but it printing as null in JSP page . how can i solve this problem? | |
Hi everyone... im new to this forum and also in web application using jsp-jstl. im having problem passing data from a multilple check box lists. here's my code: [CODE]<form method="post"><sql:query var="charge" dataSource="${datasource}"> SELECT chargeID, commodity FROM other_charges where charges_typeID = 1 </sql:query> <span class="cell_content">Toiletries:</span><br /> <c:forEach var="row" items="${charge.rows}"> <input type="checkbox" … | |
Hi All, When I am fetching a photo from the database, it is getting save into my tomcat server root directory. Now to use this photo i have to give path as C:\Program Files ...... I dont want to hard code this path in any of my web page. Is … | |
got this simple web jsp system which was developed using netbeans IDE when i run this system its run able and successfully open the browser with the home page of the system..acording to the user manual of it says i must install oracle10g as database so how can i get … | |
Hi folks, This is my first thread in Spring Framework and I am new to it . While creating a web app in Spring framework I cannot deploy it as it contains few errors. I couldnot resolve. So i seek help from you . . Bean creation exception is the … | |
hi buddies, I am much impressed by jQuery. I have enjoyed using it with javascript. But my doubt is whether we can integrate jQuery with java web applications? If so can anyone provide some examples? Thank You. :) | |
Sir, I have developed a few simple projects using Netbeans IDE.They contain JSPs,Servlets,Java Classes and i use Mysql as database.Please guide me how to place them on internet.how will the databse work.I have created (exported) a[B] .sql[/B] (dump file) of my databse. I Understand that i will have to register … | |
I'm creating a website as my college project which consists of HTML pages and JSP. I've started writing JSP code, but don't know how to run it. Can you tell me how to proceed after creating JSP file. (i've created Login.jsp and login.html file. Gave <form method=post action="Login.jsp"> in login.html … | |
in my application i have JSP and a Java class(not servlet) ,if user clicks on the JSP it has to pass the value to the Java class , how to get the values from JSP ? | |
hai all i recently install tomcat addon in my xampp and it installed rightly bt by putting [url]http://localhost:8080/index.html[/url] this i m getting nothing. this index.html is file come with tomcat to show that everything is working and it is in ROOT folder. i work in php with xampp so i … |
The End.