3,760 Topics

Member Avatar for
Member Avatar for JP_L

hi, I'm trying to run my 1st servlet I'm using eclipse and tomcat but I get an error that I cannot solve. can anyone tell me what I'm missing? here is my index.jsp [code=java] <%@ 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"> <html> <head> …

Member Avatar for ejosiah
0
97
Member Avatar for JP_L

Hi everyone I'm new to JSP and followed a code I read in a book here is my code: [code=JSP]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <% String connectionURL = "jdbc:mysql://192.168.10.2/ox?user=moop&password=unbind"; Connection connection = null; Statement statement = null; ResultSet rs = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection cn = DriverManager.getConnection(connectionURL); Statement …

Member Avatar for JP_L
0
409
Member Avatar for pack

I am writing a jsp page where a set of rows has been created dynamically according to the number of rows in particular database table.Each row consist of 5 read only values, one text box, one checkbox and a set of 4 radiobuttons. The radio buttons and checkbox are named …

0
51
Member Avatar for cutieams

i have designed a website using JSP and mysql, there is an enquiry form in that website ,when one fills the form the details automaticaly go into databse as the logic goes..but my problem is on localhost(tomcat) when i fill the form and submit, a retrieved form is displayed which …

Member Avatar for peter_budo
0
100
Member Avatar for ceyesuma

[i] Topic The topic of this question is: Creating a MySQL table and Entity from Database. [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] This is another attempt to render data in a visual web javaserver faces table. The purpose …

Member Avatar for ceyesuma
0
157
Member Avatar for dastikop

Hi ALL we are doing a prject on VPN or virtual private networks.. for this we have created the front end.. and in many pages there are operations performed such as file uploading, create users and so on.. so when these submit or upload buttons are clicked the server needs …

Member Avatar for ejosiah
0
285
Member Avatar for cool_mike
Member Avatar for javaAddict
0
77
Member Avatar for rishi choudhary
Member Avatar for mvotilla

Is there an easy way to incorporate a JSP forward directive inside an html "<a>" (anchor tag) I'm trying to do something like: <td> <a <jsp:forward page = "MyFacility.jsp"/> > Test Three Forward</td> but cannot get the syntax correct. I'd like to have the "Test Three Forward" appear as the …

Member Avatar for javaAddict
0
44
Member Avatar for ceyesuma

[i] Topic The topic of this question is: How does the @NamedQuery work? [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] The purpose of this code is understand why the Netbeans ide constructed @NamedQueries that refer to an object Content …

-1
67
Member Avatar for ceyesuma

[i] Topic The topic of this question is: tracking the content of an array in a session bean debug sessionbean1.java [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] The purpose of this code is to try to find the best …

0
56
Member Avatar for ceyesuma

Name: The name of this file is table_autoincrementedId Hello and Thank you in advance for any assistance. Purpose: The project is a Visual web JavaServerFaces project that is in the same folder and that imports the app library. Modeled after the tutorial at Using Java Persistence API Within a Visual …

Member Avatar for ceyesuma
0
115
Member Avatar for ch1mp

hello, i've inherited a project which has to be done in 11 languages, i know nothing of jsp development. the original uses a jsp page to send mail to a friend with your score in a flash game. i have tried changing.... message.setContent(txt, "text/plain;"); to... message.setContent(txt, "text/plain; charset='UTF-8'"); but this …

0
55
Member Avatar for ninadg

Hello, I would like to use a JSP script running on a Linux server, to be able to create a user account on a Windows 2003 server. My query is how do I access the Windows API from a different machine, and how does the JSP script authenticate itself to …

0
44
Member Avatar for monad

Hello, My intended scenario is that, there is a Button component on the visual web jsf page and someone click on the button, instantly a confirm box (javascript) is displayed. Now if the person click on the ok button of the box the form will be submitted but the form …

Member Avatar for monad
0
116
Member Avatar for SonxQ7

I have the following table [code] <!-- Static Headers --> <table style="width: 620px"> <thead> <tr> <td colspan="3" width="15"></td> </tr> <tr valign="top" class="results_headings"> <td width="35%">Force Number</td> <td width="35%">Name</td> <td width="30%">Required Qual Code</td> </tr> </thead> </table> <!-- Scrollable Area --> <div class="scrollable"> <table class="memberlist"> <c:forEach items="${members}" var="mem" varStatus="status"> <tr> <td width="35%"><c:out value="${mem.forceCode}" …

0
46
Member Avatar for raghavendra83

Hi, I am trying to understand & code web crawling. I want to crawl only my local data[Pages related to a particular site]. Apart from that i want to fetch only particular data from the related web page. I also have to store the fetched data in a mysql database. …

0
65
Member Avatar for pankbharambe

Hello, I have a one form in jsp in that I m using ajax technology..but i am confuse..my question is.. My form contain one table, i want when click on a [B]Perticular Cell[/B] of a table the related data will display by using ajax..please tell me how to call ajax …

0
42
Member Avatar for piyush09

i reaaly get few errors in the code for run a video in JSP or for video streaming... can anyone help me to give the code for it.. thank you

Member Avatar for monem
0
66
Member Avatar for Mumma Singh

Hi,Friends Im facing problem in paging using jsp & oracle ,in this code only 1 to 10 values displying,when im clicking on next its displying nothing.Means not taking next values. [code=JSP]<%@ page language="java" import="java.sql.*;"%> <html> <head> </head> <body> <br><br><br> <% int offset=0; int ofset = 0; if(request.getParameter("offset")!=null) { offset= Integer.parseInt(request.getParameter("offset").toString()); …

Member Avatar for Mumma Singh
0
272
Member Avatar for mps727

I'm having trouble compiling my servlet, because it says the servlet classes can't be found. [code] CreateAccount.java:2: package javax.servlet does not exist import javax.servlet.*; ^ [/code] I googled a bunch and most people with this problem had their CLASSPATH set incorrectly. Here is the result when I echo my classpath: …

Member Avatar for mps727
1
133
Member Avatar for kohuke

Hi. I'm trying to learn how to make my own web app and following those tutorials: [url]http://www.netbeans.org/kb/docs/java/gui-db.html[/url] [url]http://www.netbeans.org/kb/61/web/applets.html[/url] I created a desktop application like showed in the first guide. Then tried to integrate it into the Web Applet. But for some reason after right clicking my desktopapp's java file and …

0
100
Member Avatar for ceyesuma

[i] Name: The name of this question is: carbon_copy [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] The purpose of this code is create a desktop app and web app. The web app has the destop apps library. Create a …

0
56
Member Avatar for ankiy.singh

hello to every one , i want help regarding loging, i hv designed my login page. i want to check whether user or administrator has logged in dependinp upon the type of user i want to navigate. pls send me code. thanks

Member Avatar for javaAddict
0
38
Member Avatar for daveomcgee

Hi everyone :) I'm completely new here. Let me introduce myself - My name's Dave and I'm a student studying Multimedia applications development at the Waterford Institute of Technology in Waterford, Ireland. [B]I'm currently involved in a college project where I have a JSP web application connecting to a MySQL …

0
40
Member Avatar for vartikachandra

i have to invoke a servlet from jsp and pass many variables to the servlet. my jsp code is:: [code] <%@ page import="java.io.*" %> <%@ page import="java.lang.*" %> <%@ page import="java.sql.*" %> <%@ page import="javax.servlet.*" %> <%@ page import="javax.servlet.http.*" %> <%@ page import="java.util.*" %> <% String flag1=(String)session.getAttribute("flag"); out.println(flag1); if(flag1=="signin") { …

Member Avatar for peter_budo
0
1K
Member Avatar for robertab14

Hi, Are there any validations which can be done on text boxes like for eg restricting that the user must enter some text, to be used for eg in login forms. And regular expression validators for eg to validate an email address? 10x

0
47
Member Avatar for Karas87

Hi everybody, I have the following URL to grab: [url]http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic[/url] I need the 2 ids. But it doesn't seem to work. [CODE=JSP] var url = "http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic"; var exp = new RegExp("^http:\/\/w?w?w?\.?mysite\.com\/profile\.php.?\?id=(\d+)&mode=photo&pic_id=(\d+).*?$"); if (exp.test(url)) { var found = exp.exec(url); alert("found0: "+found[0]+" found1: "+found[1]); } [/CODE] What am I doing wrong ? …

Member Avatar for Karas87
0
142
Member Avatar for Caled

Hello, Im not quite sure If I'm posting this in the right category. Briefly the problem is: I'm developing this web application using MVC approach that based on Java and JSP. I have created the servlet which use the DispatchRequest to forward the request-response. In my JSP, I use the …

Member Avatar for peter_budo
0
55
Member Avatar for khalidmehmood

Hi Experts! I am developing a online shopping module I am new to JSP. I have develop the interface as under for one product: Product Name Manufacturer Stock Quantity Price <Input text field to input quantity to purchase> hyperlink Buy Here that pass the parameters product ID, product name, price …

0
90

The End.