RE: O/R mapping tool

2002-08-14 Thread Claudio Parnenzini

I have succesfuly used simpleORM O/R mapping framework. He is easy to use
and to implement.

See www.simpleorm.org

-Message d'origine-
De : Kevin Viet [mailto:[EMAIL PROTECTED]]
Envoyé : Tuesday, August 13, 2002 2:12 PM
À : Struts Users Mailing List
Objet : O/R mapping tool


Hello all, just a question :

I want to know if some of you have some information about O/R mapping
tools (like OJB, castor, ...), products comparison would be of great
value




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Is Struts architecture a disadvantage?

2002-06-07 Thread Claudio Parnenzini

You will not have heavily load if you put the ActionForm into the request
scope.

-Message d'origine-
De : Yaman Kumar [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi, 7. juin 2002 08:51
À : Struts Users Mailing List
Objet : Is Struts architecture a disadvantage?


MessageHi,
I have a question regarding struts architecture, As the Html form and
its
validation has been moved and
implemented at server side ( a ActionForm ), once any validation error
encounters that  is shown
in the same page from which this request is generated ( this is very
impressing), but the page
can't retain its old information other than form information.

Case:
An action class bound data into request scope with 3 different attribute
names and forwarding to x.jsp which has
got a form (XFORM) too. In x.jsp it received 3 different attributes and
shown data in tabular format , when
user submits this form to different action this form bean will be
validated
and if any errors encountered x.jsp
page would be shown back to user, at this time user can't see the data
that
is shown tabular format.
As request is new it can't hold the previous state, this compels the
struts
users to keep this data(3 attributes)in session scope so when user comes
back he could see the error with the data too. In a big web application
if
we keep data
in session scope the server/application become heavily loaded.

Don't you think this is disadvantage of keeping /validating the formbean
at
server side. But I'm sure there are more and more advantages over this
disadvantage.

Please let me know if any better way to solve above problem and forgive
me
to  understand this as a disadvantage
of struts architecture.

Thanks
yaman


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread Claudio Parnenzini

Are you using the JDK 1.2.1??
If yes move to the JDK 1.3

I solved this issue by this way.

Regards

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi, 21. mai 2002 14:19
À : Struts Users Mailing List
Objet : Re: Bug in struts-logic.tld - equal tag?


I've got this weird behavior also.

Jefferson
Indrix.net


- Mensagem Original -
De: Struts Newsgroup [EMAIL PROTECTED] (@Basebeans.com)
Data: Terça, Maio 21, 2002 9:10 am
Subject: Bug in struts-logic.tld - equal tag?

 Subject: Bug in struts-logic.tld - equal tag?
 From: Scott Curtis [EMAIL PROTECTED]
 ===
 Hi,

 This is a difficult one to explain, so bare with me...

 I have a bean class (MyBean) with various getters/setters for the
 propertiescontained within it. Two of which are:

 private boolean valid;
 public boolean isValid() { return valid; }

 private boolean aDTDFlag;
 public boolean isADTDFlag() { return aDTDFlag; }

 I then have a JSP using the struts-logic.tld tag library's equal
 tag as
 follows:

 logic:equal name=mybean property=valid value=true
Do Something here!
 /logic:equal

 logic:equal name=MyBean property=aDTDFlag value=true
Do Something here!
 /logic:equal

 When I load this page I get:

 javax.servlet.jsp.JspException: Exception accessing property
 aDTDFlag for
 bean MyBean: java.lang.NoSuchMethodException: Unknown property
 'aDTDFlag'
 The only way to make it work is to reference the aDTDFlag
 property as
 ADTDFlag within the logic:equal tag - ie with an uppercase
 'a'?!? The
 reference to the valid property is fine with a lowercase 'v'?
 This isn't
 working correctly because the property is named with a lowercase
 'a' and
 references to it shouldn't be forced to use an uppercase 'a'.

 Am I correct? If so is this the right place to report this sort of
 thing?
 thanks
 - scott




 --
 To unsubscribe, e-mail:   ') mailto:struts-user-
 [EMAIL PROTECTED]For additional commands, e-mail:
 ') mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Want to build web application using struts framework

2001-10-05 Thread Claudio Parnenzini

Copy the .war into the webapp directory.

Regards

-Original Message-
From: Tamiru Alaba Dagnachew [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 1:58 PM
To: '[EMAIL PROTECTED]'
Subject: Want to build web application using struts framework


Hello,

I want to build a web application using struts framework. I have
downloaded
everything i need from struts-homepage. But i am new to tomcat server.
My
question is :
 - to which directory should i copy the sample application on tomcat (I
am
using a stand alone tomcat)
 - sorry for this question - for what stands WEB-INF

Thanks.
Dagnachew
  



Implement menu into Struts ( Newbie question )

2001-09-14 Thread Claudio Parnenzini

Hi all,

I would like to know how is the best way to implement a standard menu 
wrote in Javascript with Struts. My web application have a top frame that 
contains my menu, when you click on to an item, I would like to call a 
jsp page ( Targeted into the body frame ) that display data from a DB.

Is the best way to do it by calling an Action class that take data from 
the DB and after call the JSP page ? 
Or is there an other way to do it???

Any link or example are really appreciate.

Regards

Claudio Parnenzini



Re: AW: Implement menu into Struts ( Newbie question )

2001-09-14 Thread Claudio Parnenzini

Thanks, I will have a look.

Regards

 Original Message 

On 9/14/01, 1:59:14 PM, juraj Lenharcik [EMAIL PROTECTED] 
wrote regarding AW: Implement menu into Struts ( Newbie question ):


 hi claudio,

 i think it is of course the best way to do it with your ActionBean. it
 exists a struts based taglib collection named struts light
 http://struts.application-servers.com/ . theres a menu implemented in 
struts
 and jsp. i think it is exactly tat, what you need. i tried the menu some
 time ago, but i had problems to run it, when you have a hierarchical
 structure with a deep more than two. but for a simple use it should 
suffice.


 juraj



 -Ursprüngliche Nachricht-
 Von: Claudio Parnenzini [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 14. September 2001 13:52
 An: [EMAIL PROTECTED]
 Betreff: Implement menu into Struts ( Newbie question )


 Hi all,

 I would like to know how is the best way to implement a standard menu
 wrote in Javascript with Struts. My web application have a top frame that
 contains my menu, when you click on to an item, I would like to call a
 jsp page ( Targeted into the body frame ) that display data from a DB.

 Is the best way to do it by calling an Action class that take data from
 the DB and after call the JSP page ?
 Or is there an other way to do it???

 Any link or example are really appreciate.

 Regards

 Claudio Parnenzini



logic:iterator Class cast exception

2001-09-14 Thread Claudio Parnenzini

Hi all,

I'm trying to iterate a Vector into a JSP page and I have an Class cast 
exception. My vector contains an Hashtable that contains String object.

Here my ActionBean code for the iteration:

 
  while(rs.next()) {
Hashtable table = new Hashtable();

table.put(SQLConstants.FieldName.BSP.BSP_ID,rs.getString(SQLConstants.Fi
eldName.BSP.BSP_ID));

table.put(SQLConstants.FieldName.BSP.BSP_FULLNAME,rs.getString(SQLConsta
nts.FieldName.BSP.BSP_FULLNAME));
vectorBsp.add(table);
 request.getSession().setAttribute(Constants.BSP_LIST,loadBsp(errors));  
  }

Into my jsp, I iterate in this way.

   logic:iterate id=%=Constants.BSP_LIST% name=bspList
tr class=TableValue
td%= 
(String)((java.util.Hashtable)bspList).get(SQLConstants.FieldName.BSP.BS
P_ID)%
td%= 
(String)((java.util.Hashtable)bspList).get(SQLConstants.FieldName.BSP.BS
P_FULLNAME)%
/tr
/logic:iterate


Here the error message.

Location: /struts-iata/bsp.jspInternal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:630)
at 
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spServlet.java:258)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:268)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:213)
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
at java.lang.Thread.run(Thread.java:484)
Root cause: java.lang.ClassCastException: java.lang.Object
at 
javax.servlet.jsp.tagext.TagData.getAttributeString(TagData.java:163)
at 
org.apache.struts.taglib.logic.IterateTei.getVariableInfo(IterateTei.java:90)
at 
javax.servlet.jsp.tagext.TagInfo.getVariableInfo(TagInfo.java:149)
at 
org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatem
ents(TagBeginGenerator.java:290)
at 
org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.
java:357)
at 
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.genera
te(JspParseEventListener.java:771)
at 
org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEve
ntListener.java:220)
at 
org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspPa
rseEventListener.java:175)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at 
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at 
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spServlet.java:258)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:268)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:213)
at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
at java.lang.Thread.run(Thread.java:484)


