4,248 Topics
![]() | |
i am making a chat server in jsp. i want to insert the message entered by a user in a table but i don't want to use any button to enter the message. can anyone suggest me a method to insert the message in the table when the user writes … | |
This is my jsp code for saving back the data to .properties file after editing. i used 2 Linked properties as one LinkedProperties pro is to get the data from the path and the other one to get attribute (eg: id, name, age, gender etc.) from default .properties file so … | |
How to create reports in core java like visual basic 6.0 report | |
Hi Folks, Hope your all well, Im Kind of new to JSP and so far I think I'm doing ok! However I'm using some of it for my dissertation which is creating an ITAM (IT Asset Management System). Im looking for some advice on drop down boxes and populating data, … | |
Anyone help me as soon as possible : Sir/Mam I want to pass more than 1 value through Query String I use the Code but it not working : [CODE] <tr> <td><a href="patmedrcd.jsp?id=<%=patid%> & q123=<%=qid%>"> View Patient's Medical Record</a></td> <td></td> </tr> [/CODE] and i get the value by this code … | |
For those of you unfamiliar with Google Documents, it is like Microsoft Word/Excel/etc. online. I would like to create a simple online document editing program where a logged-in users could edit and save a book or other text-based document. However I do not have a lot of Web Programming experience … | |
| |
How do I prevent the output of my JSP or Servlet pages from being cached by the browser? is there any way to disable? | |
I hope you guys can help me out... i have a little applet which caused me lot of problems. i'm new to java and i hardly managed to put all the code together, what does the script? here: users visit my website, and from their account they can upgrade a … | |
Hi, I am unable to unzip the attached files in this tutorial. I receive the cannot open file error indicating that the file is not a valid archive. I have tried to download te files many times. Is there anything I can do to get these files? I really need … | |
Hi All, I am trying to display the helpful message to the user when error occur. a) I have exception catching in Java as follow [CODE] AgencyDAO a = new AgencyDAO(); try { a.updateAgency(agencyId, newAgencyCode, newAgencyName); } catch (DAORuntimeException e) { String message = "My Custom message"; request.setAttribute("GROUPING_EXCEPTION", new Exception(message, … | |
1) how to export jsp output in word file :?: 2) how to set header and footer when export jsp output in pdf and word file :?: | |
Hi all I am having a jsp page where I have entered radion button value ,like this:-- <td><input type="radio" name="billType" value="1"/> <font color =blue> Brief Bill</font></td> <td><input type="radio" name="billType" value="2" /> <font color =blue>Detailed Bill</font></td> <td><input type="radio" name="billType" value="3" /> <font color =blue>Itemized bill</font></td></tr> Now I want to get this … | |
Hello All, Can anyone give a tip on reading .doc files to a JTextPane? How to get the characters right? Thanks! | |
I use two ResultSet , One in the another one. [CODE] try { con1 = DriverManager.getConnection ("jdbc:odbc:java"); smt1=con.createStatement(); if(sele.equals("ALL")) { rs=smt.executeQuery("select * from Stations where State='"+st+"'"); } else { rs=smt.executeQuery("select * from Stations where City='"+sele+"'"); } while(rs.next()) { stid=rs.getString(1); ofid=rs.getString(2); name=rs.getString(3); num=rs.getString(4); des=rs.getString(5); dis=rs.getString(6); %> <tr style="border: blue dotted thick"> … | |
Hi All! I'm doing a web application (jsp) where I have several texts displayed and highlights the text rolling mouse over it. I would like to pass an entire text as an applet parameter, so that the the text can be seen in a text pane/editor. At the moment I … | |
The following is my code for login function. I save the password as MD5 but inside the url after logged in it shows the full word instead of showing MD5. I'm still very new to Java EE and any help I can get will be very much appreciated. [CODE]<%@ page … | |
Hi all I have a interface built in jsp working fine in i.e6 but not visible in firefox and internet explorer 7. Ho to debug my jsp page .Please suggest | |
<%@ page import="java.sql.*" %> <!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"> <title>JSP Page</title> </head> <body> <% String ans=" "; if(request.getParameter("correctAns")!=null) { ans=request.getParameter("correctAns").toString(); } Connection con = null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = java.sql.DriverManager.getConnection("jdbc:odbc:sid"); Statement st = null; ResultSet qrst; ResultSet rs = null; String id=request.getParameter("id"); … | |
this is a page of code on a Apache Tomcat server the error i get is the following : Eror :licenta\upload\Tulips.jpg (The system cannot find the path specified) project path is : ROOT\licenta [CODE]<%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <%@ page import="java.sql.*" %> <%@ page import="java.util.*" %> <%@ … | |
I have got everything right and my project is compiling. But I am experiencing problem with servlets, when I right click on a servlet and click on run in netbeans then I get following two error: 1) Class "Servlet1" neither has a main method not it a servlet specified in … | |
hi Is this possible to send a request to servlet from socket client? I use request.getInputStream method to get client request. I got an error HTTP/1.1 400 Bad Request Server:Apache-Coyoyte/1.1 Transfer Encoding:chunked Date:Fri,04 Nov 2011 Connection:close How can I achieve my task?? | |
how to lookup datasource which is created in glassfish with some jndi/dbname name. I am trying to get datasource writing code in a servlet like this Datasource datasource = (Datasource)initialContext.lookup("jdbc/customer"); Connection con = datasource.getConnection(); but it is throwing NameNotFoudExcepion for this context . how can access datasource created outside of … | |
Hi i am new to tomcat can any one of you explain how to deploy application in tomcat using server.xml with description | |
Hello, I would like to use a button as a link and pass the session variable in a jsp! The below code should work. Any help is appreciated. Thanks. I use encodeURL if the user has cookies off. This works with links but not when using an input button with … | |
Hello everyone, I've made a client web project, which is working using Tomcat server that, in turn, connects to a server that wait socket connections in a port. If I start eclipse and tomcat and run the server side, I can access the application using any browser by internet. I've … | |
I'm new to web development. I'm using JSPs and need to access a stored procedure (SQL) in order to draw information from a database table, parse the data, and display the parsed information. How would I (conceptually) approach this? | |
As we know [LIST] [*]ServletContext [*]HttpSession [*]HttpServletRequest [/LIST] are interface in JSP SERVLET api of Java..! We repeatedly use it in our code for different purposes, but i am still confused where and in which class all abstract method for given interfaces are implemented ? Like setAttribute, getAttribute , removeAttribute … | |
[CODE]RequestDispature red = request.getRequestDispature("xyz"); red.forward(req,res);[/CODE] in this simple example RequestDispature is INTERFACE..! "red" is reference for that , but whose instance it actually holds ??? "forward" and "include" methods are of RequestDispature interface...but where they are implemented ??? in which class ?? which class implement this interface ??? Can anyone … | |
I'm currently working on a project where I need to Authenticate the Client using his/her certificate. I have created my own CA, Server and Client certificates and imported them into my browser. Then I wrote a JSP code just to read the certificate. That is the program returns the commonname, … | |
I am newbie in this forum & I have one issue as follow... I have created website in jsp & servlet. now when i click on button to save data in the database then it takes some time to save the data so in that time I want to show … | |
Hi All, I am relatively new to the world of webservers and java, so please pardon me for any mistakes i make in conveying my problem. THe problem is as following: we have a sunone webserver 1(abc.com), and there is a sun one webserver2(def.com) there is a jsp application in … | |
I have a project made with jsp on a apache tomcat server. I also have intalled wamp server package for the purpose of using a data base made with phpmyadmin. I was wondering if i could also use php pages im my project. I learned that a posible way would … | |
I am new to JSP and I am not very familiar with what its advantages and disadvantages are. We all know that Java is a big and complicated language, but it's not as web oriented as PHP. I have also heard that it's more expensive to find a server for … | |
Hi May i know about the latest technology of j2ee and the framework Thanks | |
Hi all , I am learing J2ee by doing some projects. Last time i did a basic application for calculate profit and loss account, In that i maintained daily income and expenses,the user can view monthly ,yearly expenses. for that report i just displayed the data using html tables and … | |
i have these two separate files: html form: [CODE]<form name="form" action="1.jsp" method="post"> <b>File Upload:</b> <input type=file name="seqFile"> <input type=submit name="submit" value="submit" > </form> [/CODE] and JSP file 1.jsp: [CODE]<%@ page language="java" import="java.io.*" errorPage="" %> <% if(request.getParameter("seqFile")!=null){ //"C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/ROOT/test/seq.txt" String file = request.getParameter("seqFile"); FileReader testRead; testRead = new … | |
good day could anyone solve this error ??? it occurs in the below code for (int i = supportedLocales.length-1; i >= 0; i--) { %> <a class ="langChangeOn" onclick="javascript:document.repost.locale.value='<%=supportedLocales.toString()%>';<%= session.setAttribute("userId",supportedLocales.toString())%> ; document.repost.submit();"> <%= supportedLocales.getDisplayLanguage(supportedLocales)%> </a> <% } } %> any support is highly appreciated | |
when i login the page then it navigate to the home page and when i logout then i came back to the login page, the problem is that when i click the back button in the browser then the page navigate to the home page without login it.. | |
I have created a home page with a division in which 2 other JSP pages are to load. The validations fire properly when I lauch those 2 pages seperately. The problem is, validations arent working when they load within the first page. How can I solve this? Should i write … | |
I have a web project I've been working on in my free time using mostly jsp. It's currently set up so that if a user clicks the login button it takes them to a check-login servlet which will return whether it's a valid login or not through a session.setAttribute("loginstatus","Valid"). Everytime … | |
[CODE]<% String Username = request.getParameter("USER_ID"); String Password = request.getParameter("USER_PASS"); String Mobile = request.getParameter("Mobile"); String Address = request.getParameter("Address"); String sql = ""; { int LoaiSubmit; String DriverName; String connectionURL; Connection con; Statement stmt; LoaiSubmit = 0; LoaiSubmit = Integer.parseInt(request.getParameter("LoaiSubmit")); DriverName = "oracle.jdbc.driver.OracleDriver"; connectionURL = "jdbc:oracle:thin:@"; con = null; stmt = null; … | |
sir -- i wrote in the jsp for remving junk character from the application [code]<% request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); %>[/code] but still some page show the junk character what should i doo... | |
I am currently at this URL localhost:8080/Test/students/Steve The page from that URL displays some info about Steve and a link that goes to teachers. [CODE]<a href="teachers/all">Click to view all teachers</a>[/CODE] When I click the link it goes to localhost:8080/Test/students/teachers/all I want localhost:8080/Test/teachers/all How can I do that? I managed to … | |
hi i want to do valiation of text area and database in one of my project the main thing i in database and that values i stored in arraylist and in jsp i used that list object in jsp after that i am not getting how to compare the values … | |
Hello Is it java(JSP, Javabean, Servlets), j2ee(EJB-3tier) & which best database is suited? If plan in advance than time is saved. Awaiting reply at the earliest. Thanking in advance. Regards Paresh | |
Hello there, Can any one please tell if it is possible to create user defined methods inside a servlet and call the appropriate one as in when required?? | |
Hi… I’m looking for any popup calendar like where I may select previous, present or future date like “datetimepick” to include in my jsf page. But I’m failure to do it. So here I’ve attached code of my project to show where I need to add to run calendar properly. … | |
Can anyone tell me how can we perform code analyze using PMD or Checkstyle during develop time.... I want to know it so as instead of checking at the last for bugs,i can correct them as soon as i find it. I searched in google and there i found a … | |
In the following code, there exist items="${message}". I know it is EL. But I cannot find out where "${message}" is came from . Please help. Thanks. [CODE]<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ taglib prefix="spring" uri="/spring" %> <%@ taglib prefix="z" uri="/WEB-INF/tag.tld" %> <%@ page language="java" contentType="text/html; … |
The End.