3,760 Topics

Member Avatar for
Member Avatar for legendaddybok

<%@ page import = "java.util.*"%> <%@ page import = "java.lang.*"%> <%@ page import="java.sql.*" %> <%@ page language="java" import="java.sql.*" errorPage="" %> <!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 conn = null; …

Member Avatar for legendaddybok
0
186
Member Avatar for eddiesaliba

Hi! I am testing the "session" object and I don't know why it is losing data when I change the web page. I created a simple software to show the problem: See the code: Page index.jsp: ============== <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> </head> …

Member Avatar for eddiesaliba
0
869
Member Avatar for xxmp

Hello I made a site and i would like to update it at a server. I am from greece. Do you know which is the cost per year and a good and not very expensive server? Thank you

Member Avatar for peter_budo
0
171
Member Avatar for xxmp

Hello I have a site. For not i just check the size of the image and if it is bigger than a size i just do not upload it. Is there a way to reduce the size and upload it later? Thank you DiskFileUpload fu = new DiskFileUpload(); FileItem fi4=null; …

Member Avatar for xxmp
0
292
Member Avatar for s4ualex

Hi, This is Alex, After upoading the image, i dont want to store the image immediately, i need to display the image in confirmation page and the user is confimed i need to store it in physical location. i know how to store in physical location. but i dont know …

Member Avatar for Srujan1
0
245
Member Avatar for sciwizeh

Hello All, So I'm working on hand-coding a forum-like website, just for the experience, and I want to have a similar feature as you'll see above where a thread will have its ancestors linked: "Web Development > JSP > Parent traversal of tree-like Structure" I have several beans for different …

Member Avatar for sciwizeh
0
273
Member Avatar for bhallarahul

hi I want to create an application which contain servlet and jsp and also connected with database but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page if they do that it reject the request how …

Member Avatar for stultuske
0
99
Member Avatar for sushants
Member Avatar for mayoubprince

how can i change my java aaplication into a servlet?? in fact i made a game and i want to make it a srvlet so that i can access it through web..

Member Avatar for jwenting
0
132
Member Avatar for ze0001ng

My web pages are written in JSP and want to put online. Could you recommend some free web hosting? I searched, but can not find the one I want. Thank you.

Member Avatar for radhakrishna.p
0
301
Member Avatar for sonu611

I have a strange problem, I have a domains and a subdomain [url]http://client.spry-forms.com[/url] (login using demo/demo) [url]http://spry-forms.com/ClientAdmin[/url] (login using demo/demo) The server is setup with only tomcat 6.0.18.0 Both the above domains are mapped to tomcat/webapps/ClientAdmin. When some one logs in from the second url, the link CREATE NEW FORM …

Member Avatar for abhisu
0
2K
Member Avatar for SoulofchaOs

There's a error when I run this jsp file --> **" pstmt.executeUpdate();".** **"org.apache.jasper.JasperException: An exception occurred processing JSP page /TestAdd.jsp at line 39"** My code essentially have a text box for users to enter a value, and then the value is sent to the MySQL database. Any help is appreciated …

Member Avatar for peter_budo
0
303
Member Avatar for chrispitt
Member Avatar for sankhasubhra

I'm developing an application in JAVA where a servlet is taking the inputs from a JSP page. After inserting the values in db it will redirect to another servlet. Then the 2nd servlet will dispatch a JSP page with an ArrayList. But I can't redirect from the 2nd servlet to …

Member Avatar for nadim123
0
406
Member Avatar for jelly46

Hello I am unable to to edit a json file i need to add some updates but i keep getting Error: Parse error on line 8: ... "text" : " company name -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' I am trying to add a paragraph …

Member Avatar for paulkd
0
155
Member Avatar for jmw5598

Hey, I've come across an error in my school project. I'm creating a college registration web app. The jsp displays a list of available classes with checkboxes to check the ones you would like to register for. I've been running it in debug mode and it throws an exception at …

Member Avatar for radhakrishna.p
0
131
Member Avatar for Aditya_4

