Forum: JSP 29 Days Ago |
| Replies: 4 Views: 630 Obvious, you never pass any values to SimpleBean for processing. |
Forum: JSP Nov 14th, 2009 |
| Replies: 3 Views: 499 That is funny because in my book on pg.81 is something like this (http://books.google.com/books?id=15wp6fmAy4sC&lpg=PT889&dq=d%20first%20servlets%20%26%20JSP&pg=PT113#v=onepage&q=&f=false) ;)
And... |
Forum: JSP Nov 14th, 2009 |
| Replies: 3 Views: 499 You should have developing environment set specifically for this, as loose files that can be tolerated for small desktop development are bad idea in web development
When you compile you need to... |
Forum: JSP Nov 12th, 2009 |
| Replies: 3 Views: 521 Modified what exactly and what is not working? Provide full description and any related errors you receive. We are not mind readers here to know what is happening on your side... |
Forum: JSP Nov 11th, 2009 |
| Replies: 3 Views: 521 First part yes, second part no and yes (principle of connection with DB is same for all just connection string does vary) but answer is here (http://www.daniweb.com/forums/thread141776.html) if you... |
Forum: JSP Nov 10th, 2009 |
| Replies: 1 Views: 614 1) Learn more about Java web development, these days people do not use out.print to display HTML tags
2) Divide your code in according to Model-View-Controller
3) Have look on good tutorial, like... |
Forum: JSP Oct 26th, 2009 |
| Replies: 3 Views: 398 If Tomcat been installed through IDE it may have assign different port then 8080 or 80. Check it with server.xml file that is inside conf folder of your Tomcat directory |
Forum: JSP Oct 13th, 2009 |
| Replies: 3 Views: 572 Edit: Ignore this, masijade already spotted error
First check your name spelling for tables and columns used if you have any spelling mistakes (can check it as you failed to provide database or... |
Forum: JSP Oct 12th, 2009 |
| Replies: 6 Views: 643 Depends on the type of installation package you choose. If you go for windows installer you loosing capability to use your instance of Tomcat with IDE(Eclipse, NetBeans, IntelliJ IDEA) as this... |
Forum: JSP Oct 11th, 2009 |
| Replies: 6 Views: 643 You would have to set path to tomcat for the command to be recognised in similar manner to what you did with Java so now you can call "java" or "javac" commands.
To start Tomcat without need of... |
Forum: JSP Oct 11th, 2009 |
| Replies: 2 Views: 539 You got general direction of the wind that files that you wish to deploy should be placed in webapps folder, unfortunately it is not full truth.
You need to provide your "ch" folder with minimal... |
Forum: JSP Sep 20th, 2009 |
| Replies: 4 Views: 465 It is not 100% bullet-proof solution, but it was intended as kick-off example as we been little tired of continues request "how do I connect JSP to database" or similar. Glad you found it useful. |
Forum: JSP Sep 20th, 2009 |
| Replies: 4 Views: 465 1. Post num 10 (http://www.daniweb.com/forums/thread215826.html) is something what you may want to have look at
2. create empty index.html (*.jsp) with meta tag for redirect in one second that... |
Forum: JSP Aug 25th, 2009 |
| Replies: 2 Views: 476 Without coding it is difficult advice... |
Forum: JSP Aug 25th, 2009 |
| Replies: 3 Views: 572 |
Forum: JSP Aug 25th, 2009 |
| Replies: 3 Views: 572 Sorry I do no see logic in what you trying to do. Redirect is for giving up current document and moving on next one and not holding on old location.
Will you explain what you are up to? |
Forum: JSP Aug 21st, 2009 |
| Replies: 1 Views: 448 Move that code to servlet, where it actually belong to, and in doing so you will enable yourself for better debugging. |
Forum: JSP Aug 20th, 2009 |
| Replies: 6 Views: 664 All 3 IDEs that I mentioned are very good. My preference is IntelliJ and I do not like Eclipse (GUI seems to be messy and configurations are over done, too many options equals too many chances to get... |
Forum: JSP Aug 20th, 2009 |
| Replies: 6 Views: 664 Eclipse, NetBeans, IntelliJ IDEA
Difficult to judge performance. In these days it is more matter of personal preferences. |
Forum: JSP Aug 5th, 2009 |
| Replies: 3 Views: 430 That is what I suspected, but did not want to feel you bad if I ask directly "did you included all libraries and put them in right place?" some people lately take it as rude
PS: You should also... |
Forum: JSP Aug 5th, 2009 |
| Replies: 3 Views: 430 Can you list resources as their are organized on the server like
PROJECT_FOLDER
JSPs (files)
WEB-INF (folder)
lib (folder)
web.xml (file) |
Forum: JSP Jul 28th, 2009 |
| Replies: 3 Views: 691 You can do it through one of the meta tags inside the head block of html document. This will redirect user in 1 sec to next page. So if you leave it empty visitor should hardly notice
<meta... |
Forum: JSP Jul 22nd, 2009 |
| Replies: 3 Views: 22,746 For single parameter you will use getParameter(java.lang.String name). If you look just few lines below this method in ServletRequest API you will see getParameterValues(java.lang.String name)... |
Forum: JSP Jul 22nd, 2009 |
| Replies: 3 Views: 596 The radio buttons that select/deselect have to by member of same group that is declared through name. As you are giving each radio current value of "i" they cannot be grouped.
Simple example
... |
Forum: JSP Jul 21st, 2009 |
| Replies: 3 Views: 596 You should get back to basics of HTML. Simple example here (http://w3schools.com/html/tryit.asp?filename=tryhtml_form_radio) |
Forum: JSP Jul 11th, 2009 |
| Replies: 15 Views: 1,538 The answer can be found in sticky post (http://www.daniweb.com/forums/thread141776.html) of JSP section |
Forum: JSP Jul 3rd, 2009 |
| Replies: 5 Views: 739 Would you care to share your solution for benefit of others? |
Forum: JSP Jun 29th, 2009 |
| Replies: 3 Views: 477 I'm sorry to say, but you have no idea of basic Java-database communication. For general info on Java web application and database communication have look at this example... |
Forum: JSP Jun 16th, 2009 |
| Replies: 11 Views: 744 |
Forum: JSP Jun 16th, 2009 |
| Replies: 11 Views: 744 You been asked by number of our members to also include any relevant coding. This is missing and without it there is little hope somebody will attempt to help you... |
Forum: JSP May 19th, 2009 |
| Replies: 5 Views: 682 Logic of the above for loop is completely of the hook
Can be done simply as
for (int i = 0; i < numbers.length; i++)
{
if (i+1 == numbers.length){
//DO SOMETHING SPECIAL LIKE... |
Forum: JSP May 14th, 2009 |
| Replies: 5 Views: 682 Consider that numbers.length returns 5. That stands for
numbers[0]
numbers[1]
numbers[2]
numbers[3]
numbers[4]
Is this enough or you want other explanation? |
Forum: JSP May 5th, 2009 |
| Replies: 12 Views: 69,315 Nice attempt, but post is 2 years old... |
Forum: JSP Apr 28th, 2009 |
| Replies: 4 Views: 2,817 Direct connection to database from JSP!!!!!!!!!!! :'( :'( :'(
Please have look at this sticky post JSP database connectivity according to Model View Controller (MVC) Model 2 ... |
Forum: JSP Apr 2nd, 2009 |
| Replies: 13 Views: 1,910 Please have look at this thread JSP database connectivity according to Model View Controller (MVC) Model 2 (http://www.daniweb.com/forums/thread141776.html) for database connectivity |
Forum: JSP Apr 1st, 2009 |
| Replies: 13 Views: 1,910 As far as I know JavaScript is not able to access & communicate with any database directly. AJAX is able to do so, but then you would have to learn that. Why you want to connect from JSP to database... |
Forum: JSP Mar 30th, 2009 |
| Replies: 13 Views: 1,910 As already stephen said you cannot pass JavaScript stored variables to another JSP.
PS: Would be nice if you start using full sentence English, as the above is against forum rules |
Forum: JSP Mar 29th, 2009 |
| Replies: 13 Views: 1,910 If you share with us how you we may share with you how to pass it to next page |
Forum: JSP Feb 22nd, 2009 |
| Replies: 8 Views: 16,177 You have to have installation of Java (http://java.sun.com/) and Tomcat (http://tomcat.apache.org/) on your machine. Tomcat should be setup either as in this simple example... |
Forum: JSP Feb 20th, 2009 |
| Replies: 3 Views: 1,978 Is there something wrong with JSP database connectivity according to Model View Controller (MVC) Model 2 that is at the top of JSP section, you can view it here... |