RES: Using Torque and Struts

2002-03-06 Thread Rubens Gama

where can i get information about Torque, please?

thanks in advance
Rubens Gama

-Mensagem original-
De: Hoang, Hai [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 6 de março de 2002 14:18
Para: 'struts-user'
Assunto: Using Torque and Struts


I am having hard time setting up Torque to work with Struts in Tomcat 4.  I
really appreciate if some one can help me.

I went through the Torque tutorial successfully but I don't know how to make
torque works JSP/Struts.  Also, do you know how is torque compared to other
open source OR mapping tools



Thank You



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




RES: Taglib 'struts'

2002-02-15 Thread Rubens Gama

OK, it's truth.
Look:
In struts.tld exists tags defined like this:

button
org.apache.struts.taglib.ButtonTag

  accessKey
  false
  false


  onBlur
  false
  false


  onChange
  false
  false

..
..
  

And in struts-html.tld exists tags defined like this:


button
org.apache.struts.taglib.html.ButtonTag

  accesskey
  false
  true


  disabled
  false
  true


  onblur
  false
  true

..
..


What's the diference between them?

thanks in advance.

Rubens M. da Gama


-Mensagem original-
De: Keith [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 15 de fevereiro de 2002 09:03
Para: Struts Users Mailing List
Assunto: Re: Taglib 'struts'


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="struts-html" %>

It's the prefix specified in the taglib definition. I guess people who use
lots
of tags prefix the struts tags with struts-. People who only use struts
leave
it off.
Not sure but I think >  tends to be an older style.


--- Rubens Gama <[EMAIL PROTECTED]> wrote:
> Exists tags defined in struts.tld that seems like tags defined in the
> struts-html.tld
> For example:
>
> 
> 
>
> or
>
> 
> 
>
> or
>
> .
>
> What's the diference between them ?
>
> thanks in advice
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com

--
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]>




Taglib 'struts'

2002-02-15 Thread Rubens Gama

Exists tags defined in struts.tld that seems like tags defined in the
struts-html.tld
For example:




or




or

.

What's the diference between them ?

thanks in advice


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




taglibs struts X struts-html

2002-02-14 Thread Rubens Gama

What's the diference between the tags struts and struts-html in the struts
1.0.1?
For example:




or




or

.

thanks in advice



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: RES: Tool for Building Visual Java Server Pages

2002-01-30 Thread Rubens Gama

Extension called 'cpwr_optimalj_jsp.mxp'.
Do you know?


-Mensagem original-
De: Duncan Harris [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 30 de janeiro de 2002 11:23
Para: [EMAIL PROTECTED]
Assunto: Re: RES: Tool for Building Visual Java Server Pages


[EMAIL PROTECTED] (Rubens Gama) wrote:

> Well, dreamweaver also have support struts,now..
> But it still have problems related to nested tags...

Is this an extension, or a new version? Is so, what version?

Duncan Harris
~~~
Hartford, Cheshire, U.K., Tel: 07968 060418
Looking for STRUTS contract work in the U.K.

--
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]>




RES: Tool for Building Visual Java Server Pages

2002-01-29 Thread Rubens Gama

I also download the Camino's distribition.
And I thought it was weak.
Well, dreamweaver also have support struts,now..
But it still have problems related to nested tags...


-Mensagem original-
De: Voss, Greg [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 29 de janeiro de 2002 17:41
Para: Struts Users Mailing List
Assunto: RE: Tool for Building Visual Java Server Pages


I haven't looked into this but here is one:

-Original Message-
From: John Yu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 8:29 PM
To: Voss, Greg
Subject: Re: Camino documentation


Hi Greg,

Camino's distribution, available at
http://www.scioworks.com/scioworks_camino.html, comes with the tutorial and
the UI documentation. They can be found under your installated directory:

 [Installed directory]/doc/manual/index.html

Alternatively, inside Camino, you can access the documentation under the
menu item

 Help | Help Topic

Let me know if you have other enquiries.
--
John

At 09:05 am 23-01-2002 -0500, you wrote:
>Hi,
> Can I get a copy of the Camino Tutorial and User Interface, so
that
>I can work with Camino offline?
>
>Thanks.
>Greg Voss
>Manager, Web Development
>Silverstream Software Inc.

--
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"

-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:41 PM
To: Struts-User
Subject: Tool for Building Visual Java Server Pages


Since my staff begun to constructing web applications with struts,
the major problem was a tool for this purpose.

Can somebody know a visual tool for struts development?

--
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]>




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




Tool for Building Visual Java Server Pages

2002-01-29 Thread Rubens Gama

Since my staff begun to constructing web applications with struts,
the major problem was a tool for this purpose.

Can somebody know a visual tool for struts development?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: Formatting Dates, Integers...

2002-01-28 Thread Rubens Gama

My solution was :
create a proprietary class that make all conversion types.


-Mensagem original-
De: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 15:39
Para: '[EMAIL PROTECTED]'
Assunto: Formatting Dates, Integers...


Hi fellows,

I have searched the mailing list in hope to find a way to display a number
in format (e.g:120.200,32). I couldn't find any solution. There were some
messages proposing to play on the getter and setter methods. But, this is
not a solution we imagine. Because we have some object properties in the
Form Bean and their properties can be set by struts directly. So changing
getter and setter methods requires tons of effort to modify our  data
classes and form beans which is of course NOT desirable. I also know that
there is a DateTag library of Jakarta, which is yet in beta release.
Therefore, my managers (regards to them) don't want to use beta releases.
They don't want to modify struts tags neither. However, I believe this is
quite straightforward way (hopefully they will be contended soon).

So,
1. Do you have any clever solution for this common problem?
2. What necessary steps should I take in order to add a new Format attribute
to the form:text and bean:write?
2.1 In case, I added necessary methods, how can I guarantee that struts set
this formatted value to the property. According to my tries, it doesn't set
them correctly?
2.2 How long does an ordinary developer require to modify struts to do so?

thanks and my best regards,
fehmi.

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: Formatting Dates, Integers...

2002-01-28 Thread Rubens Gama

public static String formatDecimal(String format,String value)
{
double valueDouble = Double.parseDouble(value);
DecimalFormat decimalFormat = new DecimalFormat();
decimalFormat.applyPattern(format);
return decimalFormat.format(valueDouble);
}

try to do it:

formatDecimal("#,##0.00",120200.32);

ok?



-Mensagem original-
De: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 15:39
Para: '[EMAIL PROTECTED]'
Assunto: Formatting Dates, Integers...


Hi fellows,

I have searched the mailing list in hope to find a way to display a number
in format (e.g:120.200,32). I couldn't find any solution. There were some
messages proposing to play on the getter and setter methods. But, this is
not a solution we imagine. Because we have some object properties in the
Form Bean and their properties can be set by struts directly. So changing
getter and setter methods requires tons of effort to modify our  data
classes and form beans which is of course NOT desirable. I also know that
there is a DateTag library of Jakarta, which is yet in beta release.
Therefore, my managers (regards to them) don't want to use beta releases.
They don't want to modify struts tags neither. However, I believe this is
quite straightforward way (hopefully they will be contended soon).

So,
1. Do you have any clever solution for this common problem?
2. What necessary steps should I take in order to add a new Format attribute
to the form:text and bean:write?
2.1 In case, I added necessary methods, how can I guarantee that struts set
this formatted value to the property. According to my tries, it doesn't set
them correctly?
2.2 How long does an ordinary developer require to modify struts to do so?

thanks and my best regards,
fehmi.

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: handling exceptions

2002-01-28 Thread Rubens Gama

Thanks.
I want to know if your framework of handling exception will be opensource,
like struts.


-Mensagem original-
De: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 28 de janeiro de 2002 10:27
Para: Struts Users Mailing List
Assunto: Re: handling exceptions


We've developed a pretty eloborate exception handling framework on my
current project. We're using EJB on the backend, so
we must also deal with remote type exceptions. First we catorgize
exceptions into those that the user can recover from and those that they
can't. Sort of like fatal and non-fatal. You also need to divide exceptions
into system and application exceptions. System exceptions are ones like
remote exception, or maybe some type of datastore exception. Application
exceptions for us are ones like required fields were missing or duplicate
values for a unique column. In our world, the same exception framework has
to work for ERP systems, so it's not just the web container.

Anyway, for those exceptions that the user can recover from like "required
fields missing", we catch those type of exceptions, create an ActionError
with a message from the bundle specifically for that exception, and then
forward back to the input page. This gives the user a chance to fix the
problem and resubmit. For the more severe exceptions, we also catch those
and forward to a "system-error" type page since there's probably nothing
you can do about it anyway. We use an abstract base action that all of our
actions extend. We have all of this behavior in the base action and none of
the action classes have to worry about catching these exceptions. The
abstract base action implements the perform and has an abstract doWork type
method. The doWork method is wrapped with the try catch blocks. Each
concreate action class implements the doWork and doesn't have to worry
about the try catch.

I hope that gives you some ideas.

chuck

p.s. Regarding your other post about using System.out in your action
classes; I wouldn't recommend that approach. Use log4j instead. That way,
you can shut off the debug logging externally by just editing the
log4j.properties file.

At 09:50 AM 1/28/2002 -0200, you wrote:
>Could somebody help me ?
>
>I have to many problems with handling exception of the Struts.
>what do you suggest to handling exception of the deployment applications?
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Handling Exceptions with Struts

2002-01-28 Thread Rubens Gama

To debug my Action classes, i use a method call "System.out.println()" or
"servlet.log()"...
is it a good practice?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




handling exceptions

2002-01-28 Thread Rubens Gama

Could somebody help me ?

I have to many problems with handling exception of the Struts.
what do you suggest to handling exception of the deployment applications?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: html:errors error?

2002-01-16 Thread Rubens Gama

you must define in ApplicationResourses.properties:

error.header=""
error.footer=""

the problem is solved.
ok?

-Mensagem original-
De: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 16 de janeiro de 2002 15:15
Para: Struts (E-mail)
Assunto: html:errors error?


I just noticed that my error messages are acting strange.
I recently changed to a nightly build (approx 1/2).
For example, instead of getting the text:
  You must specify a Contact Name.
I am now getting:
  null You must specify a Contact Name. null
There are no substitution parms in the properties spec:
  error.no_contact_name=You must specify a Contact Name.
The html generated almost looks like there are two
null error entries:

null
You must specify a Contact Name.
null

but when I add my message the error array is empty.

Anyone else on a nightly build noticed any funny error messages?

Thanks,

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Report TagLib

2002-01-16 Thread Rubens Gama

can somebody tell if exists some report taglib ?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: Report's Tag

2002-01-15 Thread Rubens Gama

well, i have a ResultSet object populated, ok?

i want a header..
page break...
a footer

the report's body can use the ResultSet to show the data in a determined
way(like 3 columns and 60 lines, etc).
and the pagination feature, for example.

-Mensagem original-
De: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Enviada em: terca-feira, 15 de janeiro de 2002 15:28
Para: Struts Users Mailing List
Assunto: RE: Report's Tag


> -Original Message-
> From: Rubens Gama [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 15 januari 2002 17:52
> To: Struts-User
> Subject: Report's Tag
>
>
> could you tell me if exists any JSP report tag?

If you can tell what that tag is supposed to do ...

tomK

--
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]>




Report Taglib

2002-01-15 Thread Rubens Gama

where can i found taglib report using the Struts Framework?

thanks in advance.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Report's Tag

2002-01-15 Thread Rubens Gama

could you tell me if exists any JSP report tag?


thanks in advance

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Resin X Tomcat

2002-01-15 Thread Rubens Gama

what JSP Engine i must to use, Tomcat or Resin?
what is the best?

thanks in advance...

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: datasources

2002-01-11 Thread Rubens Gama

Thank You Mark: It worked.  However, could you explain why the other way
didn´t worked?

Hey guys let´s update that manual!

Rubens

-Mensagem original-
De: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 18:27
Para: 'Struts Users Mailing List'
Assunto: RE: datasources


I am using struts 1.0 and it works for me, however I don't use set-property
attribute and assign each property directly. E.g.:



   

  


Mark.

-Original Message-----
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 3:18 PM
To: Struts Users Mailing List
Subject: RES: datasources


Thank you Mark, but It´s not working.

I´ve done this:



  
  
  ...
   ...


  
  
  ...
   ...



and in my class:

action.findDataSource("ds1")

But he loads just the "ds2"!

Thank you,
Rubens


-Mensagem original-
De: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 18:04
Para: 'Struts Users Mailing List'
Assunto: RE: datasources


Rubens,

You can use key="dataSourceName" attribute in  tag.
To retrieve: ActionServlet.findDataSource( "dataSourceName")

Mark.

-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:46 PM
To: Struts Users Mailing List
Subject: RES: datasources


ok, but in the struts-config.xml there isn´t a "name" tag. How can I specify
the name of the dataSource ?. For example, this below:

  

  
  
  
  
  
  
  
  

  

where is the tag "name" ??
Thank you
-Mensagem original-
De: Taylor Cowan [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 16:48
Para: Struts Users Mailing List
Assunto: RE: datasources


When you configured the datasource you gave it a name.  Use that as a key to
lookup the datasoruce using findDataSource( String name )

Taylor

-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:38 PM
To: Struts-User
Subject: datasources


i have two datasources defined in the struts-config.xml.
how can i reference each one from my application?
for example:
servlet.findDataSource(1) or servlet.findDataSource(2)

thanks in advance



--
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]>





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




--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



--
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]>




