• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 41878
909
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic