Re: jsp not rendered

2004-01-10 Thread Otávio Augusto
About this issue, I can say that if I remove the following code from my page, it works 
fine.So, what is wrong with this code?



  

  
Nome: 
Rua: 
Número: 
Bairro: 
Data de nascimento: 


  
  Selecionar
  

  




buscaResp is the name of the bean, which is a List itself (i do a 
request.getSession().setAttribute("buscaResp", obj)), where obj is a java.util.List.
The action /adicionaResponsavelEncontrado is mapped correctly.
A similar iterator works in another page.

what is wrong?
Thanks

Otávio Augusto


On Sat, 10 Jan 2004 23:52:38 -0300
Otávio Augusto <[EMAIL PROTECTED]> wrote:

> I have a jsp which sometimes is rendered, and sometimes it simply isn't. it is 
> correctly mapped. it is very similar to another one which works fine...I just can't 
> fine the reason for that. The code is simple and similar to another one which works.
> If someone has any explanation, that would be great (I imagine I have a leak of ram 
> memory).
> 
> thanks in advance
> 
> Otávio Augusto
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



jsp not rendered

2004-01-10 Thread Otávio Augusto
I have a jsp which sometimes is rendered, and sometimes it simply isn't. it is 
correctly mapped. it is very similar to another one which works fine...I just can't 
fine the reason for that. The code is simple and similar to another one which works.
If someone has any explanation, that would be great (I imagine I have a leak of ram 
memory).

thanks in advance

Otávio Augusto

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



SOLVED --> RE: Application Module Configuration

2004-01-10 Thread Kunal H. Parikh
Hi All!

I solved this problem myself.

Being new to struts, I was attempting to use /action instead of *.do as
the URL pattern.

Thanks all, anyway!

Kunal

-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 11 January 2004 12:27
To: 'Struts Users Mailing List'
Subject: Application Module Configuration

Hi All!

I am attempting to setup an application module named "my-module" as
follows. However, whenever I send a request as 
http://127.0.0.1/my-app/my-module/action/index/
I get a 404 page returned.

Now, when I send a request to the default module, i.e.
http://127.0.0.1/my-app/action/index/
the appropriate jsp page is displayed.

Also, when I just do http://127.0.0.1/my-app/my-module/action/, I still
get a 404 error, whilst, from my understanding, I should get a 400
error.

The following is the additional configuration I have added for my new
application module.

=== web.xml ===
...


config
/WEB-INF/struts-config.xml


config/my-module

/WEB-INF/struts-config-my-module.xml

...

...
=== web.xml ===

Is there anything else that I need to do ?

Thanks in advance (TIA),

Kunal



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





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



Application Module Configuration

2004-01-10 Thread Kunal H. Parikh
Hi All!

I am attempting to setup an application module named "my-module" as
follows. However, whenever I send a request as 
http://127.0.0.1/my-app/my-module/action/index/
I get a 404 page returned.

Now, when I send a request to the default module, i.e.
http://127.0.0.1/my-app/action/index/
the appropriate jsp page is displayed.

Also, when I just do http://127.0.0.1/my-app/my-module/action/, I still
get a 404 error, whilst, from my understanding, I should get a 400
error.

The following is the additional configuration I have added for my new
application module.

=== web.xml ===
...


config
/WEB-INF/struts-config.xml


config/my-module

/WEB-INF/struts-config-my-module.xml

...

...
=== web.xml ===

Is there anything else that I need to do ?

Thanks in advance (TIA),

Kunal



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



previous page navigation

2004-01-10 Thread David Liles
I am working on a Struts web app and need to find a relatively simple way to allow the 
user to navigate to their previous page. How can I dynamically redirect the user back 
through the action mapping that got them to their present location within the web app?
 
Thanks
 
-Dave


Re: expiring time

2004-01-10 Thread Daniel H. F. e Silva
Otávio,
 Take a look on HttpSession class reference. I'm sure you'll find answer there.

Cheers,
 Daniel Silva.

--- Otávio Augusto <[EMAIL PROTECTED]> wrote:
> How to I set the expiring time for a session (or the sessions)?
> 
> Thanks in advance
> 
> Otávio Augusto
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: with formatKey ???

2004-01-10 Thread Daniel H. F. e Silva
Mauricio,
 If you have access to JSTL in your server container you could try formatting taglib.
  and  are two very useful tags. I use them a lot.
 They accept formatting patterns like classes from java.text package (In fact, they 
use classes
from java.text package on their implementations). Take a look on any JSTL book or doc.
 In worst case, you have to code a method or a custom taglib to transform your number 
attribute to
a String object and then process it to get proper formatting. I'm sure that is pretty 
easy.
 Hope this posting is useful to you.

Regards,
 Daniel Silva.

PS: Nice to see other brazilians in struts-users.
 


--- "Mauricio T. Ferraz" <[EMAIL PROTECTED]> wrote:
> Anybody knows how can I show I CNPJ in this format (33.435.231/0001-27) ???
> I my bean I just have number (33435231000127) 
> So I have to show with ". "and  " / " 
> There are a way to put something in the resource bundle??? What??
> 
> []´s
> Mauricio


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: Struts EJB deployment

2004-01-10 Thread Manfred Wolff
Rick.

Tell us what is exactly your problem. I have a productive system with 
the same product stack and have no problem. Put Struts in your Webapp 
and nothing should go worth.

Manfred

Rick Alsopp wrote:

Hi everyone,

Background:
=
I have spent a couple of years with J2EE and am a recent convert to Struts.  I have 
successfully run all the Struts examples and developed some of my own (deployed using 
Tomcat 4.1.27).  However, I am now in the process of developing Struts components to 
interface with a number of EJBs that I have previously developed (deployed using JBoss 
3.2.1).  Although I don't have any prob's with incorporating both technologies (yet), 
I AM having problems when attempting to deploy Struts + EJBs.
Development Environment:
===
Eclipse 2.1.2
Lomboz 2.1.2
Struts 1.1
Easy Struts 0.6.4
JBoss 3.1.2
JBossIDE
Tomcat 4.1.27
Sysdeo
Apache 1.3
Question:
===
Does anyone have any advice on container choice/combination/configuration for 
Struts/EJB deployment?
I am considering running JBoss and Tomcat separately, but have also considered using JBoss 3.2.2 (bundled with Tomcat).  I have found much info on people who are running different configs for this purpose, but have found little if no useful info on getting the two to work together. :-|

Thanks in advance for any help/suggestions,

Rick Alsopp.



-
 Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
 

--
===
Dipl.-Inf. Manfred Wolff
---
phone neusta  : +49 421 20696-27
phone : +49 421 534522
mobil : +49 178 49 18 434
eFax  : +49 1212 6 626 63 965 33
---

Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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


Re: EJB Tier

2004-01-10 Thread Christian Bollmeyer
Am Freitag, 9. Januar 2004 17:44 schrieb Ricardo de Souza Moura:

> I wish a advice.
> I have been using struts and I use DAO and JDBC to access my
> Database. I am not using EJB, but I am wanting use it. The Struts
> framework doesn't have anything about EJB. Will I need to do my own
> framework to treat with EJB or there are a best option ?
> thanks

If you can get hold of it, there's an excellent chapter (13) about
interfacing Struts to EJB in 'Programming Jakarta Struts' (O'Reilly,
the one with the horse on the cover). Generally, think of the
entire web tier (including Struts) as being just another client.
The details, in particular the EJB part, require a thorough
understanding of its underlying concepts and architecture
and can't be summed up in one or two paragraphs. If
you're serious about EJBs, you definitely have to read 
some good books on this matter first, and you won't get
away without an advanced background knowledge of UML and
Patterns. Be prepared for something challenging ahead
and lots of dry and sometimes boring lecture in-between.

