Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
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=&quot;beanname&quot; class=&quot;FormBean.class&quot;>
<form action=&quot;FormBean&quot; 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=&quot;MyBean.FormBean&quot;> 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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top