4,248 Topics

Member Avatar for
Member Avatar for ihtraa

we are currently workin on a RFID project and we need to generate the RFID serial numbers which is in a specific format (eg: 0101i0010001). in this the 1st 4 numbers are constant (0101) the next 4 digit numbers are item id which is got from the JSP textbox(i001) the …

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

Greetings, Im a newbie to JSP/Javascript (unfortunalley). However I found enough example to create code that connects to my access db and populates two combo boxes. The selection of the first box is used to populate the second (cascading). See code below, apologies for the formatting as I wrote it …

Member Avatar for ~s.o.s~
0
147
Member Avatar for nikk

My website contains a news tab, which will show hyperlinks of news. On clicking link, user can read entire link. But the news are in marathi language(created in word doc.) Displating it directly through JSP is not feasible as user may not have font installed on client machine. Can you …

Member Avatar for ~s.o.s~
0
56
Member Avatar for ihtraa

we are currently workin on a RFID project and we need to generate the RFID serial numbers which is in a specific format (eg: 0101i0010001). in this the 1st 4 numbers are constant (0101) the next 4 digit numbers are item id which is got from the JSP textbox(i001) the …

Member Avatar for Acidburn
0
106
Member Avatar for eddy556

I have a string stored in a session variable.....how do I get that string back out as I get the error:Type mismatch: cannot convert from Object to String Is there a toString() method or something? Thanks

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

Hello friends, i'm creating a website using JSP with MS SQL. I want to use md5 to encrypt user's password. 1. Is it safe? 2. how to use it i.e. can you guide me what code should be written in "New user's sign up" page and "Login page"? Please Help. …

0
89
Member Avatar for Asiima

Can anyone help me: I have Tomcat installed: on [url]http://ServerName:8080/MyPackagename[/url] in our LAN. MyPackageName contains the HTML files and with in it there's classes subdirectory that contains [COLOR="Red"]amos[/COLOR]subfolder my Servlet classes. I have a HTML form: <form action="/servlet/MyPackageName.amos.LoginServlet2"> When i submit the form, it says:"Error 401: the requested resorce:/servlet/MyPackageName.amos.LoginServlet2 is …

Member Avatar for ~s.o.s~
0
122
Member Avatar for nikk

I'm creating a website using JSP, HTML pages and MS SQL. Can u please tell me how to create a session and how to retrive it each time while checking user status i.e how to check if user is signed in or not? Please help. Thank you.

Member Avatar for ~s.o.s~
0
100
Member Avatar for nemo

i am designing a page where the user enters the start date for a uni session say 04/02/2008 in dd/mm/yyyy format and then the user selects the duration for the session in weeks, say 22. our system needs to calculate the end date for the session by adding 22 weeks …

Member Avatar for ~s.o.s~
0
83
Member Avatar for Ankita B

Hi,I wish to make a configuration file for db connection parameters. I read about properties file.I have made a properties file that contains the following info--- String jdbcDriver="oracle.jdbc.driver.OracleDriver"; String connectionURLThin="jdbc:oracle:thin:@ hostname:AIPUAT1"; String DbUserId="abc"; String DbUserpassword="abc"; and saved it as DbConnection.properties. i have also made a java file that uses these …

Member Avatar for Ankita B
0
141
Member Avatar for nikk

Can you please tell me how to encrypt and decrypt a password? I want to use it in my project(website). Please help. Thank you.

Member Avatar for peter_budo
0
115
Member Avatar for ili82

Hi I'm triying to develop an application to read barcode (from laser scanner) and manipulate the string with mysql. I've read something about serial port but i'm not sure how to do it. Could somebody give me a piece of advice?

Member Avatar for raghusan
0
109
Member Avatar for chikkubhai

Any idea how we can setup a progress bar or display speed by refreshing the jsp page to continuously show some of the variables probably read from a text or properties file showing the progress of a huge simulation, servlet?

0
65
Member Avatar for sourcecode

Hi All, I am web developer with some experience in PHP programming. I am keen to learn java technologies like JSP, servlets, struts and so on. Was wondering if i can get some working sample projects in jsp, preferably small well written projects with some description on how it works. …

Member Avatar for bugmenot
0
110
Member Avatar for eddy556

Okay, here we go. I am trying to learn how to use javabeans properly and so I've created a small bean which just writes text to the screen. I keep getting the error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java …

Member Avatar for ~s.o.s~
0
230
Member Avatar for nikk

Hi friends, I'm creating a website for my college project. I came to know that to run it through tomcat, you need to create web.xml file first. i saw the readymade file in root directory of tomcat, but could not understand, how to modify (or create) it so as to …

Member Avatar for nikk
0
111
Member Avatar for eddy556

