> 1) does anyone know a good book to better learn how to use beans?

Just use them. No books needed. the best thing is to start createing almost
all your classes as beans. You don't need a specific reason to create a
bean. You need a very good reason to create a class that's not a bean. (IMO)

> 2) will basic writeUTF's to a flatfile in JSP through a ton of security
> exceptions or does JSP let you write files onto the server?

Normally: No problem. You can change the policy of the JVM that's running
your JSP, but in the default case, you're allowed to do anything on the
server. (although calling System.exit() seems like a very bad idea to me ;-)


> 3) I'd like to pass a variable from an HTML form in index.html to a JSP
> file. problem is, this JSP file would be inside of a frame (the
> index.html does not use frames). So,basically, I have to call the HTML
> file that sets up the frames and have the JSP file called by that, but
> then how do I pass the parameters?

Make your frameset a JSP page as well, and simply pass all the parameters to
the URL of the specific frame. The index.jsp file becomes something like:

<html>
<head>
<title></title>
</head>
<frameset framespacing="0" border="false" frameborder="0"
cols="20%,800,20%">
  <frame name="background_left" target="main" scrolling="no" noresize
        src="background_left.htm">
  <frameset rows="70,49%">
    <frame name="banner" scrolling="no" target="contents" noresize
src="banner.html">
    <frame name="main" scrolling="auto" noresize src="frame.jsp<%
                                String query = request.getQueryString();
                                if (query != null){
                                        out.print("?");
                                        out.print(query);
                                }
                        %>">
  </frameset>
  <frame name="background_right" scrolling="no" target="main" noresize
  src="background_right.htm">
  <noframes>
   <body>
        <p>This page uses frames, but your browser doesn't support them.</p>
  </body>
  </noframes>
</frameset>
</html>


Geert Van Damme

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to