HTH,
-- Chris.


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



Struts EJB deployment

2004-01-10 Thread Rick Alsopp
Hi everyone,
 
Background:
=
I have spent a couple of years with J2EE and am a recent convert to Struts.  I have 
successfully run all the Struts examples and developed some of my own (deployed using 
Tomcat 4.1.27).  However, I am now in the process of developing Struts components to 
interface with a number of EJBs that I have previously developed (deployed using JBoss 
3.2.1).  Although I don't have any prob's with incorporating both technologies (yet), 
I AM having problems when attempting to deploy Struts + EJBs.
 
Development Environment:
===
Eclipse 2.1.2
Lomboz 2.1.2
Struts 1.1
Easy Struts 0.6.4
JBoss 3.1.2
JBossIDE
Tomcat 4.1.27
Sysdeo
Apache 1.3
 
Question:
===
Does anyone have any advice on container choice/combination/configuration for 
Struts/EJB deployment?
 
I am considering running JBoss and Tomcat separately, but have also considered using 
JBoss 3.2.2 (bundled with Tomcat).  I have found much info on people who are running 
different configs for this purpose, but have found little if no useful info on getting 
the two to work together. :-|
 
Thanks in advance for any help/suggestions,
 
Rick Alsopp.



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now

Re: Form data preloading

2004-01-10 Thread Christian Bollmeyer
Am Donnerstag, 8. Januar 2004 21:58 schrieb Patrice Sicaud:
> Before I go half-cock about this, I was curious about the cleaner way
> to preload a form.
> For example, prior to authenticating users who forgot their user id,
> I need to retrieve (from the database) the list of possible secret
> questions that will be used to validate their responses (secret
> answer). So... what do I do? provide an action without corresponding
> presentation layer element? May be an FindForwardAction? Or is it
> preferable to chain 2 actions. I have read somewhere that the latter
> was not recommended. May be, it makes no difference???
> Any pointer would be appreciated...

I understand you need a rather static, global list which is to be read
from the database before presenting the login form | authenticating
the user. There are several approaches for this.

1. If your server supports Servlets 2.3, you can use a 'resource'
listener which gets the list from the database and stores it as a
Collection in Application scope. Then, you can populate your
login form with the data from this Collection. Use this if your
questions are rather 'fixed', as the listener will be reinitialized
only if the application is reloaded.

2. An alternative solution would be to write a small custom
Action which gets the list from the database, stores it in
request scope and forwards to your login page. As the
details of getting the list should be hidden from the Struts
part, this typically more or less boils down to two lines
of code (the Model call plus the one that stores the
results) plus the forward to your login form. The advantage
of this approach is that it's dynamic; if the number of
question changes, the list will be up-to-date upon each
new login attempt. The drawback is that an additional
backend call is required for each login which can be
a factor in situations of high traffic volume.

We use both these approaches depending on the
concrete scenario, and they both work well. Then,
I doubt subclassing ActionServlet might be necessary
or even recommendable here.

> Thx
> Patrice

HTH,
-- Chris.


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



JMS and DMZ

2004-01-10 Thread leonnewsgroup
Hi there,

I would like to write an application with JMS API that send messages from
web server to an app server. The thing is that web servers are in the DMZ
and only HTTP protocol can go through the firewall instead of JMS. Could
anyone give out some suggestions to solve the problem?
Thanks.

James

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



with formatKey ???

2004-01-10 Thread Mauricio T. Ferraz
Anybody knows how can I show I CNPJ in this format (33.435.231/0001-27) ???
I my bean I just have number (33435231000127) 
So I have to show with ". "and  " / " 
There are a way to put something in the resource bundle??? What??

[]´s
Mauricio

with formatKey ???

2004-01-10 Thread Mauricio T. Ferraz
Anybody knows how can I show I CNPJ in this format (33.435.231/0001-27) ???
I my bean I just have number (33435231000127) 
So I have to show with ". "and  " / " 
There are a way to put something in the resource bundle??? What??

