3,760 Topics
| |
Hello, Can anyone please tell me how to get the arraylist in servlet? Using dao layer, I have connected to database and got the arraylist values. Now I need to pass it to Servlet through service layer. How to use that request.setAttribute in Servlet and how to redirect that arraylist … | |
Hi friends, What is the main benifit of using GWT in web applications? Is there any popular sites which has been developed by using GWT? Which is the best website to learn about GWT with easy examples? Thanks in advance ! | |
i came to know tomcat is primarily used as JSP/SERVLET container where u can run java codes on that web server .. my doubt is why cant apache http server itself serve as JSP/servlet container with some modules attached ??? and one more thing --> can apache http server used … | |
I am outputting the contents of a product from a product object(containing catalog no, product name, vendor, price, quantity(a textbox) and a checkbox(to select the product)) as a tabular display. When a user checks a checkbox(indicating the product checked), I get the values into a servlet. However, when I have … | |
Hi, I am now stuck on problem is that in our application used thread and that start in jsp page. so here problem is once thread started and after completion of run method it goes to dead. we can not restart dead thread. so whenever goes that jsp page trying … | |
Hi guys, any1 here know about servlet mapping? I m having problem at here...it keeps saying error 404 not found... [CODE] <servlet-name>myProject</servlet-name> <servlet-class>myProject.MyProjectServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>myProject</servlet-name> <url-pattern>/myProject</url-pattern> </servlet-mapping>[/CODE] | |
Hi all , pls suggest me some good tutorials to learn complete j2ee .. Thanks in advance | |
Hi all. my code is below: [code] <script type="text/javascript"> function gu_gid() { var ggid = document.getElementById("gid"); if(ggid.value != "" && ggid.value != "select") { $().ready(function() { $("#autocomplete").autocomplete("test.jsp?gid=" + ggid.value, { max: 50, width: 300, matchContains: true, selectFirst: false }); }); } } </script> . . . <form action="#" autocomplete="on"> <div> … | |
Hey, I've just started with JSP! Was trying my hand at this Shopping cart app.here's the code..[CODE]<%@page import ="java.sql.*"%> <%! Connection con = null; String query = null; PreparedStatement stmt = null; ResultSet rs = null; %> <HTML> <BODY BGCOLOR='ORANGE'> <CENTER> <H2>YOUR CART CONTAINS</H2> <% try{ Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/shopping_mart?"+"user=root&password=root"); … | |
i am currently working with jsp for building a travel based website and have to deal with GIS maps. now i am working with netbeans ide because it has glassfish server deployed with it so it is easy to work and configure what you need. but when it comes to … | |
Hello Everyone! I am developing a library system and want to ask how i can display a record in jsp from my DAO.java file and how cn i be able to use next and previous button. Please Help as i need to submit the system urgently | |
Hi I'm trying to connect using oracle10g with eclipse but its not able to locate the driver at all . [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import="java.sql.*" %> <% String uname="system"; String pwd="*****"; String url = "jdbc:oracle:thin:@localhost:1521:XE"; Connection con = null; Statement stmt = null; ResultSet rst = null; … | |
Hello. I'm trying to add a single test record (a comment item) to my MySQL database. So here are my sources of JSF2 project. - main xhtml page: [code]<h:body> <h:panelGroup id="mainBlock" layout="block"> <h:panelGroup id="header" layout="block"> <h:graphicImage value="resources/logo.jpg" style=""/> </h:panelGroup><br/> <h:panelGroup id="menu" layout="block"> <h:panelGrid columns="1" style=""> <h:outputLabel value="MENU" style=""/> <br/> <h:form> … | |
Hi I am begginer to jsp I have downloaded apache-tomcat-7.0.19-windows-x86,unzipped it, Added an environmental variable JRE_HOME and it's value is C:\Program Files\Java\jre1.5.0_22 I have started tomcat from startup batch file , a console window appeared for a while then disappeared . when open my browser internet explorer and write address … | |
[code]<% String UN=request.getParameter("un"); String pw=request.getParameter("pw"); String FN=request.getParameter("FN"); String LN=request.getParameter("LN"); String L1=request.getParameter("L1"); String L2=request.getParameter("L2"); String L3=request.getParameter("L3"); String ccn=request.getParameter("ccn"); Class.forName("com.mysql.jdbc.Driver").newInstance(); java.sql.Connection myConn; myConn = DriverManager.getConnection ("jdbc:mysql://localhost:3306/train_resev","root", "3866" ); PreparedStatement ps=myConn.prepareStatement("insert into user values('" + un + "','" + pw + "','" + FN + "','" + LN + "','" + L1 + … | |
i have this code, when i run this script no error shows up, but at the same time no result shows up too :( i dont understand where the problem is... :( [CODE] String result2=""; String data2; URL u2; URLConnection uc2; u2 = new URL("http://genome.ucsc.edu/cgi-bin/hgc?o=32385948&g=htcUserAli&i=../trash/hgSs/hgSs_genome_44ba_e972d0.pslx+..%2Ftrash%2FhgSs%2FhgSs_genome_44ba_e972d0.fa+YourSeq&c=chr1&l=32385948&r=32386166&db=hg19&hgsid=204152805282 "); uc2 = u2.openConnection(); InputStream … | |
is there any way to access some hyperlink on another webpage? the problem is that link always changes. thanks :) | |
I am working on a project on online e-commerce website.My requirement is that when a user clicks on "Add to cart" option some queries will be sent to the database and no redirection will take place.how to do this using jsp.(I don't know javascript). | |
[B]How to write a JSP program accepting a single parameter?[/B] If the parameter passed is “A”, it will generate an HTML of calculator A. If the parameter passed is “B”, it will generate an HTML of calculator B. I know how to write a calculator program in HTML format but … | |
Can You Please help me where I am getting error.. :( I am using NetBeans and MicroSoft SQL Server 2005. [B]HTML CODE[/B] [CODE]<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form action="movie.jsp" method="POST"> <p><strong> List Of Movies:-</strong>s</p> <select name="moviename"> <option>powe</option> <option>ghi</option> <option>xyz</option> <option>Troy</option> <option>poer</option> <option>abc</option> <option>pqr</option> <option>qwe</option> <option>ghj</option> <option>RA … | |
Hi. I am new in using Eclipse IDE, Tomcat 6... I can't run even the simplest project (Hello World) because of the error about ports. I've already browse the internet and do the configurations but still my problem is there. I have no one to ask about eclipse other than … | |
Hi, I am stuck with few problems related to JSP - Java applet file write and database connectivity issues. 1) Calling the applet class from JSP works in the web browser. But the file write code written in applet does not work when called from JSP ( It works if … | |
please can any one suggest me the code for how to upload and retrieve the image(blob) into oracle database using jsp plzzz plzzzz | |
Hy all Currently i have one JSP which useful to execute the select query.... when i use this jsp for execute the select query in another computer's database if table having less record [less than 200 raw] it will give me result.... but if table having more than record [rows>200] … | |
Hi, In my project I am developing pagination concept. but here problem is data is too large so it takes too much time for fetching data. so anybody can give me solution like fetching data in some part so reduces data fetching time. Thanks in advance | |
Hi All, I am using Tomcat 6.0 Application server and Apache HTTP webserver 2.2 and Eclipse Galileo as my IDE. I developed an web application which is some site where users can login and browse around it. My problem is Only one user can access the application. That is when … | |
Hi all I need to to read parameter value from web.xml I tried following way but it displays only null value .. [code=xml]<init-parm> <parm-name>email</parm-name> <parm-value>syz@gmail.com</parm-value> </init-parm>[/code] [code=Java]//servlet code pw.println(getServletConfig().getInitParameter("email"));[/code] | |
hi :) i'm just wondering if there is any way to access to another website using my own? like: i have some input data and when i put it into the form of my website, it will search it in the another website's database and show me the result. i … | |
hi i am in great trouble. problem is i create a Servlet and code is HttpSession session = request.getSession(); session.setAttribute("employee", employee); "employee" is bean and now i am access that in jsp page like this: <LI><B>First Name:</B> ${employee.name.firstName} it work fine but if i use this bean in java code, … |
The End.