 |
| JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 28th, 2003, 05:03 PM
|
|
Registered User
|
|
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Need help getting started
Hi,
I am completely new to Java, and have got as far as writting the "hello world" jasp page. When I open the index.jsp file, the "Hello world" is displayed, but the JAVA part is not calculated.
The page displays:
Hello World
2 + 2 is ${2+2}
When I want it to display:
Hello World
2 + 2 is 4
Can anyone help? Do I have the path file wrong? I am using j2sdk-1_4_1_05, but I do not know which file within the main folder I need to include on the path directory.
Please help this newbie!
Thanks
Kizmit
|
|

September 28th, 2003, 11:43 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Make sure you're using Tomcat 5.0 or greater, as Tomcat 5 is JSP2.0 complient, while older 4.x versions are not, and don't support the Expression Language as the book shows. Tomcat 5.0.9 is in beta right now (I believe), working well for me. Good luck, and have fun with JSP2.0!!
|
|

September 29th, 2003, 04:32 PM
|
|
Registered User
|
|
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I also am new to JSP, and am having exactly the same problem. I am using Tomcat 5.0. Also, when I tried to find the title "Beginning JSP 2.0" in the Book List, so I could download examples and errata, I did not find the title in the list. Am I overlooking it, or does it show up under a different name?
|
|

October 1st, 2003, 12:12 PM
|
|
Registered User
|
|
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm all up and running now (Using Tomcat 5.0.12).
Thanks very much for your help.
:D
|
|

October 1st, 2003, 07:35 PM
|
|
Registered User
|
|
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Kizmit -
Did simply upgrading to Tomcat 5.0.12 fix your problem? I am on 5.0.12, and I cant get the $(2 + 2) to work for me. If I use the <% ~~~%> notation it works fine, but not the $(~~) notation.
|
|

October 5th, 2003, 11:02 AM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
av8rtrb - Think I see your problem....the syntax is "${" <--curly brace, not parenthesis.....as in <DollarSign><LeftBrace>2+2<RightBrace>. This should work.
|
|

October 5th, 2003, 04:39 PM
|
|
Registered User
|
|
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Av8rtrb,
Yes the updated version completely solved my problem (although i can't start tomcat from the short cut - have to go through c:\programs etc)
If you are using these brackets ( ) instead of these brackets { } then it will not work - see hatleyt's post.
|
|

October 5th, 2003, 06:11 PM
|
|
Registered User
|
|
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
That was indeed the problem. Sorry for not paying attention!
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Getting Started |
ColinWatt |
BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 |
1 |
November 7th, 2008 02:08 AM |
| Getting Started? |
seananderson |
Reporting Services |
0 |
August 3rd, 2007 07:45 AM |
| Getting Started |
st3ve |
Javascript How-To |
1 |
February 3rd, 2005 08:49 PM |
|
 |