[]´s
Mauricio



AW: iterate && DynaActionForm values from a HashMap

2004-01-10 Thread Oliver Thiel
Thank's Mark!  

There are just two things left I need to know!

1.
Do you also know how I can archive something like that?
" />

(- I want to dynamically print out the messages from the resource
properties!)

2.
Do you know any good resource on that?


Thanks again 
Oliver


-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 10. Januar 2004 17:16
An: Struts Users Mailing List
Betreff: Re: iterate && DynaActionForm values from a HashMap

This might work as you have things, but there are more elegant ways of 
achieving what you want.

" 
type="text">


On 10 Jan 2004, at 15:51, Oliver Thiel wrote:

> Hi all,
>
> I have some troubles out print some DynaActionForm values from a map -
> using the iterate tag! Can anyone help me?
>
>
> Thanks
> Oliver
>
>
> CreateForm:
>
> DynaActionForm mappedForm2 = (DynaActionForm) form;
> HashMap mappedForm = new HashMap();
>
> mappedForm.put("username", "");
> mappedForm.put("email", "");
> mappedForm.put("password", "");
> mappedForm.put("conf_pwd", "");
>
> mappedForm2.set("mappedForm", mappedForm);
> request.setAttribute("mappedForm2", mappedForm2);
>
>
>
> struts-config.xml
>
>  type="org.apache.struts.action.DynaActionForm">
> 
> 
>
>
> mappedForm.jsp
>
>  type="java.util.HashMap"/ >
>   < logic:iterate id="mappedForm" name="mappedForm2"
> property="mappedForm">
>  mappedForm " property=" mappedForm2"/>" />
> " />
> 
>
>
>
>  WHAT I GET:
>
> {username=,email=,password=,conf_pwd=}
> {username=,email=,password=,conf_pwd=}
> {username=,email=,password=,conf_pwd=}
> {username=,email=,password=,conf_pwd=}
>
>
>
> WHAT I TRY TO GET:
>
> User name*:
> 
>
>


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


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



Re: iterate && DynaActionForm values from a HashMap

2004-01-10 Thread Mark Lowe
This might work as you have things, but there are more elegant ways of 
achieving what you want.

" 
type="text">

On 10 Jan 2004, at 15:51, Oliver Thiel wrote:

Hi all,

I have some troubles out print some DynaActionForm values from a map -
using the iterate tag! Can anyone help me?
Thanks
Oliver
CreateForm:

DynaActionForm mappedForm2 = (DynaActionForm) form;
HashMap mappedForm = new HashMap();
mappedForm.put("username", "");
mappedForm.put("email", "");
mappedForm.put("password", "");
mappedForm.put("conf_pwd", "");
mappedForm2.set("mappedForm", mappedForm);
request.setAttribute("mappedForm2", mappedForm2);


struts-config.xml




mappedForm.jsp


  < logic:iterate id="mappedForm" name="mappedForm2"
property="mappedForm">
" />
" />



 WHAT I GET:

{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}


WHAT I TRY TO GET:

User name*:




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


iterate && DynaActionForm values from a HashMap

2004-01-10 Thread Oliver Thiel
Hi all,
 
I have some troubles out print some DynaActionForm values from a map -
using the iterate tag! Can anyone help me?
 
 
Thanks
Oliver
 
 
CreateForm:
 
DynaActionForm mappedForm2 = (DynaActionForm) form;
HashMap mappedForm = new HashMap();
 
mappedForm.put("username", "");
mappedForm.put("email", "");
mappedForm.put("password", "");
mappedForm.put("conf_pwd", "");
 
mappedForm2.set("mappedForm", mappedForm);
request.setAttribute("mappedForm2", mappedForm2);
 
 
 
struts-config.xml
 



 
 
mappedForm.jsp
 

  < logic:iterate id="mappedForm" name="mappedForm2"
property="mappedForm">
" />
" /> 

 
 
 
 WHAT I GET:
 
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
{username=,email=,password=,conf_pwd=}
 
 
 
WHAT I TRY TO GET:
 
User name*:
 
 
 


Re: Detecting PDF plugin on users browser

2004-01-10 Thread Mark Lowe
on mac and linux also?

On 10 Jan 2004, at 12:07, Prashanth.S wrote:

http://www.skyzyx.com/scripts/acrobat.php
above script will detect for both IE and netscape
Mark Lowe <[EMAIL PROTECTED]> wrote:
Works only on windows, I've done this sort of thing before where you
use javascript to write vbscript and all that jazz. At the end of the
day IMO best to assume that the user knows what a pdf is and know how
they want to read it.
I guess you could use something like this and just return a link for
folks who don't use windows.
On 10 Jan 2004, at 11:00, Guillermo Meyer wrote:

Have you seen http://www.dithered.com/javascript/acrobat_detect/ ?

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: Sábado, 10 de Enero de 2004 12:08 a.m.
To: [EMAIL PROTECTED]
Subject: Detecting PDF plugin on users browser
Hi all,
I need to detect weather pdf plugin is installed on users browser or
not??? I have used "Accept" header from request to get all the mime
types but it is not giving "application/pdf" as one of mime types and
its giving rest of mime types along with */*
Than i used java script which creates Active x objectit works fine
when i embed that on a standalone html but when i use the same html in
resin web server it falis to create active x objectSo are there 
any
other alternatives

Thanks
Prashanth
-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Detecting PDF plugin on users browser

2004-01-10 Thread Prashanth.S
http://www.skyzyx.com/scripts/acrobat.php
above script will detect for both IE and netscape

Mark Lowe <[EMAIL PROTECTED]> wrote:
Works only on windows, I've done this sort of thing before where you 
use javascript to write vbscript and all that jazz. At the end of the 
day IMO best to assume that the user knows what a pdf is and know how 
they want to read it.

I guess you could use something like this and just return a link for 
folks who don't use windows.


On 10 Jan 2004, at 11:00, Guillermo Meyer wrote:

> Have you seen http://www.dithered.com/javascript/acrobat_detect/ ?
>
> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: Sábado, 10 de Enero de 2004 12:08 a.m.
> To: [EMAIL PROTECTED]
> Subject: Detecting PDF plugin on users browser
>
>
> Hi all,
> I need to detect weather pdf plugin is installed on users browser or
> not??? I have used "Accept" header from request to get all the mime
> types but it is not giving "application/pdf" as one of mime types and
> its giving rest of mime types along with */*
>
> Than i used java script which creates Active x objectit works fine
> when i embed that on a standalone html but when i use the same html in
> resin web server it falis to create active x objectSo are there any
> other alternatives
>
> Thanks
> Prashanth
>
>
> -
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Re: Detecting PDF plugin on users browser

2004-01-10 Thread Mark Lowe
Works only on windows, I've done this sort of thing before where you 
use javascript to write vbscript and all that jazz. At the end of the 
day IMO best to assume that the user knows what a pdf is and know how 
they want to read it.

I guess you could use something like this and just return a link for 
folks who don't use windows.

On 10 Jan 2004, at 11:00, Guillermo Meyer wrote:

