×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

<jsp:usebean...> vs <form action=...>

<jsp:usebean...> vs <form action=...>

<jsp:usebean...> vs <form action=...>

(OP)
Got a Problem resolving my usebean and form-handler class.
I have one servlet, which processes the contents of an HTML-Form.

Think of a jsp-Page like this:

<jsp:usebean name="beanname" class="FormBean.class">
<form action="FormBean" method=get>
...
</form>

and the corresponding bean-page:

// no Package specified
public class FormBean{
...
}

I am using weblogic-server 6.0 and netscape 4.76
If the bean belongs to no explicit package i get an error-message that the FormBean.class (i used in the <jsp:usebean>-statement) could not be found.
But sending the form-contents to the server is no problem.
But If the bean belongs to a package - lets say to MyPackage.FormBean - and I write
<jsp:usebean ... class="MyBean.FormBean"> no errors were reported, but sending the form-contents back to the server fails with the error, that FormBean (I used in <form action=FormBean> could not be found.

What did I wrong ? How can I specify the <jsp:usebean> - statement without any packagename or how can i specify a package-name in the form-tag ???

Thanks

RE: <jsp:usebean...> vs <form action=...>

You shouldn't submit directly to an EJB, it is bad form.  Submit to a servlet mediator and let it call the EJB and pass any dataobjects and then redirect to the correct page.  EJBs should never be redirecting and outputting pages.


Wushutwist

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close