--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



--
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]>




RES: datasources

2002-01-11 Thread Rubens Gama

Thank you Mark, but It´s not working.

I´ve done this:



  
  
  ...
   ...


  
  
  ...
   ...



and in my class:

action.findDataSource("ds1")

But he loads just the "ds2"!

Thank you,
Rubens


-Mensagem original-
De: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 18:04
Para: 'Struts Users Mailing List'
Assunto: RE: datasources


Rubens,

You can use key="dataSourceName" attribute in  tag.
To retrieve: ActionServlet.findDataSource( "dataSourceName")

Mark.

-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:46 PM
To: Struts Users Mailing List
Subject: RES: datasources


ok, but in the struts-config.xml there isn´t a "name" tag. How can I specify
the name of the dataSource ?. For example, this below:

  

  
  
  
  
  
  
  
  

  

where is the tag "name" ??
Thank you
-Mensagem original-
De: Taylor Cowan [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 16:48
Para: Struts Users Mailing List
Assunto: RE: datasources


When you configured the datasource you gave it a name.  Use that as a key to
lookup the datasoruce using findDataSource( String name )

Taylor

-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:38 PM
To: Struts-User
Subject: datasources


i have two datasources defined in the struts-config.xml.
how can i reference each one from my application?
for example:
servlet.findDataSource(1) or servlet.findDataSource(2)

thanks in advance



--
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]>





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