I know I'm probably being dumb here but I cannot seem to compile a java bean. Here is my code: [code] package beans; import java.sql.*; public class example { public void test() { out.println("The bean worked"); } } [/code] I get the error: example.java:5: class Example is public, should b …

Member Avatar for ~s.o.s~
0
81
Member Avatar for nikk

I'm stuck here. Please Help me! I've created a feedback form which takes name, Email Id & Comments from users. On submit button, i want to save the entered details along with the current date to the UserDetails table, so that, when admin logs in and wants to see the …

Member Avatar for ~s.o.s~
0
91
Member Avatar for Adventa

Quick one here really, Basically there is one page with say, All Articles, When a user clicks on an article I want to go to a new page that displays the article clicked on. All I need to know is what method to use here. Should I use the link …

Member Avatar for Adventa
0
85
Member Avatar for eddy556

Hey, I'm having a problem with an if statement. I want to check if variable key and id are the same. They are both strings and when I print them to screen they certainly look the same. However when using them within an if statement it always returns false. Here …

Member Avatar for eddy556
0
171
Member Avatar for sridharp_in

Hi, My project requires, autosuggest textbox in jsp/servlets/javascript where we retrieve data from database(oracle). Thank u, Sridhar.

Member Avatar for masijade
0
64
Member Avatar for Ankita B

hi, I am making a web based application.There is a page where user can update his record. For that when user clicks on modify button on one page(page1.jsp) the corresponding record is to be displayed in textboxes corr to various fields such as name ,id etc. on a different page(page2.jsp).The …

Member Avatar for jwenting
0
76
Member Avatar for gogineni.deepth

i need to write a program which gets the entire data when i click a link in aweb page into exel sheet or into an another web page eg: i have a link ,when i click that link i get a list of names having address ,i need to get …

0
45
Member Avatar for Ankita B

Hi, Im trying to modify user information on my site.for this im using java and jsp.when the user enters id,his info stored in db is to be retrieved and displayed in corresponding textboxes. I know how to access db but dont know how to put the value retrieved into textboxes …

Member Avatar for peter_budo
0
256
Member Avatar for kittie1985

Hi! I'm trying to run a servlet from Java program. This servlet would then open a JSP page in browser. The problem is that the contents of the jsp file is showed in Eclipse console, but it doesn't show in Firefox. Could you help me plz? Sorry for my bad …

Member Avatar for ~s.o.s~
0
134
Member Avatar for Ankita B

Hi, Im trying to modify user information on my site.for this im using java and jsp.when the user enters id,his info stored in db is to be retrieved and displayed in corresponding textboxes. I know how to access db but dont know how to put the value retrieved into textboxes …

Member Avatar for DangerDev
0
80
Member Avatar for gheibia

Hi, I'm quite new to Jsp. The web server is Tomcat 6 and I have a Jsp page that uses a servlet as following code shows. [ICODE]<form name='uploadSO' method='post' encType='multipart/form-data' action='UploadUnConfirmedSOServlet' > <table width .....[/ICODE] The Jsp page is located under a folder called "Shipper" under my application's root directory: …

Member Avatar for gheibia
0
223
Member Avatar for ananda003

hi i got a problem while running a jsp file from one pc in another pc,that jsp file contains hyper link to another file when i gave [url]http://pc55/index.jsp[/url] in pc say 56 lan connection is there index page is displying but the hyper link in that page not executing please …

Member Avatar for ~s.o.s~
0
130
Member Avatar for pack

Hi I am not much experienced in JSP. I am facing one problem while printing a XML String on the screen. Code snippet -> String result = ab.returnResult(); result is returning a XML String..Suppose <A>123</A><B>SIR</B><C>21</C> I am printing -> <tr><td><%= result %></td></tr> I am getting 123SIR21 as output in the …

Member Avatar for ~s.o.s~
0
490
Member Avatar for insignia1

Hi, My enquiry involves how jsp handles graphics updates I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser. I believe a similar situation exists …

Member Avatar for jwenting
0
142
Member Avatar for shashipkiran

Sir/Madam My website has three pages. The first page is a Login Page in which all the validation takes place and if the user is a valid one it directs it to the second page. In the second page i have given a link to the third page where onload …

Member Avatar for ~s.o.s~
0
76
Member Avatar for Ankita B

Hi, I am tryin to insert values entered by user into oracle db.I am using jsp and java beans for this.request.getParameter() works fine for string parameters but what should i use for fields such as date?..thx

Member Avatar for ~s.o.s~
0
78
Member Avatar for eddy556

Hey, I have a primary JSP which inlcudes a secondary JSP which is dynamic. How do I pass parameters FROM the secondary JSP back the PRIMARY JSP not the other way around? For example I have a page which displays the output from a database. The first page is just …

Member Avatar for ~s.o.s~
0
69
Member Avatar for shashipkiran

Can anyone tell me the code to refresh a JSP page onload...? <meta http-equiv="refresh" content="1"> I have used this code and this keeps on refreshing the page every second. But i just want it once...Pls help me...?

Member Avatar for shashipkiran
0
98
Member Avatar for Spartan552

Hi! [QUOTE] Date now = new Date( System.currentTimeMillis() ); SimpleDateFormat sdf = new SimpleDateFormat( "dd/MM/yyyy hh:mm:ss" ); String snow=sdf.format( now ); out.println( snow );[/QUOTE] prints [QUOTE]07/02/2008 03:22:32[/QUOTE] but when I'm trying to send a query involving 'now' string that contains the datetime, I get this on the sql database [QUOTE] …

Member Avatar for masijade
0
52
Member Avatar for electron33

Hi. I have a little problem. i tries to connect to a datasource defined in Tomcat context. But when i run the jsp page i got an error telling that the driver i not found. I'm using the mysql jar 5.0.x whitch i have placed under Catalina common lib folder …

Member Avatar for electron33
0
101
Member Avatar for vedmack

Hi I have built a web site using Struts/Tiles... in one of the tiles i got iframe in which I load a XML file from the server like this <iframe name="showXml" frameborder="no" src="filename.xml" width="100%" height="100%" ></iframe> the problem is that after I'm updating the file in other Tile (and the …

0
56
Member Avatar for eddy556

I'm having problems performing math in JSP. I have a line: double percentage = (useful / nonuseful) * 100; which is giving me an error, how do I fix this? Thanks

Member Avatar for eddy556
0
105
Member Avatar for paurik

ERROR: All the code compiles without any errors or warnings. On Calling the native method FindOs from Java code, i get the following error: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1026f8e0, pid=3484, tid=2192 # # Java VM: Java HotSpot(TM) …

0
53
Member Avatar for joyeetadeb85

Hello everyone...i am new to this community, and also a first time user of jsp... I have to complete, and make some modifications in a particular project (made by someone else), which has been made in JSP. I have to add a textbox, followed by a button (with the label …

Member Avatar for iamus
0
72
Member Avatar for eddy556
0
47
Member Avatar for hani1987

hello I am a BE computer student and needed information for my BE project. The project is as follows We are developing a web application for a company. This involves setting up a wi-fi hotpot for the company. So whenever a user enters the wi-fi area , he should be …

Member Avatar for electron33
-1
80
Member Avatar for shiyamala

Hi i know hw to read the textfile using filereader and stringtokenizer used to split the data into token,now i want to know hw to assign the readed value into vector and display it in to the jsp. anybody can help me. thankyou [code=JAVA]import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import …

Member Avatar for electron33
0
135
Member Avatar for wolverine_ramir

i don't know how to discuss it clearly but i'll try.. my problem is when my index page loads, the current value of my variable year is null.. so it displays the word null.. ahm, only if i click the submit button that's the time that a value is inserted …

Member Avatar for electron33
0
92
Member Avatar for usman.munir

Hi, I am using a simple code to retrieve values from database. but i am getting error while i retreive an Integer value on line number 3 , 4 5. [CODE] <% line1 while(rs.next()){ line2 String productname = rs.getString(1); line3 int productprice = rs.getInteger(2); line4 int cartid =rs.getInteger(3); line5 int …

Member Avatar for usman.munir
0
94
Member Avatar for Ankita B

hi, im making login page using jsp.user names and password entered are matched wit the db. have placed db connection code in a java classlogin.java...The directory path is webapps->myfolder->all jsp and html files webapps->myfolder->WEB-INF->classes->test->login.java I entered the url in browser also perfectly fine..[url]http://localhost:8085/myfolder/mainpage.jsp[/url] i set the PATH and CLASSPATH variables …

Member Avatar for ~s.o.s~
0
180
Member Avatar for durahman

I am doing the following process using forms and javabeans: 1. User enter data using a HTML form 2. The form is submiited to form handler for validation using Java bean. 3. If validation is ok data will be inserted into the appropriate table. When tested data entry and validation …

Member Avatar for ~s.o.s~
0
171
Member Avatar for raheleh

How can hide the menu bar ,address bar with javascript in ie7.i have the code and used in ie6 but it doesn't work in ie7

Member Avatar for masijade
0
107
Member Avatar for eddy556

I've got this code which seems right but I keep getting: An error occurred at line: 19 in the jsp file: /viewFAQ.jsp Syntax error, insert "AssignmentOperator Expression" to complete Assignment where the lines involved are: [code] 16: String key = request.getParameter("edit"); 17: ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE …

Member Avatar for peter_budo
0
86
Member Avatar for maulee

hello friends,I want to use simple Java Beans in Struts Architecture..can we use simple beans with struts?

Member Avatar for maulee
0
53

The End.