Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Is this possible? (regarding beans and JSP)

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    26
    My Mood
    Fine
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question Is this possible? (regarding beans and JSP)

    Hi!

    Is it possible to have a setProp(arg) function in class definition but no member called "prop". I intend to use this function to do something else when a JSP tries to set "prop" to particular value, say "true".

    Actually compiling the JSP is giving "symbol not found" errors for the bean class which makes me suspect that probably there's something wrong with the bean's class definition. The bean class is logically correct and I've cross checked this using an ordinary main class and calling appropriate setter functions. The compiled .class is in WEB-INF/classes.


  2. #2
    Junior Member
    Join Date
    Jun 2011
    Posts
    26
    My Mood
    Fine
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Re: Is this possible? (regarding beans and JSP)

    Yes, it's possible.

    The error was occurring because I didn't put the bean in a separate package.

Similar Threads

  1. Net Beans OR Eclipse
    By sanjuds in forum Java IDEs
    Replies: 6
    Last Post: August 16th, 2011, 05:36 AM