--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



--
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]>




RES: datasources

2002-01-11 Thread Rubens Gama

ok, but in the struts-config.xml there isn´t a "name" tag. How can I specify
the name of the dataSource ?. For example, this below:

  

  
  
  
  
  
  
  
  

  

where is the tag "name" ??
Thank you
-Mensagem original-
De: Taylor Cowan [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 16:48
Para: Struts Users Mailing List
Assunto: RE: datasources


When you configured the datasource you gave it a name.  Use that as a key to
lookup the datasoruce using findDataSource( String name )

Taylor

-Original Message-----
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:38 PM
To: Struts-User
Subject: datasources


i have two datasources defined in the struts-config.xml.
how can i reference each one from my application?
for example:
servlet.findDataSource(1) or servlet.findDataSource(2)

thanks in advance



--
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]>





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




datasources

2002-01-11 Thread Rubens Gama

i have two datasources defined in the struts-config.xml.
how can i reference each one from my application?
for example:
servlet.findDataSource(1) or servlet.findDataSource(2)

thanks in advance



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RES: RES: RES:

2002-01-10 Thread Rubens Gama

that?s it.
Thanks

-Mensagem original-
De: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 10 de janeiro de 2002 14:01
Para: Struts Users Mailing List
Assunto: RE: RES: RES: 


