Hi,
I'm using struts with tomcat, it is giving error
class not found. It is not able to find the Bean class ( LogonForm) What is the
reason
rajiv
Hi
Rajiv,
try to
post some more info, your struts-config.xml as well as a
stacktrace
Its
quite hard to answer your question from the info you
supply...
Mikkel
-Oprindelig meddelelse-Fra: rajiv mulay
[mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:26Til:
[EMAIL
Hi Mikkel.
Struts-config.xml
form-beans
form-bean name="logonForm" type="com.rajiv.LogonForm" /
/form-beans
stack trace
is
javax.servlet.ServletException: Exception creating bean of class
com.dhaval.ProfileForm: java.lang.ClassNotFoundException:
com.dhaval.ProfileForm
at
Hi Mikkel.
Struts-config.xml
form-beans
form-bean name="profileForm" type="com.dhaval.ProfileForm" /
/form-beans
stack trace
is
javax.servlet.ServletException: Exception creating bean of class
com.dhaval.ProfileForm: java.lang.ClassNotFoundException:
com.dhaval.ProfileForm
at
it
looks like its the ProfileForm class it cant find
javax.servlet.ServletException: Exception
creating bean of class com.dhaval.ProfileForm: java.lang.ClassNotFoundException:
com.dhaval.ProfileForm
---
where do you reference this
class???
As you can see from the stack strace the
HI Mikkel,
the jsp code is
%@ page language="java" %%@ taglib
uri="/WEB-INF/struts-form.tld" prefix="form" %
htmltitleShow user
profile/title/headbody
form:form action="userInfo.do"
type="com.dhaval.ProfileForm" form:text property="username"
//td form:submit value="Logon" //td
Hello All,
I am using mulipart forms for adding an employee information.
In this I have 3 forms namely, emplEducation, emplExperience, emplGeneral in
separate JSPs.
In this case, I am using only one form bean for all these JSPs and only one
action class.
My problem is how to validate the
are
you sure you have the com.dhaval.ProfileForm class in your classpath???
-Oprindelig meddelelse-Fra: rajiv mulay
[mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 13:46Til:
[EMAIL PROTECTED]Emne: Re: error
HI Mikkel,
the jsp code is
%@ page language="java" %%@
Well I don't know if this is conventional, but what I've done is to add an
attribute to the form, say 'action', and to add action as a hidden field in
the form. Then assign it a different value on each form... in your case
maybe 'education', 'experience' and 'general'.
form:hidden
Sandeep
Let me try. See if the solution proposed makes sense as the techniques were
discussed before.
1) Include a PageNumber attribute into your Form bean. In your JSP, store
the PageNumber as a hidden attribute. In your form.validate() method,
determine which page is passed then validate the
yaa it is in the class path
- Original Message -
From:
Mikkel
Bruun
To: '[EMAIL PROTECTED]'
Sent: Tuesday, June 12, 2001 8:38
AM
Subject: SV: error
are
you sure you have the com.dhaval.ProfileForm class in your classpath???
-Oprindelig
Hi,
I have been working on struts a few days ago, I have
been trying to develop ordering system using struts.
I already have four Java Bean to represent an Order,
which contains OrderHeader and OrderDetail, and within
OrderDetail there will be collection of
OrderLineDetail, pls refer to below
Hi Suhas
Good question. I missed out some steps for the second option.
You will need to create three form actions to process each of the form
beans. The mother bean is stored in the session and is accessed and
updated in each action. Hence at the end of the logical process, the
mother bean has
Does
your struts-config.xml only consist of that one entry you posted
earlier???
if so,
add an entry for the ProfileForm class
-Oprindelig meddelelse-Fra: rajiv mulay
[mailto:[EMAIL PROTECTED]]Sendt: 12 June 2001 14:42Til:
[EMAIL PROTECTED]Emne: Re: error
yaa it is in
Michael,
Regarding your proposed solution#2, design a mother
form bean that contains three child form beans. in
that case how the child form bean will be
instantiated?
and will these child form beans auto collect data
submited by users?
Rgds,
Victor
--- Michael Mok [EMAIL PROTECTED] wrote:
it has the entry for ProfileFrom class
- Original Message -
From:
Mikkel
Bruun
To: '[EMAIL PROTECTED]'
Sent: Tuesday, June 12, 2001 9:18
AM
Subject: SV: error
Does
your struts-config.xml only consist of that one entry you posted
earlier???
if
I think you're making things far too complicated. Read the note I posted a
little while ago.
- Darryl
-Original Message-
From: Victor Chai [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2001 10:26
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Handling Multipart forms (sort of Wizard)
Thanks for the feedback to both of you!
Subclassing the ServletException is actually what I wanted to avoid. I consider
that a hack, if the new exception I'm creating doesn't have anything to do with
a Servlet (a UserNotAuthorizedException for instance shouldn't have to inherit
from
Hi Victor
A high level sequence diagram
fillform.html --- loadfirstpage.do --- firstpage.jsp
firstpage.jsp -- savefirstpage.do -- loadsecondpage.do -- secondpage.jsp
secondpage.jsp -- savesecondpage.do -- loadthirdpage.do -- thirdpage.jsp
thirdpage.jsp -- savethirdpage.do.
See my responses
Hi all,
I always have this error with this code in my jsp.
body bgcolor=white
logic:iterate id=client name=test property=clients
bean:write name=client property=nmclient/
/logic:iterate
/body
/html:html
The problem is the bean:write tag inside the logic:iterate tag.
The iterate is
Hi Satish,
You don't have to use the tags, you can manually post to the action servlet
and take advantage of the form and action class framework.
Jon.
-Original Message-
From: Satish Khanzode [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2001 07:10
To: '[EMAIL PROTECTED]'
Subject: Custom
Hi Michael,
Thanks for the options you specified for handling this.
After going thru the suggested options, I think the 2nd option is better.
This is because, since it is a wizrd, so there is back and next buttons to
correct the data in different JSPs before saving.
If we need to handle
Hi Victor
There is kind of a limitation with handling index property at the moment.
But you can get around it by writing a simple counter code into the JSP page
(should be fixed in STRUTS 1.1).
I would suggest the following
1) A form bean and make Order an attribute of the form bean (ie
Hi,
Our solution, using struts, is a mutli-page and multi-channel solution.
It works on the principle of page numbers and has only one action per
wizard regardless of the number of pages involved.
There is a base class form which has a validate method that can validate
any form in a generic
I haven't tried this yet, but one way might be to setup an ActionMapping
for each step in the Wizard, and set the parameter property for each.
Struts passes the ActionMapping to validation, so you should be able
to use mapping.getParameter() to tell where you are.
You can then use this same
Hi Ted
Since you mentioned about this. I have tried a similar method and I notice
while the method works, I have to store the form bean in the session scope
instead of the request scope.
When I try to store the form (with nested beans) in the request scope, when
the form is submitted to the
Hello,
i have found an error in the method createLocalFile of MultipartIterator.
If the uploaded file contains a \r\n\n sequence there will be a wrong carriage added.
The sequence \r\n\n will change to \r\n\r\n.
The cutCarriage flag will be remembered from the last read if
readBytes will be
This sounds like a very elegant though sophisticated design. Any way you
could post some diagrams or something? I don't know, GIF's of object models
etc. Or is there a URL you could direct us to?
Just curious because I wasn't smart enough to understand everything from
your description.
- Darryl
Hi,
I'm working on the documentation now and feel it would only be fair to
contribute some of these diagrams back to the struts community. It will
probably take me a couple of days to get it sorted though. I hate
documentation, grg.
Cheers,
Andy S
p.s. I think it has more to do with my
Thanks, that'll be great. Look forward to the post. Ditto on
documentation... one of those necessary evils in life you know,
whisperlike women./whisper ;)
-Original Message-
From: Andrew Steady [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2001 12:09
To: [EMAIL PROTECTED]
Subject: RE:
Struts tries to recycle ActionForm beans between requests. Perhaps
Struts
is not creating a new bean for the next request, but recycling the old
one
by calling reset(), and so the nested beans are being set to null.
Michael Mok wrote:
Hi Ted
Since you mentioned about this. I have tried a
Michael,
What
exactly do you mean when you say "assign the arraylist"? Ibelieve I
have all the beans in place to retrievefrom the database and store in an
arraylist, but when I try toiterate throughthe bean from the jsp
page, I get "scope = null" which makes me thinkthat I am missing this
Darryl, you need to get away from the pc a little more
;^
- Original Message -
From: Darryl Pentz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 12, 2001 6:19 AM
Subject: RE: Handling Multipart forms (sort of Wizard)
Thanks, that'll be great. Look forward to the post.
Jonathan,
I don't think you understand... they're NECESSARY... but evil if you
disagree, you're obviously not married. :)
Sorry, now I'm clogging up the list. Just joking naturally, for all the
ladies on the list.
- Darryl
-Original Message-
From: Jonathan Asbell [mailto:[EMAIL
You can alway save objects to the session and application scopes. If the
forward is a redirect you'll have to do that. If it isn't a redirect (as
is usual) then the request still exists and is passed along. So the next
Action would still have access to it. I sometimes add an attribute to
the
Hi Ted and fellow Struts Users's , I have got a package named
stock beneath C:\jakarat-tomcat-3.2.1\webapps.
Thus there is a \WEB-INF that holds a classes dir and a lib dir
and dbtags.xml and web.xml. In the lib directory resides dbtags.jar and
jdbc7.0-1.2.jar
I have declared taglib uri
assign the arraylist in the Action like:
request.setAttribute(myArrayListOfBeans, theList);
Then in the forwarded to jsp
slogic:iterate id=row name=myArrayListOfBeans
bean:write name=row property=firstProperty
bean.write name=row property=nextProperty
/slogic:iterate
- Original
I am married. Its ME WHO IS EVIL
;^
- Original Message -
From: Darryl Pentz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Jonathan Asbell [EMAIL PROTECTED]
Sent: Tuesday, June 12, 2001 8:53 AM
Subject: RE: Handling Multipart forms (sort of Wizard)
Jonathan,
I don't think you
Hi , can anyone desiphon this error message i have explored all the
config's ie tld's,taglib> xml and declartions.Any suggestions .The
jsp in questions as below not that i have exstablished a connection but
the package was beaneath my tomcat container /WEB-INF.as opposed
to my struts-bbnpa (web
It looks like
your driver class file isn't in the CLASSPATH for your application server. Check
that the JAR file for the PostgreSQL drivers is in the app server
classpath.
-
Darryl
-Original
Message-From: Chuck Amadi
[mailto:[EMAIL PROTECTED]]Sent: 12 June 2001
16:04To:
Cheers Darryl .
Darryl Pentz wrote:
Part 1.1Type: Plain Text (text/plain)
Encoding: 8bit
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and
Hi Kat
In my struts-config
action
path="/edittimesheet"
type="org.teatimej.timesheet.EditTimeSheetAction"
name="timesheetform"
scope="session" forward
name="success" path="/editconsultanttimesheetpage.jsp"
/ /action
This is how I iterate through my arraylist in my
jsp.
logic:iterate
Hi , my original attempt i placed the dbtags.jar in the /WEB-INF/lib of
tomcat containers webapps(application server) and this worked fine albiet
my struts-bbnpa is my working web application that is beneath web apps
as described and i have all my prototype's jsp's , css etc and is getting
to
I have a String property on the ActionForm derived class with the name
'button'
In the html:form I have the following:
html:submit styleClass='Buttons' property='submit'
styleId='Refresh' value='Refresh'/
html:submit styleClass='Buttons' property='button'
styleId='Settings'
Hey this so called struts.jar or dbtags.jar should be copied into
the /WEB-INF/lib dir of my web applicatio but what if im hosting a few
struts based app's on to same tomcat (servlet) container i have read this
can cause the ClassNotFoundException problem unless all my application
classes are
Hi darryl , it was my jdbc.7.0-1.2.jar was missing from /struts-bbnpa/WEB-INF/lib/
Thus residing in there was dbtags.jar,struts.jar and good old jdbc7.0-1.2.jar
has come home.
Cheers for your help all. as it's working fine and got the my database
details from Postgresql.
--
The views expressed
Hi all , I have exstablished my connection between my web app and
postgresql db , the outlook result was poor , thus what! , how! does one
create a a better presentation regatding the result back from the
database. ie i have read/seen via the struts-users something about
nested forms/tables.
Has anyone implemented Struts with EJBs for
business logic. If so, was it difficult? Also, does anyone know of
any performance statistics for Struts?
Thanks,
Matt
Anthony,
Instead of:
public final class ProfileForm extends ActionForm implements Profile {
private int proifleno ;
private String firstname ;
private String lastname ;
.
.
try:
public final class ProfileForm extends ActionForm {
private
Hi Matt,
I am now working on my second project where we are using Struts in conjunction with
EJBs. Suffice it to say that Struts is awesome. Your performance question is a bit
loaded since there are many different pieces but from what I can tell, there do not
seem to be any issues with
All,
Has anyone implemented Struts with BEA Personalization
Server? Please provide comments, suggestions, etc.
Thanks in advance for your cooperation.
Best Regards,
Wayne
__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail -
Hi all
Struts newbie here. I was wondering if someone could help me out with
multibox. Here's a code snippet from my jsp file:
html:form action=subscription.do
logic:iterate id=item1 name=entryData
TR
TD align=center
html:multibox
Ok, I'm new to this web based app thing, so any
help is greatly appreciated. There are a couple of things that confuse me
about Struts.
1) Say I've got a main page with a few links
on it. No formsplain vanilla. Is it a good struts practice to
create an Action for this page?
2) Struts
Yes, I've done this. Difficult is a relative term. If you know ejb and you
know struts, no it's not difficult.
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Struts Questions
Has anyone
We are doing so right now - all we had to do was create an additional class
that has all the getters/setters of the ActionForm for a particular screen
or set of screens. Then call all the sets from the Action and pass the
object along to the EJB. That's it. :) No tangible performance loss/gain.
I think there is a better way, we just call the ejb from the action servlet
and fill in the appropriate data. The best architect for entity beans is to
have session beans in front of them anyway, so any methods you need you put
in a session bean, and call with the appropriate fields.
Hi Geoffrey,
Try taking the property attribute out of the iterate tag.
--Abraham
-Original Message-
From: Geoffrey Van Nuffelen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:40 AM
To: Struts-User (E-Mail)
Subject: javax.servlet.ServletException: Cannot find bean
Satish,
It is possible but you won't be using the full potential of Struts.
--Abraham
-Original Message-
From: Satish Khanzode [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 11:10 PM
To: '[EMAIL PROTECTED]'
Subject: Custom Tag Library
Is it possible to use the Struts
Folks,
I'm using 1.0-beta-1 and I see a discrepancy when
using Struts via IIS 4.0 and IIS 5.0 on the Bluestone
TeS. The problem occurs on IIS 5.0 but not on 4.0
We've also verified that this problem does not
occur with the same app under Tomcat 4.0-b1. I'm
wondering if anyone else is seeing
Try taking the property attribute out of the bean:write tag.
Leo
-Original Message-
From: Abraham Kang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:46 PM
To: [EMAIL PROTECTED]
Subject: RE: javax.servlet.ServletException: Cannot find bean client in
scope null
Hi Geoffrey,
Title: Generating frameset with PDF
Dear all,
I very much need assistant on this issue:
I have a requirement to generate PDF files on the screen so that the user can print. The number of PDFs are unknown.
It needs to be a frameset, header will have links to each individual PDF,
so that
Actually George, I think you and Chris both have the right idea.
You are correct in stating that using a SessionBean interface to you appserver is best
-- the only issue that remains is what datatypes will the SessionBean return?
IMHO, you should avoid the default pass-by-reference model
I tend to use bulk setters on the helper classes to transfer everything
from the ActionForm at once, e.g.
public void setString(
String property0, String property1, String property2, String
property3
) throws SQLException {
Im not sure if I understand the question fully...
Do you need to create the PDF on the fly? or just point to existing PDF
files?
Do you have a question on framesets?
If you already have the PDF file, you can display it in your frameset
the same as you would any other HTML, JSP file.
However,
The problem is that the underlying Tomcat is 3.1,
which has surfaces this bug. See this URL for instructions on how to upgrade
Tomcat.
http://community.borland.com/article/0,1410,26943,00.html
--
Dan Miser
http://www.distribucon.com
- Original Message -
From:
[EMAIL
Hi!
I have two servlets interacting in an application: the Struts' Action
Servlet and another servlet of mine that intercepts all requests and
puts information related to them in a database (referer, host, etc.).
So when a request comes in, myServlet receives it, saves these
information in the
Title: RE: Putting it all together, help???
Mike Thompson wrote:
Ok, I'm new to this web based app thing, so any help is greatly
appreciated. There are a couple of things that confuse me about Struts.
1) Say I've got a main page with a few links on it. No forms
plain vanilla. Is it a
Has anyone played with Tomcat 4.0 and Struts? I noticed a problem with the
struts-test web app and the new 4.0 version of Tomcat. A couple of the test
links throw exceptions.
Has anyone seen any performance improvements with 4.0?
-mark
For a library to make PDFs look here:
http://www.lowagie.com/iText/
Alan Yackel
CTO
Creatrixs INC.
Dear all,
I very much need assistant on this issue:
I have a requirement to generate PDF files on the screen
so that the user can print. The number of PDFs are unknown.
It needs to be a frameset,
On Mon, 12 Jun 2000, suhas wrote:
Getting a error while running startup.bat in tomcat\bin -
Tomcat 4.0
Wht can I do
Well, you can start by reading the error message :-). It relates to the
XML parser, not to Tomcat or Struts. In fact, the error does not prevent
correct operation
Hello Geoffrey,
Try to specify scope to iterate tag.
Tuesday, June 12, 2001, 12:40:21 PM, you wrote:
GVN Hi all,
GVN I always have this error with this code in my jsp.
GVN body bgcolor=white
GVN logic:iterate id=client name=test property=clients
GVN bean:write name=client
Hello Sridhar,
Try to remove 'input' attribute from action mapping. I view
validate=false here - you are not use validate after form submitting -
why do you specify input attribute?
Here is quote from struts-config.dtd -
input Context-relative path of the input form to which
Title: RE: Putting it all together, help???
/
Another point about your example above is that you are
essentially going to need some kind of object to hold
your result data. Either you have all
I'm in need of some guidance (and couldn't really find what I needed in the mail
archives)-
I've been working on a struts application, and so far have a login page that validates
the user and forwards to a Organization List page. This Organization List page is
currently using DBTags to get a
Hi,
I just implemented a reports page in my struts app
which generates PDF on the fly using FOP from Apache. http://xml.apache.org/fop/index.html
It's uses XML and XSLT. It works very nicely.
peace
john ware
"Alan C. Yackel" wrote:
For a library to make PDFs look here:
Hi, I´m having problems integrating an upload applet (Upload
AppletFile 2.0 - http://infomentum.com/products) with struts. It seems I´m
unable to upload large files (even greater than 2048 bytes). I really
couldn´t trace out where it´s losing its track, but it can´t see the end of
the
Hi,
I have a form named TimeRecordForm which contains a collection named
activities full of Activity objects. One is able to select a row ( check
the checkbox ) and click the Delete button to remove the appropriate
Activity object from activities. This is accomplished in
A completely different approach is to use container-managed security, as
described in the Servlet API Specification
http://java.sun.com/products/servlet/download.html. Here, you are
relying on the servlet container to manage user logon, so that you do not
have to check
anything on a per-request
Hi Mike, I hope the following isn't too basic for you!
With the Struts implementation of the MVC pattern (really Model-2) the View (JSP) gets
access to all the data it needs by accessing objects stored in the session context.
So, if the Action class wants to make data available to the JSP,
Has anyone implemented form-based authentication and Struts as defined by
the J2EE Blueprints?
http://java.sun.com/j2ee/blueprints/packaging_deployment/descriptors/index.h
tml#1035772
If so, any lessons learned from the appserver you deployed in?
Thanks,
Matt
On Tue, 12 Jun 2001, Marc-andre Thibodeau wrote:
Hi!
I have two servlets interacting in an application: the Struts' Action
Servlet and another servlet of mine that intercepts all requests and
puts information related to them in a database (referer, host, etc.).
So when a request
yes I did this. It works perfectly on tomcat also on resin. JRUN seems to
have some problems with this.
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 3:14 PM
To: [EMAIL PROTECTED]
Subject: Form-based Authentication
Has anyone implemented
Hi Matt,
I have done this successfully with WebLogic 6.0 and 5.1 and JRun 3.1.
Here is what I learned.
If you need to do login preprocessing you will need to specify a
login-form that does not have j_security_check as its action. This login
form will submit to non-secured servlet.
Title: RE: Form-based Authentication
Hi Matt and Abraham,
I would like to know why you say that you need to specify a login-form that does not have j_security-check as its action?
I am using this as the action and using Struts action classes to do the login?
-Original Message-
Title: RE: Form-based Authentication
Hi
Jason,
I should have been clearer.
The only time that you do not want the login-form to
specify "j_security_check" as its action is when you want to do some special
preprocessing before the user is authenticated. By forwarding to a servlet
(I
On Tue, 12 Jun 2001, Abraham Kang wrote:
RE: Form-based AuthenticationHi Jason,
I should have been clearer.
The only time that you do not want the login-form to specify
j_security_check as its action is when you want to do some special
preprocessing before the user is
Hi Craig,
Thanks for the clarification.
I was wondering if you knew of any other way to do pre-processing
before being authenticated and post-processing after authentication
when using the form based authentication.
Would filters work here?
Sincerely,
Abraham
-Original Message-
On Tue, 12 Jun 2001, Abraham Kang wrote:
Hi Craig,
Thanks for the clarification.
I was wondering if you knew of any other way to do pre-processing
before being authenticated and post-processing after authentication
when using the form based authentication.
Would filters work here?
Thank U Oleg,
But like I mentioned earlier if I remove the input tag, it gives me a page
not found error
Ne more hints???
-Original Message-
From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 1:22 AM
To: [EMAIL PROTECTED]
Subject: Re: Forward Problem
89 matches
Mail list logo