Thank you in advance for your help.

Regards



RE: Tokens?

2001-08-30 Thread Claudio Parnenzini

I'm interested for the code. Can you send me an examples please.
 
Thank you very much

-Original Message- 
From: Dudley Butt@i-Commerce 
Sent: Thu 8/30/2001 10:45 AM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: RE: Tokens?


one would typically use tokens as a means to prevent the user
from submitting a page twice when it is undesirable to do so...if u
would like more info and some examples let me know

-Original Message-
From: Steven Leija [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:24 PM
To: 'Struts ([EMAIL PROTECTED])'
Subject: Tokens?


Hello All,
 
I'm going over the Action javadocs and came across
several methods that use the keyword of token.  The docs aren't very
intuitive on what exactly defines a token.  
 
What do the token methods do?  
 
generateToken()
resetToken()
saveToken()
isTokenValid()

Have a good one, 

Steven 

 




**
This email and any files transmitted with it are confidential
and
intended solely for the use of the individual or entity to whom
they
are addressed. If you have received this email in error please
notify
the system manager.

This footnote also confirms that this email message has been
swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com

**



 winmail.dat


RE: Overwriting ApplicationResources.properties

2001-08-27 Thread Claudio Parnenzini

Could be because you have a .war file of your web app containing your
old properties file.
 
Regards
 
-Original Message- 
From: Hamelmann Stefan 
Sent: Mon 8/27/2001 4:08 PM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: Overwriting ApplicationResources.properties



Hi

Sometimes my personal prop file located in the package tree is
replaced by
on older version after restarting jakarta-tomcat container.
I do not know where this old version comes from.

Does anyone experience the same problem ?

With kind regards, Stefan



 winmail.dat


Database Pool Connection

2001-08-27 Thread Claudio Parnenzini

Hi,
 
I'm new in Struts Development and I would like to know if Struts manage
Pool Connection to a database with datasources ( Static or dynamic ) ??
 
I want to put SQL requests in to a XML file where they can be called
everywhere in the application.
 
Regards