ah





does this help?

tomK


> -Original Message-
> From: Rubens Gama [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 10 januari 2002 16:56
> To: Struts Users Mailing List
> Subject: RES: RES: RES: 
>
>
> thak you, but it's wrong.
> i want write a property 'prop3' of an object without going through the
> 'ArrayList'.
> For example:
>
>  objectCollection="listClients.client[5]" propertyObject="name"/>
>
> detail: '5' == fifth object in the 'ArrayList'.
>
> is this already implemmented?
>
> -Mensagem original-
> De: Keith Bacon [mailto:[EMAIL PROTECTED]]
> Enviada em: quinta-feira, 10 de janeiro de 2002 13:19
> Para: Struts Users Mailing List
> Assunto: Re: RES: RES: 
>
>
>
> Do you mean you want this?
>
>    
>   
> 
>
> where you array list contains objects eachRow, which has
> methods String
> getMyField1(), getMyField2
> etc.
> K.
>
>
> --- Rubens Gama <[EMAIL PROTECTED]> wrote:
> > i'm not doing nested ArrayLists.
> > It4s an ArrayList of objects.
> > the objects have simple properties as String properties..
> > i want write one property of one object of ArrayList or
> > two property of the one object of ArrayList...or
> > three property of the three object of ArrayList.
> >
> > i cannot use 'iterate' because i want write a single
> property of a single
> > object of a ArrayList.
> > how can i do it?
> >
> > thanks in advance
> >
> > -Mensagem original-
> > De: Geoffrey Mroz [mailto:[EMAIL PROTECTED]]
> > Enviada em: quinta-feira, 10 de janeiro de 2002 12:21
> > Para: [EMAIL PROTECTED]
> > Assunto: Re: RES: 
> >
> >
> > Are you doing nested ArrayLists?
> >
> > If so then try something like:
> > 
> >   
> > Use of the Struts iterate tag with nested ArrayLists
> representing
> > rows/cols:
> > <%@ page import="java.util.ArrayList" %>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> >
> > <%
> >   ArrayList rows = new ArrayList();
> >   ArrayList rowOne = new ArrayList();
> >   rowOne.add("bob");
> >   rowOne.add("jones");
> >   rowOne.add("[EMAIL PROTECTED]");
> >   ArrayList rowTwo = new ArrayList();
> >   rowTwo.add("ted");
> >   rowTwo.add("Walters");
> >   rowTwo.add("[EMAIL PROTECTED]");
> >   ArrayList rowThree = new ArrayList();
> >   rowThree.add("Mary");
> >   rowThree.add("Smith");
> >   rowThree.add("[EMAIL PROTECTED]");
> >
> >   rows.add(rowOne);
> >   rows.add(rowTwo);
> >   rows.add(rowThree);
> >
> >   request.setAttribute("DATASET",rows);
> > %>
> > 
> >   
> > 
> >
> >  
> >
> >  
> >
> > 
> >   
> > 
> >   
> > 
> >
> >
> > If not, then try this:
> > 
> >   
> > Use of the Struts iterate tag:
> > <%@ page import="java.util.ArrayList" %>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> >
> > <%
> >   ArrayList myList = new ArrayList();
> >   myList.add("Item One");
> >   myList.add("Item Two");
> >   myList.add("Item Three");
> >   request.setAttribute("MYLIST",myList);
> > %>
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >
> > Sorry for the excessive code, but these do work.
> >
> > Hope that helps.
> >
> > -- Geoff
> >
> > > thanks for the fast reply but...
> > > for example:
> > > listClients - collection of client's
> > > objects(ArrayList for example)
> > > cli

RES: RES: RES:

2002-01-10 Thread Rubens Gama

thak you, but it's wrong.
i want write a property 'prop3' of an object without going through the
'ArrayList'.
For example:



detail: '5' == fifth object in the 'ArrayList'.

is this already implemmented?

-Mensagem original-
De: Keith Bacon [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 10 de janeiro de 2002 13:19
Para: Struts Users Mailing List
Assunto: Re: RES: RES: 



Do you mean you want this?
   
   
   

where you array list contains objects eachRow, which has methods String
getMyField1(), getMyField2
etc.
K.


--- Rubens Gama <[EMAIL PROTECTED]> wrote:
> i'm not doing nested ArrayLists.
> It4s an ArrayList of objects.
> the objects have simple properties as String properties..
> i want write one property of one object of ArrayList or
> two property of the one object of ArrayList...or
> three property of the three object of ArrayList.
>
> i cannot use 'iterate' because i want write a single property of a single
> object of a ArrayList.
> how can i do it?
>
> thanks in advance
>
> -Mensagem original-
> De: Geoffrey Mroz [mailto:[EMAIL PROTECTED]]
> Enviada em: quinta-feira, 10 de janeiro de 2002 12:21
> Para: [EMAIL PROTECTED]
> Assunto: Re: RES: 
>
>
> Are you doing nested ArrayLists?
>
> If so then try something like:
> 
>   
> Use of the Struts iterate tag with nested ArrayLists representing
> rows/cols:
> <%@ page import="java.util.ArrayList" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>
> <%
>   ArrayList rows = new ArrayList();
>   ArrayList rowOne = new ArrayList();
>   rowOne.add("bob");
>   rowOne.add("jones");
>   rowOne.add("[EMAIL PROTECTED]");
>   ArrayList rowTwo = new ArrayList();
>   rowTwo.add("ted");
>   rowTwo.add("Walters");
>   rowTwo.add("[EMAIL PROTECTED]");
>   ArrayList rowThree = new ArrayList();
>   rowThree.add("Mary");
>   rowThree.add("Smith");
>   rowThree.add("[EMAIL PROTECTED]");
>
>   rows.add(rowOne);
>   rows.add(rowTwo);
>   rows.add(rowThree);
>
>   request.setAttribute("DATASET",rows);
> %>
> 
>   
> 
>
>  
>
>  
>
> 
>   
> 
>   
> 
>
>
> If not, then try this:
> 
>   
> Use of the Struts iterate tag:
> <%@ page import="java.util.ArrayList" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>
> <%
>   ArrayList myList = new ArrayList();
>   myList.add("Item One");
>   myList.add("Item Two");
>   myList.add("Item Three");
>   request.setAttribute("MYLIST",myList);
> %>
> 
>   
>   
> 
>   
>   
> 
>   
> 
>
> Sorry for the excessive code, but these do work.
>
> Hope that helps.
>
> -- Geoff
>
> > thanks for the fast reply but...
> > for example:
> > listClients - collection of client's
> > objects(ArrayList for example)
> > client - object
> > code - client object property
> >
> > i want write code in html form.
> > how can i do it?
> >
> > -Mensagem original-
> > De: Olivier Dinocourt
> > [mailto:[EMAIL PROTECTED]]
> > Enviada em: quinta-feira, 10 de janeiro de 2002 11:56
> > Para: Struts Users Mailing List
> > Assunto: Re: 
> >
> >
> > 
> >
> > hope I'm not wrong :)
> >
> > - Original Message -
> > From: "Rubens Gama" <[EMAIL PROTECTED]>
> > To: "Struts-User" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 10, 2002 2:52 PM
> > Subject: 
> >
> >
> > > How can i write an object's property that belongs
> > to an 'ArrayList' object
> > > using the clause ?
> > >
> > > Thanks in advance
> > >
> > >
> > >
> > > --
> > > 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]>
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> Sent via jApache.org
>
> --
> 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]>
>


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
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]>