record.jsp <%@page import="java.sql.*" %> <%@page import="beans.connection" %> <% try { Connection con=connection.GetConnection(); Statement st=con.createStatement(); String query="select * from empdetail"; ResultSet rs=st.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); int cols=rsmd.getColumnCount(); %> <table> <tr> <% for(int i=1;i<=cols;i++) { %> <th><%rsmd.getColumnName(i);%></th> <% } %> </tr> <% while(rs.next()) { %> <tr> <% for(int i=1;i<=cols;i++) { %> <td><%rs.getString(i);%></td> <% …

Member Avatar for IIM
0
135
Member Avatar for azdonald

Hi I'm working on a JSP project and i need to retrieve saved images. The images are save on my computer(C:\Users\myuser\Documents\NetBeansProjects\Nomadi\web\Images) I saved the link to a MYsql database.. this is the link i saved(\web\Images\W101.jpg) Nomadi is the project name. When i run my app, the image doesn't show. What …

Member Avatar for LastMitch
0
159
Member Avatar for inabahtrg

Good day I’m new with JSP, here the problem, I just converting the code from SQL to PostgreSQL, but a problem occur after I change to DataSource ds = (DataSource)envCtx.lookup( "jdbc/postgres" ); and add a scheme to the query. By theory it should be ok but it produce this error …

Member Avatar for LastMitch
0
2K
Member Avatar for yavindu

can anyone send me a link for, free video tutorials for java web component development with netbeans.

Member Avatar for LastMitch
0
57
Member Avatar for zebusman

Hi Friends I have just started learning Java.I am getting a problem may be a small one but i coundn't able to figure it out.so here is my Servlet code iam trying to insert data into database after submitting form iam getting **java.lang.NumberFormatException: For input string: ""** I want to …

Member Avatar for zebusman
0
373
Member Avatar for Raghu88

Hi anyone please help me...... i am trying to export some data to excel file while doing this i got the following exception... here is the stacktrace... Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:598) [:6.1.0.Final] at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199) [:6.1.0.Final] at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) …

Member Avatar for LastMitch
0
418
Member Avatar for unikorndesigns

Hi guys, If i have to give a short description about my skill set, i would say i am PHP developer. I have been coding in PHP for the past 4 years and its been an year and half that i have been using CodeIgniter. I loved it! I wanted …

Member Avatar for stultuske
0
201
Member Avatar for game06

if i hit sumbit i get output at bottom. but if i check again than i get a error. bc number1 is null. i was thinking to have about if statment inside if statment, to text if int field is null or not. <html> <body> <!-- directive tag --> <%! …

Member Avatar for game06
0
339
Member Avatar for bdheeraj

hi i want to create a project that accepts the image and save it into a database and retrieve 1.i created a table in mysql database with datatypes varchar and blob. 2.to save the file into a blob datatype the file is to be converted into a inputstream 3.i created …

Member Avatar for bdheeraj
0
198
Member Avatar for ahmedhamdy

javascript code : $("input#input_field[name=brithday]").datepicker({ dateFormat: 'dd-M-yy', showAnim: 'slide', changeMonth: true, changeYear: true, yearRange: '1990:2020' }); jsp code : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Profile</title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="JS/javascript.js"></script> </head> <body> <% %> <div> <div class="blackDiv"> </div> <div class="whiteDiv"> …

Member Avatar for ahmedhamdy
0
458
Member Avatar for MuthuM123

Hello Everyone, I have a problem and looking forward for your kind help. I need the <select> tags option value to be set selected on the page load. The problem is that everytime the value which is to be selected may change on each page load. Thank you.

Member Avatar for IIM
0
249
Member Avatar for tapandesai007

I am trying to send a SMS from my Java web application using the API provided on this site. I am not able to receive the response code as its mentioned on its tutorial, which can be found here. I am using the Java version of the code for my …

Member Avatar for LastMitch
0
226
Member Avatar for jmw5598

I'm working on a web application for a class of mine. The assignment is to create a College Services app where students can login and register for classes. Right now I'm working on the login portion and it coded out but I'm having some issue and hopeing I get a …

Member Avatar for jmw5598
0
176
Member Avatar for Neha290791

hey all so there's another problem.. Actually I have a login page in my application. When user login with the appropriate credentials, different screens open up for different purpose. Each screen has a link called SignOut on the top of the page. Whan user logs out, he jumps to the …

Member Avatar for LastMitch
0
145

The End.