4,248 Topics

Member Avatar for
Member Avatar for KilluaX

Hi, all What I am trying to do is to put a hyperlink on my jsp page. Then, when I click on the link, I will come to the linked page and as well the page can get some info from the jsp page. How is the code like? thanks.

Member Avatar for missalexa
0
4K
Member Avatar for artirt

I'm making a web site and need limiting customers' access to the website of my application. I work under Apache Tomcat 6.0.18, postresql and of course i've put postgresql-8.3-603.jdbc4 in my lib file. My context Apache-Tomcat's name is "hotel", and my database's name is AMDB. I haven't a file sun-web.xml …

0
90
Member Avatar for Enjoy

Hi all, I want to retrieve selected item from listbox in a jsp page and send it to a servlet. I am not able to get selected value. Can u please tell me how to get selected value. In servlet i am trying to get the selected value by using …

Member Avatar for stephen84s
0
537
Member Avatar for pcmic

Hello, I am new to your forum and I hope that someone could please help me out of this jam. I think that it is antivirus 2009 but every spyware that I download tells me that my machine is clean. My firewall is wide open-cant enable it, I cant fefrag, …

Member Avatar for crunchie
0
788
Member Avatar for sm3128
Member Avatar for leki

I try using this code: [code]File wd = new File("/sx04a1/jakarta-tomcat-5/webapps/maltixa"); String sscp = "scp /sx04a1/jakarta-tomcat-5/webapps/maltixa/index.jsp [email]jipbekok@fff04.ff.ff.es:/sx04a1/jakarta-tomcat-5/webapps/maltixa/index5.jsp[/email]"; p = Runtime.getRuntime().exec(sscp,null,wd); try { p.waitFor(); } catch (InterruptedException e) { e.printStackTrace(); } out.println("Exit value: " + p.exitValue()); BufferedReader reader =new BufferedReader(new InputStreamReader(p.getInputStream())); String s = reader.readLine(); out.println("scp said [ " + s + …

Member Avatar for leki
0
161
Member Avatar for Vidaria

This morning I noticed my (Norton Internet Security 2008) antivirus scan had crashed while it was running its scheduled scan last night. It gave me the following error RUNDDL An exception occured while trying to run "c:\progra~1\common!1\symant~1\20081126.025\cceraser.dll, DetectCache 4976" As it happened again when i tried a second scan I …

Member Avatar for jholland1964
0
174
Member Avatar for javaAddict

Hi there, Does anyone know any good books for Struts 2? I have tried reading: Struts 2 In Action, but I wasn't very thrilled about it Thanks

Member Avatar for javaAddict
0
93
Member Avatar for mahaboob Basha

Hi i created one jsp form with 2 fields..now in the first servlet i want check whether those 2 fields values are presented in the Database or not..if not then i want move those values to another servlet .. how can i do this?how to get the values (parameter values …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for Aman0711

[code=JSP]<td><c:out value="${varApm_qpay.METRICS_IN_SLA}"/></td> <td><c:out value="${varApm_qpay.METRICS_OUT_OF_SLA}" /></td> <td><c:out value="${varApm_qpay.TOTAL_METRICS}" /></td>[/code] I am using the above mentioned code to access a data and then display it on my jsp page. My problem is that I want to truncate the decimal values that are being displayed on my jsp page. for example 15.0 should …

Member Avatar for ~s.o.s~
0
63
Member Avatar for myndcraft

I have a JSP page that creates a link to a php page. (..:: I have ZERO JSP experience ::..) and I need to do some encoding or string substitution because a '&' is being passed and interpreted by the php as a separate variable rather then part of a …

Member Avatar for ~s.o.s~
0
177
Member Avatar for merooo0ooo

drop down menu task hi all i'm working in jsp & servlet project now i need a help in code for jsp page I had a drop down menu which is dynamically reloaded from my database records waht i need is to link each item in the that menu to …

Member Avatar for javaAddict
0
111
Member Avatar for pokahantos

Hello all, I have a very stupid problem... unfortunately i can not find any way to solve it.. I am using JDeveloper to design & implement JSP page.. I have an input field "text field" where the user enter his name.. I wanna check if the text field is empty …

Member Avatar for pokahantos
0
165
Member Avatar for larryperl

Hi , I am usinga code to connect to database. here is the code-- [CODE] <html> <head> <title>Obtaining a Connection</title> </head> <body> <h1>This Page Obtains a Connection to a Database and executes a query</h1> <% Connection conn = null; ResultSet result = null; Statement stmt = null; try { Class …

Member Avatar for javaAddict
0
112
Member Avatar for mahaboob Basha

i have a jsp it has two fileds..mobileno and password..when i enterd values its storing in DB.But when iam retriving its retriving and comparing only with newly inserted values only.. it is comparing only last inserted values in Db only ..here is my code.. package com; import java.io.*; import java.util.*; …

Member Avatar for peter_budo
0
1K
Member Avatar for vivek_web

wen i try to connect jsp with access i found error showin "no data found" ..how can correct it ? also data is not inserted in my database..my codin is below.. [code=JSP]<% Connection con = null; Statement stmt = null; ResultSet rs = null; String quer = "insert into db …

Member Avatar for ndtreviv
0
181
Member Avatar for cybernaut09

I am creating a login page , where when user enters his username and password the the request is sent to the servlets first and then validation is done in a javabean . If validation results true then user is forworded to another page otherwise he remains on the same …

Member Avatar for stephen84s
0
122
Member Avatar for mahaboob Basha

i have a jsp it has two fileds..mobileno and password..when i enterd values its storing in DB.But when iam retriving its retriving and comparing only with newly inserted values only.. it is comparing only last inserted values in Db only ..here is my code.. [code=jsp]package com; import java.io.*; import java.util.*; …

Member Avatar for peter_budo
0
899
Member Avatar for rajshree13

How we can authenticate the users without using username and password,i.e anybody can view the page by just entering name,emp id and date and on submitting redirect to the url

Member Avatar for rajshree13
0
67
Member Avatar for sundar divas

Q: Create a JSP based page wherein by clicking the add button the user details should be added to the database and clicking the delete button should delete the particular user details from the database. I am new to JSP so dont have much idea how to proceed? Do we …

Member Avatar for vee_liang
0
108
Member Avatar for pasu

Hi, In my project, i should display all the mail ids available in a website. one text box where i should enter the address(eg:[url]www.sample.com)and[/url] submitting it will return all the mail ids available in that website. Kindly help me out.Thanks...

Member Avatar for stephen84s
-1
56
Member Avatar for mahaboob Basha

Hi i created one jsp form with 2 fields..now in the first servlet i want check whether those 2 fields values are presented in the Database or not..if not then i want move those values to another servlet .. how can i do this?how to get the values (parameter values …

Member Avatar for peter_budo
0
524
Member Avatar for flosweb

Hi Guys, I am new here in this community. I still did some stuff with JSP, but now I have a principle questions. Would be nice to receive some feedback... I wanna build up a website with several JSP pages. But I don't want to place all the content into …

Member Avatar for ~s.o.s~
0
149
Member Avatar for Aamit

Hi,... I am learning JSP . I want to know that which software or tool that should be used to develop the code... which help me for future to work. after few days i am on 1 industrial project so.. which software?? any server / tool that should is used?? …

Member Avatar for peter_budo
0
175
Member Avatar for freaky.pandit

hey guys... i need to integrate a fingerprint sacnner into a project wchich i am developing right now. but i do not know any java api which support hardware integration...so i m in a total mess... can anyone tell me a way to integrate the fingerprint scanner in my application. …

Member Avatar for AlbertPi
0
128
Member Avatar for ShahzadMahmood

Regards for All, I am new in JSP and giving a web solution, I am using XML document to store data. I have a script which retrieves stored data from XML which is in JSP. Now I want to append more data at any level in XML document and want …

0
52
Member Avatar for mahaboob Basha

Hi i want to implement one servlet where first i want add a user to the database and later when he logged again i need to check that whether he is already existed or not?if he is not existed i need to add those details to the database... can any …

Member Avatar for stultuske
0
282
Member Avatar for wynn

How to design a print reciept from jsp file. or generated a pdf file any idea to start ?

Member Avatar for Raghav11k
0
103
Member Avatar for Lyndan

Hai, I a have JSP page containing a registration form.The registration form contains a text box and a drop down list box with 1-7 option values. I have entered data into the text box and selected the option value in the drop down list box . After the clicking on …

Member Avatar for Lyndan
0
99
Member Avatar for javi_d

I have a lab to do a simple chat program that has to 1. identify users 2. list online users (means to determine who's logged out and who has closed the page but hasn't logged out) i'm identifying users by session. I'm having problem with determining a user who hasn't …

0
41
Member Avatar for ksbigfoot

I am new at and using Struts. I'm not sure how to do the following: I am loading an Arraylist of TitleNames. Each TitleName is related to a List of pictures (MyList). MyList is a class that I created that contains all the fields needed to describe the picture. In …

0
74
Member Avatar for 0sinner

Hello, This is my first post here. I appreciate any help you guys can give me. I'm having some issues with the technologies listed in the title. I've narrowed this down to a Apache/Tomcat configuration issue (I'm leaning towards tomcat issue). First of all, my setup: Apache 2.2.10 -- The …

Member Avatar for 0sinner
0
199
Member Avatar for nick_katz

Hello all. I have this problem. I have a div with inactive buttons in a jsp page, buttons like select all | add to basket | compare | .... and some java logic determining whether any products (coming from a backend) are found on page load. I want to make …

Member Avatar for nick_katz
0
76
Member Avatar for zheen

hi! im new here, just a newbie programmer, asking a newbie question.. ^_^ out.println("<td>" + "<input type=\"submit\" id=\"" + patientNum2.get(counterQueue) + "\" value=\"" + patientNum2.get(counterQueue) + "\" name=\"btnShowCaseList\" />" + "</td>"); how could i get the value of "id" from the jsp page to the servlet?, the only thing i …

Member Avatar for shurdsfield
0
64
Member Avatar for Chaster

Hi, I'v been trying to write a simple Java EE app, which deals with car renting. The entity beans and session beans are ready, so I've created a JSP for representation. It contains a single method, for init: [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"> …

Member Avatar for shurdsfield
0
159
Member Avatar for chandan123

is there any project/work done for java web proxy ? i am looking for java snippets , ideas to write a proxy server note i am talking about web proxy servers (not for sun proxy server or any thing like that ) ( ex in php there are some scripts …

0
54
Member Avatar for jackiejoe

Say I have a simple form... How do I call the three different values entered and output them to the screen in the file test.jsp? [CODE] <html> <body> <form method= "post" action = "test.jsp"> Please select the Honda 2000 features needed <BR> Aero Screen: <Input type = text Name = …

Member Avatar for ~s.o.s~
0
98
Member Avatar for jsully1

I am using Tomcat as a server to work on a servlet that need to access a database and I need to use CachedRowSet, but I cannot seem to connect to the database correctly. Currently I have [code] public class FaqListingServlet extends HttpServlet { private CachedRowSetImpl cachedRowSet; // set up …

Member Avatar for dickersonka
0
100
Member Avatar for jackiejoe

Hi all, First poster here - have been reading through many of the posts but need someone to break something down for me. Have been given an assignment in college to create a Login / Register page using sql and jsp. I have done a page like this before but …

Member Avatar for peter_budo
0
66
Member Avatar for vivasc

I have to create a resultset that gives results in the next way: REGION 1 COUNTRY from Region 1 Country from region 1 REGION 2 Country region 2 Country region 2 Do you have any idea about how i can do it? thanks

Member Avatar for vivasc
0
70
Member Avatar for dav555

i need help! the following query causes an exception but it works in mysql...can someone see the error? [CODE]"select uc.id, uc.userid, uc.carid, uc.description, uc.date, uc.km, uc.price, uc.remark, y.brand, y.type from Usercar as uc join (select x.cid as cid, x.brand as brand, t.name as type from (select c.id as cid, b.name …

0
54
Member Avatar for kdhanshree

I have used MSAccess as backend. Date is stored in the Date/Time format. I have to retrieve only the date from the database using JSP code. But I get date as well as time. So plzzzzzzzzz help me in this problem. Give code if available.

Member Avatar for peter_budo
0
65
Member Avatar for larryperl

Hi Experts, i have this code -- [CODE] <%-- Document : index Created on : Nov 10, 2008, 3:25:29 PM Author : namish --%> <%@page import="java.sql.*"%> <html> <head> <title>Obtaining a Connection</title> </head> <body> <h1>This Page Obtains a Connection to a Database and executes a query</h1> <% Connection conn = null; …

Member Avatar for masijade
0
102
Member Avatar for Nimmala

Hi I am using Email Compose window to send email,once the recipient try to send reply to senders's email each line in message(sender's message) should append with >space(" ") is there any code for this please help me.

Member Avatar for Nimmala
0
35
Member Avatar for indivision
Member Avatar for larryperl

Hi Everyone, I need some suggestions from you guys. I am totally unaware of JSP or java and trying to learn a bit , as i need to develop a sample application using web services.I am in need of some help from you guys. If there are some errors in …

Member Avatar for peter_budo
0
116
Member Avatar for savinki

How can we set and get cookies in struts2. I tried with ; [LIST] [/LIST]Cookie a = new Cookie("name","value"); - but this throws a null pointer exception. because of this exception I used CookieInterceptor: CookieInterceptor LoginCookie = new CookieInterceptor(); LoginCookie.setCookiesName("type"); LoginCookie.setCookiesValue("value"); but how can I get the cookie values?

0
76
Member Avatar for LAPIII
Member Avatar for bobocqu

the question description: when I read a jpg file, there is no any problem. but when I try to read a mht file, the service method was run twice. why? Can anyone give me a satisfying explain? Thanks first in here. [CODE]public class ShowImageServlet extends HttpServlet { public void service(HttpServletRequest …

Member Avatar for bobocqu
0
507
Member Avatar for ankie

Hello people, I am trying to run a simple web application using spring in eclipse. My directory structure is as follows: Java Resources: src A.java DispatchController.java Libraries: Spring.jar,Spring-webmvc.jar,Commons-logging.jar, WebContent: index.jsp view.jsp WEB-INF: web.xml dispatch-servlet.xml Application-context.xml I am using a Tomcat server. When i click on the link on my jsp …

0
60

The End.