RES: RES:

2002-01-10 Thread Rubens Gama

i'm not doing nested ArrayLists.
It´s an ArrayList of objects.
the objects have simple properties as String properties..
i want write one property of one object of ArrayList or
two property of the one object of ArrayList...or
three property of the three object of ArrayList.

i cannot use 'iterate' because i want write a single property of a single
object of a ArrayList.
how can i do it?

thanks in advance

-Mensagem original-
De: Geoffrey Mroz [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 10 de janeiro de 2002 12:21
Para: [EMAIL PROTECTED]
Assunto: Re: RES: 


Are you doing nested ArrayLists?

If so then try something like:

  
Use of the Struts iterate tag with nested ArrayLists representing
rows/cols:
<%@ page import="java.util.ArrayList" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%
  ArrayList rows = new ArrayList();
  ArrayList rowOne = new ArrayList();
  rowOne.add("bob");
  rowOne.add("jones");
  rowOne.add("[EMAIL PROTECTED]");
  ArrayList rowTwo = new ArrayList();
  rowTwo.add("ted");
  rowTwo.add("Walters");
  rowTwo.add("[EMAIL PROTECTED]");
  ArrayList rowThree = new ArrayList();
  rowThree.add("Mary");
  rowThree.add("Smith");
  rowThree.add("[EMAIL PROTECTED]");

  rows.add(rowOne);
  rows.add(rowTwo);
  rows.add(rowThree);

  request.setAttribute("DATASET",rows);
%>

  

   
 
   
 
   

  

  



If not, then try this:

  
Use of the Struts iterate tag:
<%@ page import="java.util.ArrayList" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%
  ArrayList myList = new ArrayList();
  myList.add("Item One");
  myList.add("Item Two");
  myList.add("Item Three");
  request.setAttribute("MYLIST",myList);
%>

  
  

  
  

  


Sorry for the excessive code, but these do work.

Hope that helps.

-- Geoff

> thanks for the fast reply but...
> for example:
> listClients - collection of client's
> objects(ArrayList for example)
> client - object
> code - client object property
>
> i want write code in html form.
> how can i do it?
>
> -Mensagem original-
> De: Olivier Dinocourt
> [mailto:[EMAIL PROTECTED]]
> Enviada em: quinta-feira, 10 de janeiro de 2002 11:56
> Para: Struts Users Mailing List
> Assunto: Re: 
>
>
> 
>
> hope I'm not wrong :)
>
> - Original Message -
> From: "Rubens Gama" <[EMAIL PROTECTED]>
> To: "Struts-User" <[EMAIL PROTECTED]>
> Sent: Thursday, January 10, 2002 2:52 PM
> Subject: 
>
>
> > How can i write an object's property that belongs
> to an 'ArrayList' object
> > using the clause ?
> >
> > Thanks in advance
> >
> >
> >
> > --
> > 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]>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


--
Sent via jApache.org

--
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]>




RES:

2002-01-10 Thread Rubens Gama

thanks for the fast reply but...
for example:
listClients - collection of client's objects(ArrayList for example)
client - object
code - client object property

i want write code in html form.
how can i do it?

-Mensagem original-
De: Olivier Dinocourt [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 10 de janeiro de 2002 11:56
Para: Struts Users Mailing List
Assunto: Re: 




hope I'm not wrong :)

- Original Message -----
From: "Rubens Gama" <[EMAIL PROTECTED]>
To: "Struts-User" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 2:52 PM
Subject: 


> How can i write an object's property that belongs to an 'ArrayList' object
> using the clause ?
>
> Thanks in advance
>
>
>
> --
> 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]>





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




struts-user@jakarta.apache.org

2002-01-10 Thread Rubens Gama

How can i write an object's property that belongs to an 'ArrayList' object
using the clause ?

Thanks in advance



--
To unsubscribe, e-mail:   
For additional commands, e-mail: