736 Posted Topics
Re: Would you please care to elaborate more on that ? | |
Re: @babusek This is your twentieth post and still you have not used code tags. Are you just plain ignorant to not go through the Community rules or the Announcements or at least observe how other posters post in the forum. | |
Re: My first suggestion would be do not this task inside a JSP. JSPs are only for making your user interface, the processing i. e. your "scp" should be inside a Java class. Second suggestion is instead of scp /sx04a1/jakarta-tomcat-5/webapps/maltixa/index.jsp jipbekok@fff04.ff.ff.es:/sx04a1/jaka...ixa/index5.jsp [/code] give it the absolute path of the "scp" binary … | |
Re: So where are you encountering a problem ?? We are not Psychics to know what output you are getting on your computer screen. Tell us the problem in clear words and we will see what is going wrong. Also in the first servlet:- [code=java] if(rs.next()) { mobileno=rs.getString("mobileno"); password=rs.getString("password"); [/code] why … | |
Re: Honestly I do not see anything of JSP in your page, just Javascript. And following is what you can use to encode your field [code=javascript] var encoded_data = escape("<string_data_to_encode>"); [/code] | |
Re: Can you show me the code of the page where your text field is located. Have you set the default value for your text field to a blank string i. e. (""). In that case the check for (!= null ) would fail even if your text field was blank. … | |
Re: Do not connect to databases directly from within a JSP. Please check out [URL="http://www.daniweb.com/forums/thread141776.html"]this[/URL] tutorial for how exactly your web application code must be organized. Plus another suggestion, all your code should be in one try block rather than multiple try / catch blocks. Cause in the current situation even … | |
Re: As far as your problem goes you need to put a "where" clause in your select query like this:- select password from newuser where mobileno='<the value that you got in your request>' So your "while" will be entered only if the mobile no is valid (and if valid give you … | |
Re: Do not perform database connectivity from a JSP directly. Read [URL="http://www.daniweb.com/forums/thread141776.html"]this[/URL] thread first and learn from it on how to organize you web applications, Then ask our help. | |
Re: [QUOTE=cybernaut09;695648]The code worked when I did this instead of what written above [code]public boolean isValid(){ valid=false; //let by default if((username != "")&&(password != "")) { valid=true; ........[/code][/QUOTE] I do not see any difference between this code and what you have written above for the isValid() method. Also I don't think … | |
Re: Simple don't perform any authentication, since you want anyone and everyone to be able to access the page !!! | |
| |
Re: So that you can Spam them .... Nice try. | |
Re: Well you need to use the [icode]request[/icode] object in JSP to retrieve form data. The [icode]request.getParameter("<element-name>")[/icode], should get you the values of the respective elements in your form. | |
Re: Well heres one I had come across a while ago : [URL="https://launchpad.net/jeftpd"]JeFTPd[/URL] (Java Embeddable FTP Server). I think it appears to be what you are looking for, but it is still in experimental stage. | |
Re: @stultuske I think you misunderstood him, with the above question he wants to test our OOP skills :twisted: | |
Re: Are you sure you have used the combination of slf4j-api.jar+slf4j-simple.jar correctly ?? | |
Re: You need to explain what you plan to do first, we cannot just blindly recommend one over the other without knowing what you plan to do with it. And honestly speaking you need to learn how to ask questions in a forum. | |
Re: [QUOTE=i262666;731645]Look at this site [url]https://cajo.dev.java.net/[/url][/QUOTE] This thread is more than a year old, most probably the thread starter has already solved this problem. | |
Re: Sounds more like an School/College Assignment question . . . which almost every other book in Java answers, but you do not want to take the effort reading it. | |
Re: This is ridiculous. Creating a new thread just for ... the sake of creating it !!! Took me little effort to stop short from giving you a RED. | |
Re: [URL="http://wiki.netbeans.org/WorkingWithNetBeansSources"]This[/URL] link should help you in getting NetBeans IDE sources and explain how to work with them. A C Compiler would be an external application, so for invoking it you will need to use the Runtime class and process the output, Sorry had mixed it up with JNI when I … | |
Re: I tried your code by running it (with a few changes like extending JFrame instead of JPanel, adding a main to make it run as a stand alone), and it worked. Its converting the temperature correctly when I click on the buttons also. So whats the problem ???? | |
Re: The [URL="http://tomcat.apache.org/"]Tomcat[/URL] web server is what you will need to run JSPs and Servlets (for starters at least). It also comes bundled with quiet a few sample applications which you can check out . Also [URL="http://coreservlets.com/"]here[/URL] is a nice site you can look at for help. | |
Re: Your button "output" doesn't work cause you haven't added an ActionListener for it like your JTextField Also you have just one JButton object named "output" and you are first initializing here :- [code=java] output = new JButton ("Convert to Celsius: "); [/code] and then overwriting it a few lines below … | |
Re: Do not connect to a database directly from within a JSP Page. Look at [URL="http://www.daniweb.com/forums/thread141776.html"]this[/URL] thread for more information. | |
Re: [QUOTE]make reverse engineering diagrams of java code..like uml/sequence digs[/QUOTE] I think Netbeans can do that, I have used it to generate class diagrams from code a few times. [QUOTE]explanation of the code[/QUOTE] Sounds like you trying to copy someone else's work !!! | |
Re: @complexcodes Seems like you are confused in using CODE tags use [ CODE=java] and [ /CODE ] (without the spaces between CODE and brackets)to cover your java code. | |
Re: Ever tried the [URL="http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#getDate(int)"]getDate()[/URL] method of [URL="http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html"]ResultSet[/URL], It would give you a [URL="http://java.sun.com/javase/6/docs/api/java/sql/Date.html"]java.sql.Date[/URL] object from the date in your MySQL table. Extracting Month,Year and Day from it should be trivial then. | |
Re: Well welcome to the World of Software Development then, and as far as JSP/Servlets basics are concerned if you would have just look a couple of threads below is a thread mentioned [URL="http://www.daniweb.com/forums/thread144988.html"]JSP How to Start[/URL]. That should help you get your basics up in JSPs and servlets. | |
Re: Well some of the conditions which could influence you use whether AWT or Swing are:- [LIST=1] [*]Eye Candy, Swing really gives you a lot more features when it comes to Eye candy, you can change the look and feel, add icons to buttons etc, which AWT would never allow [*]Second … | |
Re: Try creating a hidden field in your form with the name "tid" and assign it the value you wish it to hold and then set the action field of the form to only [url]http://localhost/rentry.asp[/url] . | |
Re: [QUOTE]My main issue is how to determine if the next character in the file is a string or integer or special symbol.[/QUOTE] Thats exactly the reason why Ezzaral suggested using Regular Expressions. If you would have simply googled for "[URL="http://www.google.co.in/search?q=Regular+Expressions+in+Java"]Regular Expressions in Java[/URL]" you would have found [URL="http://java.sun.com/docs/books/tutorial/essential/regex/"]this[/URL] excellent tutorial … | |
Re: Hmmm........ So you wish to extract the code of this applet and show of to others as your own. I do not think any one will be too enthusiastic to help you on that !!! | |
Re: Amazing I found the exact problem solved right [URL="http://www.daniweb.com/forums/announcement9-2.html"]here[/URL] and then you may look [URL="http://java.sun.com/docs/books/tutorial/java/javaOO/classes.html"]here[/URL] and [URL="http://www.maths.abdn.ac.uk/~igc/tch/mx3015/notes/node50.html"]here[/URL]. | |
Re: Well for that we need to know your skills , what are you good at, which domain are you looking for a project in etc... Also there are quite a few threads with similar topics, have you searched these forums and taken the look at them ? | |
Re: Did you read this forum : [url]http://www.daniweb.com/forums/forum72.html[/url], you could check if anyone there wants someone on a per project basis like as an intern or something | |
Re: The place you start obviously is:- [url]http://tomcat.apache.org[/url] And the first place to look for documentation is :- [url]http://tomcat.apache.org/tomcat-6.0-doc/index.html[/url] | |
Re: Peter's query would give you three rows each row indicating how many leaves left of that particular type for the given employee. From your posts .. even the last one I feel you needed that. However in case you just need the total number of leaves left for an employee … | |
Re: Have you tried connecting to a database via a Normal Java program before jumping to Servlets ??? | |
Re: [QUOTE=lordx78;701418][B]Eclipse IDE for Java Developers[/B] (85 MB) [B][COLOR="Red"]Vs[/COLOR][/B] [B]Eclipse Classic 3.4.1[/B] (151 MB) Just wanted to know. Please advise.[/QUOTE] They both are almost the same, Just the difference is that the "Eclipse IDE for Java Developers" as the name suggests comes with plugins for Java development only, whereas the Classic … | |
Re: [code=java] public static void main( String args[] ) { public String productName; // product name public double number; // product item number public double units; // number of units in stock public double price; // price per unit public double value; // total value of all units in stock [/code] … | |
Re: You **have not** pasted the code which is causing the problem or just displaying one record. Right now I am just shooting in the dark here and assuming the problem lies in this piece of code, if it is inside the while loop :- [code=html] <input type="text" name="id" value="<%=id%>" size="4"> … | |
Re: Wrong forum, this is JAVA, If you would have cared to look there is a separate [URL="http://www.daniweb.com/forums/forum117.html"]Javascript forum[/URL] in the Web Development section. Now as far as your problem goes, "+" is a concatenation operator (if the first operand is a String) in Javascript. So [icode]a+b[/icode] would concatenate the two. … | |
Re: Thats cause "names" is an Array of String objects and not a String itself. If you need to display the contents of "names" use a loop like:- [code=java] for(int i=0;i<names.length;i++) { System.out.println(names[i]); } [/code] BTW you seriously need to learn how to indent your code, [URL="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html"]this[/URL] should help you get … | |
Re: [QUOTE=masijade;697360]Use code tags please. And post the entire and complete compiler messages and/or exceptions you are getting.[/QUOTE] I guess you forgot to mention relevant code this time too. . . . . :P | |
Re: Thats cause you are doing a [icode]grade++;[/icode] near the end of your loop. Try entering -2 and it should stop. But I do not see any point in [icode]grade++;[/icode] being there since you are anyways going to overwrite it with [icode]grade = input.nextDouble();[/icode] on the next iteration. And please use … | |
Re: This is more of an HTML question rather than a JSP question, You have to add the parameter [icode]selected="selected"[/icode] for the Option element you want to be selected by default. An example is as follows:- Consider you combobox has four elements Volvo, Saab, Fiat and Audi and you want Fiat … | |
Re: Check what encoding you have set for your web page, If it is Latin 1 (ISO-8859-1) then the Greek characters will not be displayed. You could check for without touching you code by browsing to your page and then (in Firefox 3) go to View -> Character Encoding and select … | |
Re: <EDIT>: Sorry guys mixed up my tabs in firefox, post was meant for "Pdu to text..." thread in Java forum |
The End.