3,760 Topics

Member Avatar for
Member Avatar for glendavis

I wrote some html code that lets the user choose an input from a drop down menu then it is passed into a servlet and that creates an HTML document with the output. How does the servlet get the input from the user. In other words, what code do i …

Member Avatar for Thirusha
0
87
Member Avatar for jeswanth
Member Avatar for gope_biswas

hi every body. i am a new user to this site and i need help from you all regarding installation and running of tomcat3. Can any body give me step by step details of how to install and configar tomcat and then where to save a simple java program containing …

Member Avatar for pragati12
0
244
Member Avatar for shalabhgarg

hiii can u please help me in uploading files in JSP??? I have a code but it can only upload small sized files(only few bytes or kb) , please help me in uploading large files.I tried to upload a large file but it could not, although it didn't show any …

Member Avatar for peter_budo
0
721
Member Avatar for isuruj

I need to pass a vector<String> from a servlet to a JSP file. The vector contains data retrieved by a database. Sending from the url is not suitable(because there is lot of data). So what is the proper way to do that?

Member Avatar for peter_budo
0
61
Member Avatar for shuchi.vishnoi

I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database. First problem …

0
66
Member Avatar for Pranesh_Ashrit

How to trigger onChange event if the same option value is selected from the dropdown list. Presently, only the same value is chosen by selecting different option value and then the same value. Is there any overloading possible for onChange function Thanks in Advance

Member Avatar for peter_budo
0
58
Member Avatar for Pranesh_Ashrit

I have three dropdown list. Each has "Select" as the first option. The user shall choose atleast one option from atleast one dropdown list. if not an alert has to shown. How to accomplish this?

Member Avatar for peter_budo
0
70
Member Avatar for romilc

the following is the code: [CODE] <%@ page import="java.util.*" import="java.sql.*" import="java.io.*" language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <% Integer hit = 0; Connection con = null; Statement stmt=null; ResultSet rs = null; %> <% try { out.println(); Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost/lab2","root","root"); stmt=con.createStatement(); rs=stmt.executeQuery("SELECT hitCount from table1"); hit = rs.getInt("hitCount"); hit = hit …

0
78
Member Avatar for tarek.mostafa

I have a simple question, I developed a java application, which runs on Oracle application server and Oracle database. This application depends on multiple JSPs on which multiple users can access a single JSP in the same time, some problems occurs due to the excessive usage of this application and …

0
83
Member Avatar for vjlogin

Hi Everyone I've Installed Myeclipse and Tomcat 6.x , Everythings fine , the Server starts in 60 ms time which is not usual , I mean it'll take loger time. Eclipse shows that server is started , but when I run the project , There's nothing happens , not a …

Member Avatar for vjlogin
0
259
Member Avatar for ibanez270dx

Hey guys, I'm currently learning JSP and Java using Netbeans, and I was wondering if there was an easy way to create a web template layout. For example, using a single header, footer, and navigation bar for all pages. In Ruby on Rails, there is a "layouts" view, which you …

Member Avatar for ~s.o.s~
0
124
Member Avatar for amer2812

hey everybody i have question regarding JSP i'm new to this language and it's required from me to send emails by jsp and i'm using dreamweaver for that i worked and did the codes but still get errors: type Exception report message description The server encountered an internal error () …

0
50
Member Avatar for singju

hello everyone, i need 1 help. i am having 3 ".jsp" files : x1.jsp,x2.jsp and x3.jsp. in x1.jjsp i am having a combo box, from the combo box i am selecting 1 value. there is a submit button below it. i am using "form method = post action=x2.jsp". the value …

Member Avatar for peter_budo
0
115
Member Avatar for PAPISSANT

I am developping an JEE application and i don't understand why this lines are not recognize by eclispe. I have import the library struts. If someone has an idea.... thanks [code=JSP]<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>[/code]

0
64
Member Avatar for alsoumhi

Hi guys I am trying to prevent user to access directly using URL to my application , so in order to do that I have used security constraint in web.xml file and it works with me . my problem is in my application I am using href and redirect method …

Member Avatar for kvprajapati
0
95
Member Avatar for pandeyprashant

Hello every one, i m trying to use session in jsp application for remembering username from one page to another. it is working fine but when i use hyperlink to come back to home page the username becomes null. please help me how to remember username when user is using …

Member Avatar for javaAddict
0
3K
Member Avatar for shepon086

hi, i am new in java web application. i am working with eclipse 3.5 and tomcat 6. tomcat is working with eclipse very fine. but when i am trying to run jsp code, i am getting the following message from java virtual machine launcher, could not find the main class: …

Member Avatar for peter_budo
0
101
Member Avatar for santiagozky

Hello everyone, first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question. I am making a report module for a web page using java. For this I will use a jquery plugin called …

Member Avatar for santiagozky
0
152
Member Avatar for hanzooi

hey guys, i'm new here! i would like to know how to code the "Add to cart" ? can someone help me please?

Member Avatar for javaAddict
0
126
Member Avatar for feoperro

Hi, I'm trying to figure out how to pass parameters across JSP pages without using links. For some reason, I can only get null across... Here is my code: Page 1 [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test Page</title> </head> <body> <form name="testForm" action="Test.jsp"> <select name='tableSelect' onChange='testForm.submit();' style="text-align:center"> <option …

Member Avatar for javaAddict
0
139
Member Avatar for alsoumhi

Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that …

Member Avatar for javaAddict
0
114
Member Avatar for kellybaz

Hello- I am pretty new to JSP I need some help with a GET method. Apparently IE has a URL length limitation.. IE0- "If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path." By sending …

Member Avatar for javaAddict
-1
81
Member Avatar for blindkilla

When my servlet creates a session, even if it is the first time running the servlet, the session.isNew() returns false. I checked to make sure the session ID's are different each time I run it and they are, yet isNew() still returns false. I'm trying to do the following in …

Member Avatar for peter_budo
0
454
Member Avatar for obelisk

JSP is a new world for me, since 3 days ago. I am having a problem (or I have no idea) how does the inserting datas into database works. I have looked at some examples, but still, im having a hard time. I know PHP and ASP, but JSP is …

Member Avatar for javaAddict
1
1K
Member Avatar for Andrew Docherty

Hi, I am new to jsp, and Beans. I have been working on this piece of code, for the past week and I am no further along :'( I am using Tomcat Apache 6.0 In the ROOT folder I have a simple page test1.jsp: [code=JSP]package user; <%@ page contentType="text/html; charset=utf-8" …

Member Avatar for peter_budo
0
115
Member Avatar for sridhar123

i installed blazix server in my pc ,but i cant able to run my jsp program please help me

Member Avatar for catchybread
0
103
Member Avatar for feoperro

Hi, I would like to know if it's possible to specify the "target='FrameName'" in response.sendRedirect("Home.jsp") by any chance? I tried this: [CODE] <!-- Security Check --> <form action="Login" target="_top"> <% if ((String) request.getSession(false).getAttribute("sessionStatus") == null) { response.sendRedirect("Login?pageTimeout=yes"); } %> </form> <!-- Security Check --> [/CODE] But it doesn't work... The …

Member Avatar for feoperro
0
993
Member Avatar for romilc

[CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@page import = "javax.swing.*" import="DefaultNamespace.user"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Play Tic-Tac-Toe</title> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td>&nbsp;</td> </tr> <tr> <td> <div align="center"> <font color="#19A1CB" size="2" face="Verdana, Arial, Helvetica, sans-serif"> <span><b>Tic …

0
61
Member Avatar for farahshafilla

hai... i need idea how to make security code in jsp.. for example: when we register to any website, mostly we need to fill the security code that appear at the registration form page. so how can,I as a developer to do that security code? this is the example of …

Member Avatar for muhdadeel
0
197

The End.