35,618 Topics

Member Avatar for
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
123
Member Avatar for alejalv

hi, i was given this project to do in my java class but i dont exactly know what i have to do.... i understand that i need to create 2 classes, point that extends pair and labeledpoint that extends point.... but i have no idea what else the professor wants …

Member Avatar for VernonDozier
0
176
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
87
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
121
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
82
Member Avatar for crabs_crab

I Want To Make Programme Such That I Make The Programme In Two Sockets One For Client Other For Server, A Server Establish A Connection With The Client, Then Client Has To Enter Username Either John Or Jammi Then The Password For The Username Any Of The Above, Please Tell …

Member Avatar for jwenting
0
101
Member Avatar for Noliving

Alright basically I have an assignment due at 11:59 pm tonight and so I would appreciate all the help I can get. I have code that I wish for those to look over and see if its correct I also have a question about some of the questions and whether …

Member Avatar for Noliving
0
229
Member Avatar for srinivasrk

I am developing one intranet application. i want to get the windows login username to log into my application. because i want to check whether the same user is logging into the application or not. i worked on using req.getRemoteUser() but it is returning null. i am using the server …

Member Avatar for stultuske
0
394
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
140
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
114
Member Avatar for Ankita B

Hi, I have written a piece of code to add site for my web based application.If the site entered is already present then flag should be false and it should exit from function. If new site id is not present in db then flag should be true and addtion must …

Member Avatar for stultuske
0
144
Member Avatar for roqval

Hi all I am getting the output is a completely black image/ anyone know how to fix it... please here is the subject and java and classes in zip file . thank you Image processing is done in two general ways: scalar processing, by treating each colour plane as an …

0
47
Member Avatar for neelunova

I am using itext to create a pdf file for slovakia in java ,and after the pdf is created some characters are not displayed properly.I am using cp 1250 as charecter set and ARIALUNI.TTF file for font.How do i resolve the problem?

Member Avatar for neelunova
0
81
Member Avatar for Danii

can someone give me example of what this means Define the addSortedData method such that it adds the dataAdd argument to the list in the proper sorted location according to ticker symbol. If a company is already in the list with this ticker symbol, it is not added. There can …

Member Avatar for jwenting
0
103
Member Avatar for Grantmitch1

Hello Daniweb community, I am and probably will always be amazed at Java. I was just wondering where did people learn Java... I was thinking about taking it up in my spare time to learn Java, and as a college student its not like I dont have plenty of spare …

Member Avatar for majestic0110
0
89
Member Avatar for jatin29

hi ..problem in uploading image..using servlet to upload image in mysql..use html form so user given the path of image..but giving error.here is the code..help me on this. import java.sql.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class LoadImage extends HttpServlet{ public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException …

0
80
Member Avatar for toshibata

So i did my code, he asks for the string then i put it, then he tells me what string i put in but for some reason i dont understand he doesnt show the capitalized first letter for each word coverted string. Here is my code: import java.io.*; public class …

Member Avatar for stultuske
0
102
Member Avatar for kilermage

I need help on these errors I get, I don't know how to fix them. Can someone help me please. [B]errors:[/B] theiving.java:6: <identifier> expected public void theiving(playerId) { ^ theiving.java:8: illegal start of expression public int stealtimer; ^ theiving.java:143: illegal start of type if ((c.objectID == 4462)) ^ theiving.java:143: <identifier> …

Member Avatar for stultuske
0
155
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
108
Member Avatar for Samudricka

[CODE] E:\CatalinaHome\webapps\axis\samples\userguide\example3>java org.apache.axis.cli ent.AdminClient deploy.wsdd - Processing file deploy.wsdd - Exception: AxisFault faultCode: {http://xml.apache.org/axis/}Server.userException faultString: java.net.ConnectException: Connection refused: connect faultActor: null faultDetail: stackTrace: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.&lt;init&gt;(Unknown …

0
61
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
63
Member Avatar for edchabz

I thought I knew what I was doing but I obviously don't. I have to make a file that takes numbers that the user inputs and converts them into fractions. I have most of the work done. I have constructors and return methods that create fractions and change some numbers …

Member Avatar for edchabz
0
103
Member Avatar for CaffeineCoder

I'm getting an error message below and can't figure out why. The message is as follows: Exception in thread "Thread-3" java.lang.StackOverflowError at java.awt.geom.Ellipse2D$Float.getX(Ellipse2D.java:92) at java.awt.geom.EllipseIterator.<init>(EllipseIterator.java:25) at java.awt.geom.Ellipse2D.getPathIterator(Ellipse2D.java:405) at java.awt.geom.Path2D$Float.<init>(Path2D.java:215) at java.awt.geom.Path2D$Float.<init>(Path2D.java:190) at sun.java2d.pipe.LoopPipe.fill(LoopPipe.java:249) at sun.java2d.pipe.LoopPipe.fillOval(LoopPipe.java:123) at sun.java2d.SunGraphics2D.fillOval(SunGraphics2D.java:2158) I'm getting this on the specified line of the code below (`explosion[i].paintSprite(g);`). If …

Member Avatar for CaffeineCoder
0
245
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 karinmorena

I have been trying to work on this calculator for a while and I need help. I'm getting "12" errors. I'm very new at this and I really need the help of someone that can please take the time to explain what I'm doing wrong. I would really appreciated. [CODE]/* …

Member Avatar for karinmorena
0
332
Member Avatar for eddy556

I have a JSP which inserts date into a MS Access database. But I keep receiving the error: 24: statement.executeUpdate("INSERT INTO Questions WHERE ID ='"+ID+"'(\"Question\", \"Answer\", \"Timestamp\", \"Author\", \"Customer_Useful\", \"Customer_NotUseful\") VALUES ('"+Question+"','"+Answer+"','this has been updated','"+Author+"','0','0')"); I have checked and checked all the values are there and correct and that the …

Member Avatar for masijade
0
403
Member Avatar for Noliving

Basically is this my test file for some reason is just giving me problems and so I'm currently in the moment trying to correct the problem. I'm also trying to beat a deadline tonight that would give me 20% EC on this assignment. What I need is for someone to …

Member Avatar for javaAddict
0
142
Member Avatar for Aman0711

Hi All, I am in a real confused state. I am graduating next month and my masters was mostly concentrated on theoretical concepts of software engineering. So I didnt get much chance to hone my programming skills. I have done java for few months back in india.. now I dont …

Member Avatar for Aman0711
0
90
Member Avatar for Javaman31

just in case someone does not know what mode is it is the number that appears most in a set of numbers The output of the following program is messed up( not just the mode but other parts of it too). It compiles but the output is not right. Her …

Member Avatar for stultuske
0
92

The End.