3,760 Topics

Member Avatar for
Member Avatar for WolfShield

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 …

0
75
Member Avatar for tqmd1
Member Avatar for javaAddict
0
83
Member Avatar for simplyhuman

How do I prevent the output of my JSP or Servlet pages from being cached by the browser? is there any way to disable?

Member Avatar for masijade
0
92
Member Avatar for Clzeigler

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 …

Member Avatar for anand01
0
107
Member Avatar for srikandi

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 :?:

Member Avatar for brynFlew
0
91
Member Avatar for vikasgarg

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 …

Member Avatar for brynFlew
0
1K
Member Avatar for softDeveloper

Hello All, Can anyone give a tip on reading .doc files to a JTextPane? How to get the characters right? Thanks!

0
43
Member Avatar for pawan768

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"> …

Member Avatar for pawan768
0
436
Member Avatar for softDeveloper

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 …

Member Avatar for softDeveloper
0
149
Member Avatar for pote86

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 …

Member Avatar for pote86
0
2K
Member Avatar for manish250

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

Member Avatar for manish250
0
459
Member Avatar for biplob29

<%@ 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"); …

Member Avatar for masijade
0
126
Member Avatar for bowmaster

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.*" %> <%@ …

Member Avatar for bowmaster
0
313
Member Avatar for warlord902

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 …

Member Avatar for warlord902
0
3K
Member Avatar for syeda amna

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??

Member Avatar for syeda amna
0
188
Member Avatar for madhub2v

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 …

0
118
Member Avatar for raviaaaa

Hi i am new to tomcat can any one of you explain how to deploy application in tomcat using server.xml with description

0
68
Member Avatar for MrJody

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 …

Member Avatar for sarathpetec
0
1K
Member Avatar for softDeveloper

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 …

Member Avatar for peter_budo
0
115
Member Avatar for kahaj

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?

Member Avatar for peter_budo
0
56
Member Avatar for rushi3311

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 …

Member Avatar for JamesCherrill
0
163
Member Avatar for rushi3311

[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 …

Member Avatar for JamesCherrill
0
218
Member Avatar for 650U

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, …

0
92
Member Avatar for ManojGahlot

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 …

0
42
Member Avatar for somannitin

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 …

0
97
Member Avatar for bowmaster

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 …

Member Avatar for bowmaster
0
251
Member Avatar for thorin

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 …

Member Avatar for peter_budo
0
154
Member Avatar for vijaykavin10
Member Avatar for vijaykavin10
-2
93
Member Avatar for anand01

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 …

Member Avatar for peter_budo
0
70
Member Avatar for gingerfish

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 …

0
74

The End.