3,760 Topics
| |
<%@ 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; … | |
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> … | |
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 | |
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; … | |
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 … | |
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 … | |
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 … | |
| |
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.. | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> <% … | |
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 … | |
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 … | |
can anyone send me a link for, free video tutorials for java web component development with netbeans. | |
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 … | |
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) … | |
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 … | |
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 --> <%! … | |
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 … | |
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"> … | |
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. | |
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 … | |
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 … | |
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 … |
The End.