736 Posted Topics

Member Avatar for sm3128
Member Avatar for babusek

@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.

Member Avatar for stephen84s
0
148
Member Avatar for leki

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 …

Member Avatar for leki
0
161
Member Avatar for mahaboob Basha

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 …

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

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]

Member Avatar for ~s.o.s~
0
176
Member Avatar for pokahantos

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. …

Member Avatar for pokahantos
0
165
Member Avatar for larryperl

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 …

Member Avatar for javaAddict
0
111
Member Avatar for mahaboob Basha

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 …

Member Avatar for peter_budo
0
1K
Member Avatar for vivek_web

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.

Member Avatar for ndtreviv
0
180
Member Avatar for cybernaut09

[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 …

Member Avatar for stephen84s
0
122
Member Avatar for rajshree13

Simple don't perform any authentication, since you want anyone and everyone to be able to access the page !!!

Member Avatar for rajshree13
0
67
Member Avatar for BestJewSinceJC
Member Avatar for BestJewSinceJC
0
157
Member Avatar for pasu
Member Avatar for jackiejoe

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.

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

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.

Member Avatar for angelfires
0
133
Member Avatar for stevom

@stultuske I think you misunderstood him, with the above question he wants to test our OOP skills :twisted:

Member Avatar for stultuske
-1
116
Member Avatar for xyzt

Are you sure you have used the combination of slf4j-api.jar+slf4j-simple.jar correctly ??

Member Avatar for stephen84s
0
91
Member Avatar for LAPIII

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.

Member Avatar for ~s.o.s~
0
150
Member Avatar for antaryami

[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.

Member Avatar for stephen84s
0
223
Member Avatar for king_khan

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.

Member Avatar for stultuske
-1
74
Member Avatar for the_swan
Re: kk

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.

Member Avatar for stultuske
-2
100
Member Avatar for britto

[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 …

Member Avatar for stultuske
0
167
Member Avatar for dnmoore

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 ????

Member Avatar for dnmoore
0
97
Member Avatar for Fedail

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.

Member Avatar for stephen84s
0
84
Member Avatar for dnmoore
Re: GUI

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 …

Member Avatar for dnmoore
0
118
Member Avatar for BhaBy AdiK

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.

Member Avatar for stephen84s
0
53
Member Avatar for nabilchampion

[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 !!!

Member Avatar for ithelp
0
164
Member Avatar for complexcodes

@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.

Member Avatar for BestJewSinceJC
0
573
Member Avatar for praveeny

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.

Member Avatar for stephen84s
0
97
Member Avatar for eresh.leo

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.

Member Avatar for eresh.leo
-1
125
Member Avatar for ndeniche

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 …

Member Avatar for Ezzaral
0
105
Member Avatar for RahulV

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] .

Member Avatar for RahulV
0
297
Member Avatar for Koldsoul

[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 …

Member Avatar for Koldsoul
0
149
Member Avatar for johanna26

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 !!!

Member Avatar for MoZo1
0
119
Member Avatar for radhika_kodam

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].

Member Avatar for stephen84s
0
141
Member Avatar for myjobs.home

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 ?

Member Avatar for stephen84s
0
38
Member Avatar for lastmoh1989

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

Member Avatar for stultuske
0
174
Member Avatar for sanwanion

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]

Member Avatar for sbhavan
0
82
Member Avatar for shijunair

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 …

Member Avatar for peter_budo
0
1K
Member Avatar for mangel.murti

Have you tried connecting to a database via a Normal Java program before jumping to Servlets ???

Member Avatar for stephen84s
0
158
Member Avatar for lordx78

[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 …

Member Avatar for lordx78
0
118
Member Avatar for redflame777

[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] …

Member Avatar for redflame777
0
106
Member Avatar for shijunair

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"> …

Member Avatar for shijunair
0
239
Member Avatar for faranak

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. …

Member Avatar for peter_budo
0
77
Member Avatar for clueless101

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 …

Member Avatar for VernonDozier
0
174
Member Avatar for cproud21

[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

Member Avatar for stephen84s
0
216
Member Avatar for PRob99

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 …

Member Avatar for kingvjack
0
165
Member Avatar for comsec

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 …

Member Avatar for peter_budo
0
627
Member Avatar for Punkis448

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 …

Member Avatar for Punkis448
0
2K
Member Avatar for suganth

<EDIT>: Sorry guys mixed up my tabs in firefox, post was meant for "Pdu to text..." thread in Java forum

Member Avatar for peter_budo
0
156

The End.