Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
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
 
Old October 14th, 2003, 10:17 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie experiencing probs with tag libs and frames

Hi,

I've created a frameste with 2 frames. I use the left frame to display a list of tables, and the right frame to display the records in the table that the user selects in the left frame. It worked until I moved the code into tag libraries. Now I can't even display the contents of the right frame. This is the only method I've implemented in the tag library:

    public int doStartTag() throws javax.servlet.jsp.JspException {
        conn = ConnectionFactory.getInstance().getConnection();
        try{
        if (conn == null){
            //System.out.println("Connection is null");
            JspWriter out = pageContext.getOut();
            out.println("::Rudi");

            //pageContext.getOut().print("No ORA Connection");
        } else {
            //pageContext.getOut().print("ORA Connection!!!");
            System.out.println("Connection is not null");
        }
        }catch(IOException ioe){
            ioe.printStackTrace();
        }
        return SKIP_BODY;

    }

the line System.out.println displays text in tomcats output window, however, pageContext.getOut().print("ORA Connection!!") displays the following error in the right hand side frame: The following error was reported: null.

Any ideas on how to solve this problem would be very much appreciated.

Thanks!!!








Similar Threads
Thread Thread Starter Forum Replies Last Post
Pong probs --- Help... ironchef BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 6 February 21st, 2009 04:12 PM
"The server tag is not well formed" Newbie... daveyboy ASP.NET 1.0 and 1.1 Basics 5 June 6th, 2008 10:54 AM
HTML tag from C# or ASP.NET tag from javascript angshujit ASP.NET 2.0 Basics 3 February 16th, 2007 10:07 AM
HTML tag vs Body Tag CFGerry BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 October 7th, 2005 07:13 AM
Tag Libs [email protected] BOOK: Professional Jakarta Struts 0 February 22nd, 2005 11:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.