35,618 Topics
![]() | |
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 | |
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 … | |
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. … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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? | |
[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.<init>(Unknown … | |
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? | |
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 … | |
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 … | |
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. … | |
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]/* … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.