Have you seen http://www.dithered.com/javascript/acrobat_detect/ ?

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: Sábado, 10 de Enero de 2004 12:08 a.m.
To: [EMAIL PROTECTED]
Subject: Detecting PDF plugin on users browser
Hi all,
I need to detect weather pdf plugin is installed on users browser or
not??? I have used "Accept" header from request to get all the mime
types but it is not giving "application/pdf" as one of mime types and
its giving rest of mime types along with */*
Than i used java script which creates Active x objectit works fine
when i embed that on a standalone html but when i use the same html in
resin web server it falis to create active x objectSo are there any
other alternatives
Thanks
Prashanth
-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


populate indexed property : skipping read-only property

2004-01-10 Thread Pierre Henry
Hi all,

I am trying to use an indexed property following the howto 
(http://www.apache.org/~sraeburn/maven/faqs/indexedprops.html). I also 
read many many related mails on this list, but... :(

I have no problem with the getters, but unfortunately, I can not make it 
work to set the values of the indexed property.

The property is a simple String. The number of  them is completely dynamic.

The output of tomcat seems to indicate that the BeanUtils.populate does 
not "see" my indexed setter. Here is the output :
...
[DEBUG] RequestProcessor - - Populating bean properties from this request
[DEBUG] BeanUtils - 
-BeanUtils.populate([EMAIL PROTECTED]
f62, {customerCategoryId[2]=[Ljava.lang.String;@1703484, 
customerPhone=[Ljava.la
ng.String;@187e184, customerCategoryId[0]=[Ljava.lang.String;@1e6cf07, 
customerL
astName=[Ljava.lang.String;@2209db, 
customerFirstName=[Ljava.lang.String;@b53b32
, customerAddress=[Ljava.lang.String;@41647f, 
customerCategoryId[1]=[Ljava.lang.
String;@12cd736, customerEmail=[Ljava.lang.String;@e51bda})
[DEBUG] BeanUtils - -Skipping read-only property
[DEBUG] ConvertUtils - -Convert string 's' to class 'java.lang.String'
[DEBUG] BeanUtils - -Skipping read-only property
[DEBUG] ConvertUtils - -Convert string 's' to class 'java.lang.String'
[DEBUG] ConvertUtils - -Convert string 's' to class 'java.lang.String'
[DEBUG] ConvertUtils - -Convert string 's' to class 'java.lang.String'
[DEBUG] BeanUtils - -Skipping read-only property
[DEBUG] ConvertUtils - -Convert string 's' to class 'java.lang.String'
[DEBUG] RequestProcessor - - Validating input form properties
[DEBUG] RequestProcessor - - Looking for Action instance for class 
singha.actions.ReservationStep3Action
...

Here is a snippet of my ReservationStep3Form FormBean :
  
   private ArrayList customerCategoryIds = new ArrayList();
  
   public void reset(ActionMapping mapping,
 HttpServletRequest request)
   {
 ...
 customerCategoryIds = new ArrayList();
   }

   public String getCustomerCategoryId(int index){
 System.out.println("getCustomerCategoryId");
 if(index < customerCategoryIds.size()) return 
(String)customerCategoryIds.get(index);
 return null;
   }
  
   public void setCustomerCategroryId(int index, String value){
 if(index >= customerCategoryIds.size()) 
customerCategoryIds.ensureCapacity(index+1);
 customerCategoryIds.set(index,  value);
   }

Here is the relevant part of the JSP :
I have a list of positions object from the action. I want to add some 
info to these positons, and in the same form get some infos about the 
customer (name...).



   

  
   -
  
  
 
  

//other fields (customer name, address etc...)

This JSP generates the right html like :


Normal - $14.00
...

DO I have to add something to struts-config ? Or what do I have to do, what do I do wrong  ? Any help is really welcome !

Pierre Henry



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


RE: Detecting PDF plugin on users browser

2004-01-10 Thread Guillermo Meyer
Have you seen http://www.dithered.com/javascript/acrobat_detect/ ?

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 10 de Enero de 2004 12:08 a.m.
To: [EMAIL PROTECTED]
Subject: Detecting PDF plugin on users browser


Hi all,
I need to detect weather pdf plugin is installed on users browser or
not??? I have used "Accept" header from request to get all the mime
types but it is not giving "application/pdf" as one of mime types and
its giving rest of mime types along with */*
 
Than i used java script which creates Active x objectit works fine
when i embed that on a standalone html but when i use the same html in
resin web server it falis to create active x objectSo are there any
other alternatives
 
Thanks
Prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


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