Bryan:
you have to remove the '.class' from the class
attribute

I never used the type attribute, also try removiing
it.

Good luck
Atilio




--- Bryan LaPlante <[EMAIL PROTECTED]> wrote:
> Help!
>
> I created a simple class with an access constructor
> and one method to
> setDisplayType and got no errors when it compiled.
> When I put the useBean
> tag in my jsp page like so:
>
> <jsp:useBean id="tabStatus" scope="page"
> type="String"
> class="DisplayStyle.class"/>
>
> I get the following error:
> java:65:92:65:96: Syntax: Identifier expected
> instead of this token
>
> If I take the useBean tag out again the jsp page
> runs with no errors. I know
> that I am missing something, the bean and my runtime
> info are below. Any
> help is appreciated.
>
> NT4 sp6
> JRun 3.0
>
> DisplayStyle.class
> -----------------------------
> import java.io.*;
> import java.util.*;
>
> public class DisplayStyle {
>
>  public DisplayStyle(){
>  }
>
>  public String setDisplayType(String displayType,
> String currentDisplay){
>   if (displayType.equals(currentDisplay))
>    return "block";
>   else
>    return "none";
>  }
> }
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> 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


=====
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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