3,760 Topics

Member Avatar for
Member Avatar for Mahesh59

i'm able to upload files using jsp into my server.Now i want to download those files with a popup window showing open save or cancel options.can anyone tell me the code for it.

Member Avatar for cuddlefish
0
2K
Member Avatar for maizer1

Hi, on our webpage, we display text taken from the DB, that includes html character codes like &lt;br/&gt;. Obviously, this display as <br/> on the page, but we'd like to actually see the newline. Its probably stored like this in the DB because we did an escape on the text …

Member Avatar for maizer1
0
109
Member Avatar for raviaaaa

iam inserting the emp details to TABLE, values are updating to ATABLE but iam not getting updated values in view (java sript in jsp file) please suggest me how to solve this problem

Member Avatar for javaAddict
0
268
Member Avatar for mingis

Hi there, I am a complete newbie to JSP so apologies if this is a blindingly obvious question - I have researched on Google, but can't get this working. I have a simple switch statement as below: [CODE] <% for (int a=0; a<10; a++) { if ( null != countryID[a] …

Member Avatar for masijade
0
139
Member Avatar for morymory

Hello, I am a Thai beginner and this is my test code. I run my old code and it error 500. I don't know how to fix it because last time i can run it and no error. And i didn't change anything in my code, just run it again. …

Member Avatar for morymory
0
135
Member Avatar for -acir-

i tried to add enum.. not sure why its not working... pls help. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.IOException; import java.io.PrintWriter; import java.util.Random; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * …

Member Avatar for -acir-
0
109
Member Avatar for sarathsshanker

hi, im new to MVCin netbeans and,i intend to create a frame set such as this [code]<FRAME name="left" src="menu.html" frameborder="0" border="1" marginheight="0" marginwidth="0" scrolling="auto" noresize> <FRAME name="right" src="right.html" frameborder="0" border="0" borderColor="#525252" scrolling="auto">[/code] in the index.jsp, after creating the main and right html files i ran the application and it worked,the …

0
50
Member Avatar for kimpham

Hi All, I have the page using iframe and every time the browser timeout and I want to logout by clicking on the "logout" button the page is displayed the content of logout.jsp instead of the logout page. This issue is only happened with Chrome browser - The FireFox and …

Member Avatar for peter_budo
0
143
Member Avatar for abhinavM

I have a jsp page where I am accessing data from the database and showing the data in table on the browser with radio buttons in between.And then there is a submit button on whose click the control is transferred to a servlet where I reading the status of the …

0
78
Member Avatar for bluerabbit

for my web application I am needed to reply short code SMS queries over HTTP. how can i integrate the service provider API with jsp and servlets. I am using jboss, Tomcat and MySql. Developers API are given below : Bulk SMS API Documentation (Single/multiple SMS via HTTP) for website/software …

0
118
Member Avatar for raghujosh

How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width …

0
137
Member Avatar for abhinavM

I have a set of radio buttons.These radio buttons are associated with some questions for survey.I also have a Submit button.I want that as soon as I click the Submit button, the application should read the status of radio buttons.But I am unable to figure out a way of doing …

0
109
Member Avatar for anand01

hi all , I did a application in jsp servlet and ejb with mysql db .. how should i host in wweb server pls any one help me Thanks in advance Anand

Member Avatar for peter_budo
0
99
Member Avatar for iamsiter

[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cmc; import java.sql.*; /** * * @author Sahil */ public class signup { String fn,ln,un,pwd,cpwd,dob,sex,email,sec,secans; String emp,colg,skul,relstat,fammem,fam,con,country,state,city,pin; Connection cn; Statement st; int i,j,k; public int getI() { return i; } …

Member Avatar for peter_budo
0
147
Member Avatar for sarathsshanker

hi i am not able to get this particular JSP to work [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Hello</title> </head> <body> <h1>${helloMessage}</h1> </body> </html>[/CODE] the helloMessage function is always null in this page! this is the previous page of the JSP: [CODE]<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!doctype html> …

0
60
Member Avatar for cmaheshwari16

Hi All, I am using JSP and servlet technology for making graphs. Below please find my jsps, Display.jsp [CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page import="java.awt.*" %> <%@ page import="java.io.*" %> <%@ page import="org.jfree.chart.*" %> <%@ page import="org.jfree.chart.axis.*" %> <%@ page import="org.jfree.chart.entity.*" %> <%@ …

0
134
Member Avatar for abhinavM

I have this servlet code for retrieving contents from database and displaying it on the browser.But when I am running this code it is giving "ClassNotFound Exception" at Class.forname().I have built the path with db2jcc.jar and db2jcc_license.jar file but still this exception is thrown.Please help me [CODE] import java.io.IOException; import …

0
112
Member Avatar for skiabox

I am trying to run a relatively simple jsp page but I am getting the following error : [CODE] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /dateBean.jsp (line: 7, column: 4) The …

0
60
Member Avatar for cmaheshwari16

Hi All, I am little bit new to struts framework though I have used tiles in struts application. Now I want to display charts in my application. After searching I found jFreechart library to create charts. (Though it doesn't generate all the charts, like box in web application). Now I …

0
132
Member Avatar for sarathsshanker

org.apache.jasper.JasperException: /carsar.jsp(1,1) The value for the useBean class attribute com.sarath.cars.CarBean is invalid. thanks!

Member Avatar for masijade
0
59
Member Avatar for moses tim

hi, i'm new in JSP too, and i also using multipart/form-data. so, can I know how to use getInputStream() or getReader() Method to request object from text field ? thanks :) regards, tim

0
50
Member Avatar for roachae

I'm a complete beginner when it comes to JSP, so I'm really not sure what I'm missing here. I'm trying to add some fields to a form in an existing webapp, but when I try to use html:text for my input fields, the complete form and the rest of the …

0
85
Member Avatar for shan2

Hi Friends, I am stuck for passing values from drop down list of a HTML page to a servlet file for further processing. Actually i am developing a small model of "Railway Reservation System" for my mini-project. The problem is to how can i pass values from various number of …

Member Avatar for gvsubhu
0
185
Member Avatar for pjyankee

Hello everyone, i am new comer to web development & netbeans, i m a student. I have been given a task to create registration page with username & password, & after submitting this form it automatically stores data into databse, which can later be seen by admin only...or can be …

Member Avatar for pjyankee
0
810
Member Avatar for serradi

I want to add sites snapshot in my project. The search made by me on internet revealed that this can be done with the help of js. The metods found involved links to sites that provide snapshots services and these are not heping me at all. So i have 2 …

0
37
Member Avatar for hericles

Hey, I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL [url]http://www.somesite.com[/url] and send it to …

0
123
Member Avatar for sarathsshanker

[code]import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import javax.servlet.http.HttpSession; import java.util.ArrayList; import java.util.StringTokenizer; import java.io.PrintWriter; import java.io.IOException; import java.text.DecimalFormat; public class ShoppingServ extends HttpServlet { String link; String[] books; String[] music; String[] computers; String<ArrayList> selitems; // JAVA.STRING.LANG doesnot take parameters error String<ArrayList> cartitems ;// JAVA.STRING.LANG doesnot take parameters error …

Member Avatar for Slimmy
0
189
Member Avatar for skiabox

I have problem starting tomcat now that I have installed macos lion. I get the following error in catalina.out : [CODE] Aug 7, 2011 4:12:01 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Aug 7, 2011 4:12:01 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile …

Member Avatar for skiabox
0
201
Member Avatar for iamsiter

Hi all I made a welcome.jsp page and included loginbox.jsp using<jsp:include> tag While loginbox.jsp is working perfectly (with database),but when i include it in welcome.jsp then it dosen't work!!!!Please help welcome.jsp[CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JSP Page</title> </head> <style> .bc { background-color:#CCCC00; background-repeat: no-repeat; background-position:center center; } </style> <body …

0
82
Member Avatar for syeda amna

hi how i can write the code for servlet that accept message from client. i wrote the code for socket server that accepts message from client. but i am unable to write the code for servlet. please help me. thanks

Member Avatar for syeda amna
0
63

The End.