• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Netbeans & Tomcat

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to learn jsp's using the head start books
with the netbeans ide. In my options under browser,
I've tried everything from Swing HTML browser to
Mozilla. For some reason the app can't find the jsp.
Is there some setting somewhere I need to make.
Is this the correct forum? I'm on windows using
NB 5.0.

Any ideas?

Thanks,
John
 
author & internet detective
Posts: 42056
926
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
John,
Welcome to JavaRanch! Yes, this is the correct forum. I haven't used NetBeans so I'll leave this question for someone who has.
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post an example of your jsp page in your web app?
 
John Gregory
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Michael,

Here's the jsp I'm using. It's straight from the book:

&%@ page import="java.util.*" %>"

&!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">;

&html>
&body>

&h1 align="center">Beer Recommendations Page</h1>
&%
List styles = (List)request.getAttribute("styles");
Iterator it = styles.iterator();
while (it.hasNext() ){
out.print("
try sampling: " + it.next() );
}
%>
&/body>
&/html>

I don't think I mentioned it, but I'm using the bundled version
of Tomcat with Netbeans. I figure it's just a setting somewhere,
but not sure where.

Thanks,

John
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic