RE: [HELP] tag can not write Japanese or Vietnamese

2005-04-12 Thread Sunny
Try this out:
(B
(B
(B
(B
(BNOTE: Assuming browser locale is Japanese.
(B
(B
(B-Original Message-
(BFrom: Pham Anh Tuan [mailto:[EMAIL PROTECTED] 
(BSent: Wednesday, April 13, 2005 12:11 PM
(BTo: Struts Users Mailing List
(BSubject: [HELP]  tag can not write Japanese or Vietnamese
(B
(BHi all,
(B
(BI got a problem when I write out data on jsp.
(B
(BI have a String = "わたし"
(B
(Bwhich means $B$o$?$7(B in Japanese
(B
(BI use 
(B
(Bit only shows "わたし"
(B
(Bplz show me how to solve this problem.
(B
(Bthanks.
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: [HELP] tag can not write Japanese or Vietnamese

2005-04-12 Thread Sunny
Try this out:
(B
(B
(B
(B
(BNOTE: Assuming browser locale is Japanese.
(B
(B
(B-Original Message-
(BFrom: Pham Anh Tuan [mailto:[EMAIL PROTECTED] 
(BSent: Wednesday, April 13, 2005 12:11 PM
(BTo: Struts Users Mailing List
(BSubject: [HELP]  tag can not write Japanese or Vietnamese
(B
(BHi all,
(B
(BI got a problem when I write out data on jsp.
(B
(BI have a String = "わたし"
(B
(Bwhich means $B$o$?$7(B in Japanese
(B
(BI use 
(B
(Bit only shows "わたし"
(B
(Bplz show me how to solve this problem.
(B
(Bthanks.
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

[HELP] tag can not write Japanese or Vietnamese

2005-04-12 Thread Pham Anh Tuan
Hi all,

I got a problem when I write out data on jsp.

I have a String = "わたし"

which means ããã in Japanese

I use 

it only shows "わたし"

plz show me how to solve this problem.

thanks.

Re: The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Rodolfo García Esteban/CYII
Thnaks Dave,

This is my case, sometimes I use the same page to input an to show the 
data, and sometimes the form is empty.

I work wit your advise and the Neill too

Rodolfo García Esteban
Canal Isabel II
División de Aplicaciones Técnicas
C/ Santa Engracia, 125
Edificio 8
Tel. 91 545 10 00 - Ext. 2128
Fax. 91 545 14 41
___




Dave Newton <[EMAIL PROTECTED]>
12/04/2005 17:15
Por favor, responda a "Struts Users Mailing List"

 
Para:   Struts Users Mailing List 
cc: (cco: Rodolfo García Esteban/CYII)
Asunto: Re: The configuration of validation.xml crashes against Action 
Servlet.


Niall Pemberton wrote:

>Having said that, is this really what you have in your struts-config.xml? 
I would have expected to see validate="true" as well.
> 
>
I (almost) never use the validate="true" attribute because I (almost) 
always use the same action for creation and editing--if the 
auto-validation is on it validates an empty form, which is almost never 
right, so I call validation only on POSTs.

It's handled by a base Action class, so I (almost) never have to think 
about it, but I _do_ have to remember to set it to false in the 
struts-config to avoid confusion later.

Which leads me to a somewhat off-topic question: How do other people do 
this? I haven't used validate="true" since (almost) the time I started 
using Struts because of this issue.

Dave



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





Re: The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Rodolfo García Esteban/CYII
I don't known anything about validate="true", Where I have to put this?, 

Thank you,. Niall

Rodolfo 
___




"Niall Pemberton" <[EMAIL PROTECTED]>
12/04/2005 15:44
Por favor, responda a "Struts Users Mailing List"

 
Para:   "Struts Users Mailing List" 
cc: (cco: Rodolfo García Esteban/CYII)
Asunto: Re: The configuration of validation.xml crashes against Action 
Servlet.


You need to specify an "input" attribute on the "action" element in your
struts-config.xml. When validation fails Struts tries to forward to 
whatever
is specified in the "input" attribute - as you don't have one, thats why
you're getting that error message. Having said that, is this really what 
you
have in your struts-config.xml? I would have expected to see 
validate="true"
as well.

Niall

- Original Message - 
From: "Rodolfo García Esteban/CYII" <[EMAIL PROTECTED]>
Sent: Tuesday, April 12, 2005 1:26 PM


Hi

I´m using struts 1.2.4 and I'm starting with validator. I have done all to

config validator in a application I had. After set up the validator I
obtain
the next error
http 500 : No input attribute for mapping path /FiltroCoche





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





Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-12 Thread Pham Anh Tuan
Right, like Mark said, I'm following JPetStoreExample, Rick :), when you use 
DAO, ur Bean must extends from Basebean of DAO pattern.

So, if I want to do Validation, I only do it on Server. So, if I want do 
Validation on Client, I can not but I use javascript.

so, thank you all :)
- Original Message - 
From: "Mark Bennett" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, April 12, 2005 7:32 PM
Subject: Re: [HELP] How to do validation in Struts + iBatis + DAO???

Rick, I believe that he is referring the the JPetStore download from the
iBatis site. I am also using the additional struts helper package that comes
in that demo. So no, it really doesn't have anything to do with iBatis
except that it probably came from that web site.
Pham, if you continue to follow the JPetSoreExample then can do server side
validation the way that it does by extending the validate() method of
BaseBean. Then you can set validate="true" in your struts-config.
Mark
On Apr 12, 2005 12:54 AM, Rick Reumann <[EMAIL PROTECTED]> wrote:
Pham Anh Tuan wrote the following on 4/11/2005 4:02 AM:
> Hi all,
>
> I don't know how to do Validation in Struts + iBatis + Dao.
>
> Because when I use above Structure, I must extends from BaseBean to
> create my own Bean. As you know, if we want to use Validator of
> Struts, our ActionForm must extends from ValidatorForm.
Why do you have to extend BaseBean for your ActionForms and not
ValidatorActionForm? I'm confused. iBATIS should care less about what
the front end is doing so iBATIS doesn't care about your ActionForm.
You'll have to explain more what this BaseBean is - I'm assuming it's of
type ActionForm? I've never needed to extend an ActionForm that I can
recall. Actions, yes, but not ActionForms (including all the other
flavors ValidatorActionForm, ValidatorForm, etc).
--
Rick
-
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: Cron type jobs in struts

2005-04-12 Thread Janarthan Sathiamurthy
I am sorry.. Was replying to another question.
Best Regards,
Janarthan S

--- Janarthan Sathiamurthy <[EMAIL PROTECTED]>
wrote:
> http://strutstestcase.sourceforge.net/
> is the answer.
> 
> Best Regards,
> Janarthan S
> 
> --- Brian McGovern <[EMAIL PROTECTED]> wrote:
> > Ok, This may be off topic cause the answer may not
> > be in struts but here goes.  
> > I have a need to run nightly jobs that inspect my
> > data and do certain things based on what it
> finds.. 
> > Now i was goin to write some java classes to be
> > invoked by cron.  But I've never done this before
> in
> > java and wonder if there is a better way to
> approach
> > this? any thoughts?
> > thanks
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Make Yahoo! your home page 
> http://www.yahoo.com/r/hs
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: The error from validator

2005-04-12 Thread Janarthan Sathiamurthy
Automated testing is the answer
http://strutstestcase.sourceforge.net/

Best Regards,
Janrthan S
--- Rodolfo García Esteban/CYII
<[EMAIL PROTECTED]> wrote:
> How can I see the errors detected by validator? I do
> all the manuals says 
> and I test the applicattion inputting error and I
> don't obtain anything
> 
> Best Regards
> 
> Rodolfo



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: Cron type jobs in struts

2005-04-12 Thread Janarthan Sathiamurthy
http://strutstestcase.sourceforge.net/
is the answer.

Best Regards,
Janarthan S

--- Brian McGovern <[EMAIL PROTECTED]> wrote:
> Ok, This may be off topic cause the answer may not
> be in struts but here goes.  
> I have a need to run nightly jobs that inspect my
> data and do certain things based on what it finds.. 
> Now i was goin to write some java classes to be
> invoked by cron.  But I've never done this before in
> java and wonder if there is a better way to approach
> this? any thoughts?
> thanks
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

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



Re: repopulating dropdown menus when validation errors occur

2005-04-12 Thread Mallikarjun Komma
kurt,
I am putting the  list of values for the drop
down in the form bean as dynaform.set("userList",
list) in theaction class. (userList is a form property
here) but still not able to get the drop down
re-populated back when validation errors occur. 
What am I doing wrong here?

Thanks in advance.


Thanks,
Mallik

--- [EMAIL PROTECTED] wrote:
> Once the user does a submit you have a new request.
> So the old request where your list is is no longer
> in scope and therefore no longer valid.
> 
> One solution would be to set validate="false" in the
> action mapping for  the action and then call the
> form's validate method yourself in the aciton. If
> there are errors you can forward back to the jsp and
> reset the drop down list.
> 
> You can also put the list of values for the drop
> down in the form bean as well. 
> 
> Thanks,
> Kurt
> 
> --
> Kurt Williams
> Marex Services
> 9704 Big Sage NW
> Albuquerque, NM 87114
> [EMAIL PROTECTED]
> 505-897-1012 (office)
> 505-450-7105 (cell)
> 
> 
> > Hi,
> > I am new to struts frame work.I have a question
> > regarding repopulating dropdown menu when
> validation
> > error occurs in the form containing dropdowns.
> > 
> > In my application when user clicks on a link it
> goes
> > to the action class and I get the list to from
> > database and I put it in request scope to display
> in
> > dropdown .
> > but when ever any validation errors occurs on that
> > page, instead of showing the same page I get an
> error
> > saying "Cannot find bean under name (userList-this
> is
> > my list to populate dropdown)". 
> > 
> > What should I do to fix this problem.
> > 
> > any help is appreciated.
> > 
> > Thanks
> > Mallik.
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/
> > 
> >
>
-
> > 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! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: repopulating dropdown menus when validation errors occur

2005-04-12 Thread kurt . e . williams
Once the user does a submit you have a new request. So the old request where 
your list is is no longer in scope and therefore no longer valid.

One solution would be to set validate="false" in the action mapping for  the 
action and then call the form's validate method yourself in the aciton. If 
there are errors you can forward back to the jsp and reset the drop down list.

You can also put the list of values for the drop down in the form bean as well. 

Thanks,
Kurt

--
Kurt Williams
Marex Services
9704 Big Sage NW
Albuquerque, NM 87114
[EMAIL PROTECTED]
505-897-1012 (office)
505-450-7105 (cell)


> Hi,
> I am new to struts frame work.I have a question
> regarding repopulating dropdown menu when validation
> error occurs in the form containing dropdowns.
> 
> In my application when user clicks on a link it goes
> to the action class and I get the list to from
> database and I put it in request scope to display in
> dropdown .
> but when ever any validation errors occurs on that
> page, instead of showing the same page I get an error
> saying "Cannot find bean under name (userList-this is
> my list to populate dropdown)". 
> 
> What should I do to fix this problem.
> 
> any help is appreciated.
> 
> Thanks
> Mallik.
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
> 
> -
> 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]



repopulating dropdown menus when validation errors occur

2005-04-12 Thread Mallikarjun Komma
Hi,
I am new to struts frame work.I have a question
regarding repopulating dropdown menu when validation
error occurs in the form containing dropdowns.

In my application when user clicks on a link it goes
to the action class and I get the list to from
database and I put it in request scope to display in
dropdown .
but when ever any validation errors occurs on that
page, instead of showing the same page I get an error
saying "Cannot find bean under name (userList-this is
my list to populate dropdown)". 

What should I do to fix this problem.

any help is appreciated.

Thanks
Mallik.



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: Cron type jobs in struts (and Schedular with Struts?)

2005-04-12 Thread Yen
I found a few, but still Quartz is the most popular 
http://java-source.net/open-source/job-schedulers

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


RE: HTML Form

2005-04-12 Thread Fogleson, Allen


If there is a different rule on advocating Shale-Struts as Struts.next
for Craig, that is understandable.



But where in his post did he say that Shale-Struts was Struts.next? All
he said was that the way the rest of the world is going (and imho HAS
been going) with a variety of view techniques becoming available, that
an html only option is probably not a viable alternative in the future.
(my paraphrasing/translation)

Al


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



Re: HTML Form

2005-04-12 Thread Craig McClanahan
On 4/12/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
> BINGO -- There is a rule on revolutionary developements in ASF which
> is pretty much abridged by this comment, Craig, and made worse by your
> repeating it.  If you are doing revolutionary development, the ASF
> rule is, as I understand it, that you don't pretend to have superceded
> the present until after your develpment is finished, a vote is taken,
> and you prevail.  Your development with Shale is not only
> revoltionary, it is, in the Struts world, anarchy.  So, I would assume
> you would want to follow the rule and not bad mouth what you are
> trying to change until someone says (a) you are done and have
> something to propose: (b) a vote is taken; and (c) you prevail.  This
> constant carping against Struts is not seemly when your ideas may
> never be accepted.  I guess one way of grabbing power in a
> Machievellian way and with a philosophy of nihilism is to create
> confusion and division.  This comment has already done that, and no
> doubt your continued endorsement will continue to create more
> confusion.
> 

If you look back into history, you'll be amused to note that the
"Rules for Revolutionaries" document came about because of a
revolution *I* precipitated in the Tomcat community (Tomcat 3.2 was
current, and there were competing proposals for the architecture for
Tomcat 4).  The revoluton won in that scenario, for what it's worth --
and the Tomcat code at that time was pretty much as "done" as Shale is
now, in terms of overall functional completeness, but that isn't a
requirement for a decision on a *future* architecture direction.

> I believe in Darwin as does Ted in these matterrs.  But, someone is
> poisoning the pond and giving their own duckies, in my opinion.
> 
> If there is a different rule on advocating Shale-Struts as Struts.next
> for Craig, that is understandable.

It was *proposed* as Struts 2 but not accepted that way.  It was
*accepted* by the PMC (like it or not) as a Struts sub-project, and is
now described that way (other than the historical reference to where
it came from in the first place).

Discussions about how people think Shale (or Struts 1.3, or any of the
other Struts subprojects) should evolve are welcome on the developer
list.  Discussions about the use of any of this stuff are welcome on
the user list.

> 
> Jack
> 

Craig

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



Re: HTML Form

2005-04-12 Thread Dakota Jack
BINGO -- There is a rule on revolutionary developements in ASF which
is pretty much abridged by this comment, Craig, and made worse by your
repeating it.  If you are doing revolutionary development, the ASF
rule is, as I understand it, that you don't pretend to have superceded
the present until after your develpment is finished, a vote is taken,
and you prevail.  Your development with Shale is not only
revoltionary, it is, in the Struts world, anarchy.  So, I would assume
you would want to follow the rule and not bad mouth what you are
trying to change until someone says (a) you are done and have
something to propose: (b) a vote is taken; and (c) you prevail.  This
constant carping against Struts is not seemly when your ideas may
never be accepted.  I guess one way of grabbing power in a
Machievellian way and with a philosophy of nihilism is to create
confusion and division.  This comment has already done that, and no
doubt your continued endorsement will continue to create more
confusion.

I believe in Darwin as does Ted in these matterrs.  But, someone is
poisoning the pond and giving their own duckies, in my opinion.

If there is a different rule on advocating Shale-Struts as Struts.next
for Craig, that is understandable.

Jack

On 4/12/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote:
> 
> >On Apr 12, 2005 2:27 PM, Joe Germuska <[EMAIL PROTECTED]> wrote:
> >
> >
> >>>"I would caution new projects, however, to *not* use the Struts HTML
> >>>tags.  That part of Struts has received fairly little developer
> >>>attention, and should be considered legacy at this point."
> >>>
> >>>
> >>This quote has no attribution, but as a committer, I would disagree
> >>with this assertion.  There are certain cases for which the HTML tag
> >>library are still by far the best way to solve problems, and for
> >>those cases, they are still recommended.
> >>
> >>
> >For the record, that quote was from me, and I still stand by it.
> >Compared to where the rest of the world is going, the limited
> >functionality and HTML-only nature of these tags is not a good long
> >term future bet.
> >
> >
> No no, I was trying to avoid starting it all up again!!!
> 
> ;)
> 
> Dave
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: HTML Form

2005-04-12 Thread Dave Newton
Craig McClanahan wrote:
On Apr 12, 2005 2:27 PM, Joe Germuska <[EMAIL PROTECTED]> wrote:
 

"I would caution new projects, however, to *not* use the Struts HTML
tags.  That part of Struts has received fairly little developer
attention, and should be considered legacy at this point."
 

This quote has no attribution, but as a committer, I would disagree
with this assertion.  There are certain cases for which the HTML tag
library are still by far the best way to solve problems, and for
those cases, they are still recommended.
   

For the record, that quote was from me, and I still stand by it. 
Compared to where the rest of the world is going, the limited
functionality and HTML-only nature of these tags is not a good long
term future bet.
 

No no, I was trying to avoid starting it all up again!!!
;)
Dave


Re: HTML Form

2005-04-12 Thread Craig McClanahan
On Apr 12, 2005 2:27 PM, Joe Germuska <[EMAIL PROTECTED]> wrote:

> >"I would caution new projects, however, to *not* use the Struts HTML
> >tags.  That part of Struts has received fairly little developer
> >attention, and should be considered legacy at this point."
> 
> This quote has no attribution, but as a committer, I would disagree
> with this assertion.  There are certain cases for which the HTML tag
> library are still by far the best way to solve problems, and for
> those cases, they are still recommended.

For the record, that quote was from me, and I still stand by it. 
Compared to where the rest of the world is going, the limited
functionality and HTML-only nature of these tags is not a good long
term future bet.

Craig

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



Re: c:forEach tag and indexed properties problem

2005-04-12 Thread Axel Sachmann
[EMAIL PROTECTED] wrote:
Any data in the dynamicArrayForm.map.artikel ?
 

yes it's work fine without the html:text tag.
here  is an example output.

  bad - Ausstattung PS-Exklusiv 
 2000.0 Euro
 		
 		Typ 1
 		30.05.2005 
 		
 		
 		
 

But it doesn't work with the html:text tag!



Axel Sachmann <[EMAIL PROTECTED]>
12/04/2005 04:11 PM
Please respond to "Struts Users Mailing List"


   To: user@struts.apache.org
   cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
   Subject:c:forEach tag and indexed properties problem
Classification: 


Hi Guys,
i have a problem with the forEach Tag and an indexed propertie!
Please have a look at this peace of code.

   
 - 
  
  
   
  
  
  


 
 
   
Everthing goes okay - but the html:text element throws an error -
Cannot find bean artikel in any scope
Why it doesn't work?
Thanks for Help
Axel Sachmann


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

 


--
profiIT e.K. , die Dienstleistungsplattform für IT - Profis
Axel Sachmann
Amtsgericht Köln, HR A 21756
Melanchthonstraße 29a
51061 Köln
Telefon: +49 221 97716 - 11
Telefax: +49 221 97716 - 12
Internet: http://www.profiIT.de 


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


Re: HTML Form

2005-04-12 Thread Joe Germuska
"I would caution new projects, however, to *not* use the Struts HTML
tags.  That part of Struts has received fairly little developer
attention, and should be considered legacy at this point."
This quote has no attribution, but as a committer, I would disagree 
with this assertion.  There are certain cases for which the HTML tag 
library are still by far the best way to solve problems, and for 
those cases, they are still recommended.

The caveat, which may or may not have been the intention of the 
original writer, is that where JSTL provides functionality which is 
essentially identical to any of Struts tag libraries, the community 
seems generally inclined to direct people to drop the Struts tags in 
favor of the JSTL tags.  In fact, these duplications are mostly in 
the "logic" and "bean" tag libraries, while there is little if 
anything in the "html" library which has been superceded.

It seems likely to me that there will always be value in the Struts 
tags that encapsulate knowledge about the Struts framework, such as 
where to retrieve an ActionMessages object stored by saveErrors() or 
saveMessages().

At 5:09 PM -0400 4/12/05, Dave Newton wrote:
They have gotten _some_ attention, which is nice, but they haven't 
been as aggressively refactored as much of the real framework has, 
which has certainly caused me extra work. Not refactoring work, 
either; no time. But it might happen.
Just curious, Dave -- what kind of extra work?
Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: HTML Form

2005-04-12 Thread Dave Newton
Dakota Jack wrote:
This was not your mistake, Dave.  

Unfortunately, there is a source to that false rumor.  Some of those
so sanguine about the conduct of some members and the Struts community
might want to consider how this happened and to make sure it does not
continue.
 

Maybe we should start up the whole JSF thread again?
Just kidding.
But seriously: nobody said they got no developer attention:
"I would caution new projects, however, to *not* use the Struts HTML
tags.  That part of Struts has received fairly little developer
attention, and should be considered legacy at this point."
They have gotten _some_ attention, which is nice, but they haven't been 
as aggressively refactored as much of the real framework has, which has 
certainly caused me extra work. Not refactoring work, either; no time. 
But it might happen.

Developer attention or not, the Struts HTML tags are fine for many 
purposes, and unless you want to manually include their functionality on 
every JSP page (ew!) or write your own that duplicate the logic but 
are easier to extend/etc. (smaller eew) and you don't want to switch to 
a different view methodology (possible eew), I don't see any real 
alternative.

Dave


Re: HTML Form

2005-04-12 Thread Dakota Jack
This was not your mistake, Dave.  

Unfortunately, there is a source to that false rumor.  Some of those
so sanguine about the conduct of some members and the Struts community
might want to consider how this happened and to make sure it does not
continue.

It is important that the rumor, like other suggestions started about
Struts lately, are untrue.  Thanks for checking, Dave.

Jack

On Apr 12, 2005 10:21 AM, Durham David R Jr Contr 805 CSPTS/SCE
<[EMAIL PROTECTED]> wrote:
> > Its not true that the HTML tags are receiving no developer
> > attention.
> 
> Ok, my mistake.  Thanks for clearing that up.
> 
> - Dave
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: Struts FormBean

2005-04-12 Thread Christine Huang
If you want to set the description property of userObject: 

property="userObject.description" 

On Apr 11, 2005 2:21 AM, Neil Meyer <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I have a problem trying to write back to my form bean. Please tell me if the
> following is possible.
> 
> I have the following formbean :
> 
> private UserObject UserObject;
> 
> private ArrayList userDetails;
> 
> private String mustDisplayButton1;
> 
> private String mustDisplayButton2;
> 
> private List usersid;
> 
> private String otherUserId;
> 
> private String subView;
> 
> The Object UserObject:
> 
> Is something like the following:
> 
> private String description;
> 
> private String controllerFirstname;
> 
> private String controllerSurname;
> 
> private String ownerBranchName;
> 
> private String ownerBranchShortName;
> 
> private String ownerCompanyShortName;
> 
> private String ownerCompanyName;
> 
> With the getter and setter methods.
> 
> On my JSP page I extract values out of the UserObject parameters.
> 
> How do I set a property within my JSP page to the  UserObject.
> 
> Regards
> 
> Neil Meyer
> 
> Project Manager
> 
>

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



Re: c:forEach tag and indexed properties problem

2005-04-12 Thread gdeschen
Any data in the dynamicArrayForm.map.artikel ?





Axel Sachmann <[EMAIL PROTECTED]>
12/04/2005 04:11 PM
Please respond to "Struts Users Mailing List"




 
To: user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)

Subject:c:forEach tag and indexed properties problem
 Classification: 
 


Hi Guys,

i have a problem with the forEach Tag and an indexed propertie!
Please have a look at this peace of code.



  - 
   
   

   
   
   
 

  
  


Everthing goes okay - but the html:text element throws an error -

Cannot find bean artikel in any scope

Why it doesn't work?

Thanks for Help

Axel Sachmann





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





c:forEach tag and indexed properties problem

2005-04-12 Thread Axel Sachmann
Hi Guys,
i have a problem with the forEach Tag and an indexed propertie!
Please have a look at this peace of code.

   
 - 
  
  
   
  
  
  


 
 
   
Everthing goes okay - but the html:text element throws an error -
Cannot find bean artikel in any scope
Why it doesn't work?
Thanks for Help
Axel Sachmann


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


RE: [ot] css question

2005-04-12 Thread Slattery, Tim - BLS
> I am wanting to reduce the blank space between 2 paragraphs. 
> What is the css element that dictates that attribute?

Try playing with margin-top and margin-bottom.


--
Tim Slattery
[EMAIL PROTECTED]


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



Re: [repost, sort of]Populate method of ActionForm

2005-04-12 Thread Hubert Rabago
It sounds like you're on the right track on processPopulate().  There
was a mention before of adding a populate() method in ActionForm, but
AFAIK it's never been thoroughly discussed, so I wouldn't hold my
breath.
If you're not going to call the default processPopulate() method in
your subclass, study the existing code to make sure you don't miss any
functionality that it's providing.

Hubert

On Apr 12, 2005 8:22 AM, David Evans <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I posted this question yesterday, and got no replies, figured i'd try
> rephrasing/simplifying the question.
> 
> I have an application which i want to migrate to struts. It needs to be
> able to use a different populate method depending on the information in
> the submitted request. I am interested in different approaches to this
> sort of thing. What would seem easiest is if there was a populate method
> for the ActionForm. Is there any plan to include this in future struts
> versions? Are there other frameworks that work like struts but have a
> populate method for their equivelence of an ActionForm? I can create my
> own RequestProcessor implementation that overrides processPopulate, what
> implications might this have? Can anyone point to any online discussions
> of varying approaches to the need for greater flexablility in the
> populate phase of the request proccessing?
> 
> Thanks
> 
> Dave
> 
>

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



[ot] css question

2005-04-12 Thread Mick.Knutson
I am wanting to reduce the blank space between 2 paragraphs. What is the css 
element that dictates that attribute?


--
Thanks...
Mick Knutson

Systems Developer
Business Direct Services, Wells Fargo Bank
333 Market Street, SF, CA  94103
(415) 371-2553
[EMAIL PROTECTED]
MAC A0103-223

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."
--



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



Re: Struts FormBean

2005-04-12 Thread Hubert Rabago
It sounds like what you're trying to do can be done, but it would be
better if you clarify what you mean by setting a property within your
jsp to the userobject.  Are you trying to populate a page variable in
the jsp, or are you trying to populate the userobject when the form in
the jsp is submitted?

Hubert

On Apr 11, 2005 2:21 AM, Neil Meyer <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I have a problem trying to write back to my form bean. Please tell me if the
> following is possible.
> 
> I have the following formbean :
> 
> private UserObject UserObject;
> 
> private ArrayList userDetails;
> 
> private String mustDisplayButton1;
> 
> private String mustDisplayButton2;
> 
> private List usersid;
> 
> private String otherUserId;
> 
> private String subView;
> 
> The Object UserObject:
> 
> Is something like the following:
> 
> private String description;
> 
> private String controllerFirstname;
> 
> private String controllerSurname;
> 
> private String ownerBranchName;
> 
> private String ownerBranchShortName;
> 
> private String ownerCompanyShortName;
> 
> private String ownerCompanyName;
> 
> With the getter and setter methods.
> 
> On my JSP page I extract values out of the UserObject parameters.
> 
> How do I set a property within my JSP page to the  UserObject.
> 
> Regards
> 
> Neil Meyer
> 
> Project Manager
> 
>

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



RE: HTML Form

2005-04-12 Thread Durham David R Jr Contr 805 CSPTS/SCE
> Its not true that the HTML tags are receiving no developer 
> attention.

Ok, my mistake.  Thanks for clearing that up.


- Dave

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



Re: HTML Form

2005-04-12 Thread Niall Pemberton
Its not true that the HTML tags are receiving no developer attention. Since
Version 1.2.4 was released the following changes have been made to the HTML
taglib:

1) Highlighting Error Fields
http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html

2) ErrorTag now has header, footer, prefix and suffix attributes

3) Most of the HTML tags have been refactored to make them easier to extend.

4) A Bundle attribute has been added to many of the HTML tags

5) readonly and disabled attributes have been added to the FormTag - if you
want to disable or set to readonly all the elements in a form, you can do
this through the FormTag now, rather than on every individual field's tag.

Plus a number bug fixes have been applied, for example:

http://issues.apache.org/bugzilla/show_bug.cgi?id=32778
http://issues.apache.org/bugzilla/show_bug.cgi?id=34027
http://issues.apache.org/bugzilla/show_bug.cgi?id=32283
http://issues.apache.org/bugzilla/show_bug.cgi?id=23924


Niall

- Original Message - 
From: "Durham David R Jr Contr 805 CSPTS/SCE" <[EMAIL PROTECTED]>
Sent: Tuesday, April 12, 2005 4:20 PM


I recall reading something about the HTML tags not receiving any
developer attention and new project are encouraged not to use them.



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



RE: Cron type jobs in struts

2005-04-12 Thread Wiebe de Jong
I've had Quartz in production for a year and it is doing great. Definitely a
great scheduler.

Wiebe

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 8:09 AM
To: Struts Users Mailing List
Subject: Re: Cron type jobs in struts

Brian McGovern wrote:

>I have a need to run nightly jobs that inspect my data and do certain
things based on what it finds..  Now i was goin to write some java classes
to be invoked by cron.  But I've never done this before in java and wonder
if there is a better way to approach this? any thoughts?
>  
>
Now I'm going to check out Quartz, but we've used jcrontab in the past.

Dave



-
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: HTML Form

2005-04-12 Thread Slattery, Tim - BLS
> I recall reading something about the HTML tags not receiving 
> any developer attention and new project are encouraged not to 
> use them.  My question is what is the alternative to them?  
> JSTL?  Is there a guide or wiki page regarding the issues of 
> migrating from the HTML tags to whatever the recommendation 
> is at this point?

Makes no sense to me. You can use JSTL as an alternative to the logic and
bean tags, but there's no alternative to the HTML tags.

--
Tim Slattery
[EMAIL PROTECTED]


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



HTML Form

2005-04-12 Thread Durham David R Jr Contr 805 CSPTS/SCE
I recall reading something about the HTML tags not receiving any
developer attention and new project are encouraged not to use them.  My
question is what is the alternative to them?  JSTL?  Is there a guide or
wiki page regarding the issues of migrating from the HTML tags to
whatever the recommendation is at this point?

Thanks,

Dave

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



RE: Cron type jobs in struts (and Schedular with Struts?)

2005-04-12 Thread Joe Germuska
Yep.  One of my colleagues put together a simple Quartz XML config 
and Quartz PlugIn which can be downloaded from
http://demo.jgsullivan.com/quartz
and
http://demo.jgsullivan.com/struts

Also note that the Spring Framework has Quartz integration and can 
easily be used to set up scheduling in the application context.

http://www.springframework.org/docs/reference/scheduling.html
http://www.springframework.org/docs/api/org/springframework/scheduling/quartz/package-summary.html#package_description
Joe
At 3:42 PM +0100 4/12/05, Marco Mistroni wrote:
Hello,
Try Quartz. It will do the job for you
http://www.opensymphony.com/quartz/
regards
marco
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 15:41
To: Struts Users Mailing List
Subject: Cron type jobs in struts
Ok, This may be off topic cause the answer may not be in struts but here
goes. 
I have a need to run nightly jobs that inspect my data and do certain
things based on what it finds..  Now i was goin to write some java
classes to be invoked by cron.  But I've never done this before in java
and wonder if there is a better way to approach this? any thoughts?
thanks

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

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Dave Newton
Niall Pemberton wrote:
Having said that, is this really what you have in your struts-config.xml? I would have expected to see validate="true" as well.
 

I (almost) never use the validate="true" attribute because I (almost) 
always use the same action for creation and editing--if the 
auto-validation is on it validates an empty form, which is almost never 
right, so I call validation only on POSTs.

It's handled by a base Action class, so I (almost) never have to think 
about it, but I _do_ have to remember to set it to false in the 
struts-config to avoid confusion later.

Which leads me to a somewhat off-topic question: How do other people do 
this? I haven't used validate="true" since (almost) the time I started 
using Struts because of this issue.

Dave

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


Re: Cron type jobs in struts

2005-04-12 Thread Larry Meadors
I have heard Flux is pretty good, but do not know much beyond that...

On Apr 12, 2005 9:08 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> 
> Brian McGovern wrote:
> 
> >I have a need to run nightly jobs that inspect my data and do certain 
> things based on what it finds.. Now i was goin to write some java classes to 
> be invoked by cron. But I've never done this before in java and wonder if 
> there is a better way to approach this? any thoughts?
> >
> >
> Now I'm going to check out Quartz, but we've used jcrontab in the past.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: Cron type jobs in struts

2005-04-12 Thread Dave Newton
Brian McGovern wrote:
I have a need to run nightly jobs that inspect my data and do certain things based on what it finds..  Now i was goin to write some java classes to be invoked by cron.  But I've never done this before in java and wonder if there is a better way to approach this? any thoughts?
 

Now I'm going to check out Quartz, but we've used jcrontab in the past.
Dave

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


RE: Cron type jobs in struts

2005-04-12 Thread Brian McGovern
K.  looks cool.  Ill check it out.


-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Cron type jobs in struts


Hello,
Try Quartz. It will do the job for you
http://www.opensymphony.com/quartz/

regards
marco

-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 15:41
To: Struts Users Mailing List
Subject: Cron type jobs in struts

Ok, This may be off topic cause the answer may not be in struts but here
goes.  
I have a need to run nightly jobs that inspect my data and do certain
things based on what it finds..  Now i was goin to write some java
classes to be invoked by cron.  But I've never done this before in java
and wonder if there is a better way to approach this? any thoughts?
thanks

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


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



RE: Cron type jobs in struts

2005-04-12 Thread Marco Mistroni
Hello,
Try Quartz. It will do the job for you
http://www.opensymphony.com/quartz/

regards
marco

-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 15:41
To: Struts Users Mailing List
Subject: Cron type jobs in struts

Ok, This may be off topic cause the answer may not be in struts but here
goes.  
I have a need to run nightly jobs that inspect my data and do certain
things based on what it finds..  Now i was goin to write some java
classes to be invoked by cron.  But I've never done this before in java
and wonder if there is a better way to approach this? any thoughts?
thanks

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



Cron type jobs in struts

2005-04-12 Thread Brian McGovern
Ok, This may be off topic cause the answer may not be in struts but here goes.  
I have a need to run nightly jobs that inspect my data and do certain things 
based on what it finds..  Now i was goin to write some java classes to be 
invoked by cron.  But I've never done this before in java and wonder if there 
is a better way to approach this? any thoughts?
thanks

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



Schedular with Struts?

2005-04-12 Thread Yen
Any schedular in Struts?
Quartz?
rgds
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: session expiration issue and tiles

2005-04-12 Thread sudip shrestha
I am aware of all these things, but I cannot change my design at this
point, and today, I found out that this is some sort of bug in
internet explorer which does not do redirection properly and instead
displays blank page, where as Firefox does it without any problems.

On Apr 11, 2005 12:53 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> sudip shrestha wrote:
> 
> >I can understand presenting different menu options based on user
> >privileges and having the same layout pages.  But my concern is there
> >may be some pages which a user with less privileges may not be allowed
> >to see at all, and what if he finds the url of that page and types the
> >url in the browser and if that particular page does not have the
> >authority-check not built into it, that user may be able to do stuff
> >on the page..I hope you know what I am saying.
> >
> >
> The JSPs shouldn't be directly accessible anyway--if they're under
> WEB-INF then they cannot be directly accessed.
> 
> Authentication would be handled either in a) a filter, b) an Action
> super-class, c) a custom RequestProcessor, or d) somewhere else.
> 
> Personally, I don't believe _any_ authentication belongs in the view,
> but I'm obsessive.
> 
> If an action is protected by one of the mechanisms above (or something
> functionally similar) and the JSPs are not directly accessible, then
> you don't need to worry about it at all on the presentation side.
> 
> Dave
> 
> -
> 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: The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Niall Pemberton
You need to specify an "input" attribute on the "action" element in your
struts-config.xml. When validation fails Struts tries to forward to whatever
is specified in the "input" attribute - as you don't have one, thats why
you're getting that error message. Having said that, is this really what you
have in your struts-config.xml? I would have expected to see validate="true"
as well.

Niall

- Original Message - 
From: "Rodolfo García Esteban/CYII" <[EMAIL PROTECTED]>
Sent: Tuesday, April 12, 2005 1:26 PM


Hi

I´m using struts 1.2.4 and I'm starting with validator. I have done all to

config validator in a application I had. After set up the validator I
obtain
the next error
http 500 : No input attribute for mapping path /FiltroCoche





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



Re: The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Rodolfo García Esteban/CYII
Hi,

I keep working with validator and I know more about the problem.

When a action in the name attribute has the name of the form who I have 
defined in validation.xml, the crash occurs, others accion works well. It 
is like there is an error in validation.xml in the form element. 

Now the form element in Validation xml is.







and the cothe of FormCoche.java is

public final class FormCoche extends ValidatorForm {

private String  marca;
...

public String getMarca() {
return marca;
}
public void setMarca(String marca) {
this.marca = marca;
}
...
}

in struts-config.xml I have the next entries.






 




...  and when I call this action I obtain  No input attribute for mapping path 
/CocheAction
... but for this action all works well.


I would appreciate any help. I think my problem is common starting with 
Validator

Best Regards


Rodolfo
__





 
Para:   user@struts.apache.org
cc: 
Asunto: The configuration of validation.xml crashes against Action 
Servlet.


Hi

I´m using struts 1.2.4 and I'm starting with validator. I have done all to 


config validator in a application I had. After set up the validator I 
obtain 
the next error
http 500 : No input attribute for mapping path /FiltroCoche 
my validation.xml is:







   

my struts-config contains...
...

s0 - No input attribute for mapping path /FiltroCoche
...



When I comment all the fields entries in validation.xml works as before, 
but When I left one field, the servlet action doesn't work well. I would 
apprecite any help.

Thanks


Rodolfo 




Re: non editable tags

2005-04-12 Thread Sandor Vroemisse
Anja Friedrichsen wrote:
Do you know if it is also possible for radiobuttons and popdown lists?
For radio & select, use: disabled="true"
See http://struts.apache.org/userGuide/struts-html.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: non editable tags

2005-04-12 Thread Niall Pemberton
The HTML 4.01 Specification only defines readonly for ,  and 

http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#h-17.12.2
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#h-17.4

Niall

- Original Message - 
From: "Anja Friedrichsen" <[EMAIL PROTECTED]>
Sent: Tuesday, April 12, 2005 2:02 PM


> Thanks a lot, Mark!
>
> Do you know if it is also possible for radiobuttons and popdown lists?
>
> cheers Anja
>
> Mark Benussi wrote:
>
> >
> >



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



[repost, sort of]Populate method of ActionForm

2005-04-12 Thread David Evans
Hello,

I posted this question yesterday, and got no replies, figured i'd try
rephrasing/simplifying the question.

I have an application which i want to migrate to struts. It needs to be
able to use a different populate method depending on the information in
the submitted request. I am interested in different approaches to this
sort of thing. What would seem easiest is if there was a populate method
for the ActionForm. Is there any plan to include this in future struts
versions? Are there other frameworks that work like struts but have a
populate method for their equivelence of an ActionForm? I can create my
own RequestProcessor implementation that overrides processPopulate, what
implications might this have? Can anyone point to any online discussions
of varying approaches to the need for greater flexablility in the
populate phase of the request proccessing?

Thanks 

Dave 


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



Re: Format date in textfield

2005-04-12 Thread Hubert Rabago
When an ActionForm field is used to transmit form data, the
recommendation is to use a String field and let the Action
format/parse its contents.  That's what you should do with your date
field.  Declare the field in the ActionForm to use java.lang.String,
then populate it with a formatted date in your action before the form
is shown to the user.

Hubert

On Apr 12, 2005 6:06 AM, Roland Carlsson <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I've got an ActionForm that holds a date. The validator checks the format of
> the date perfectly and everything is great, almost. When I pre-populate the
> ActionForm with a date it will only get it a default-format that is very
> wrong for my needs.
> 
> How can I format the date that is going to be used in the html-form? Is the
> only way to write the input-tag by hand and then use  format="-MM-dd" />?
> 
> Thanks for your advice
> Roland Carlsson
> 
> -
> 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: non editable tags

2005-04-12 Thread Anja Friedrichsen
Thanks a lot, Mark!
Do you know if it is also possible for radiobuttons and popdown lists?
cheers Anja
Mark Benussi wrote:

-Original Message-
From: Anja Friedrichsen [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 13:28
To: Struts Users Mailing List
Subject: non editable tags

Hi!
is it possible to set radiobuttons, textfields and popdown lists to non 
editable within a struts-tag?

I want to show examples in my webapplication, but these examples should 
not be modified.

Thanks in advance!
Anja
-
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]
 


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


RE: non editable tags

2005-04-12 Thread Mark Benussi


-Original Message-
From: Anja Friedrichsen [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 13:28
To: Struts Users Mailing List
Subject: non editable tags

Hi!

is it possible to set radiobuttons, textfields and popdown lists to non 
editable within a struts-tag?

I want to show examples in my webapplication, but these examples should 
not be modified.

Thanks in advance!

Anja

-
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: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-12 Thread Mark Bennett
Rick, I believe that he is referring the the JPetStore download from the 
iBatis site. I am also using the additional struts helper package that comes 
in that demo. So no, it really doesn't have anything to do with iBatis 
except that it probably came from that web site.
 Pham, if you continue to follow the JPetSoreExample then can do server side 
validation the way that it does by extending the validate() method of 
BaseBean. Then you can set validate="true" in your struts-config.
 Mark

 On Apr 12, 2005 12:54 AM, Rick Reumann <[EMAIL PROTECTED]> wrote: 
> 
> Pham Anh Tuan wrote the following on 4/11/2005 4:02 AM:
> > Hi all,
> >
> > I don't know how to do Validation in Struts + iBatis + Dao.
> >
> > Because when I use above Structure, I must extends from BaseBean to
> > create my own Bean. As you know, if we want to use Validator of
> > Struts, our ActionForm must extends from ValidatorForm.
> 
> Why do you have to extend BaseBean for your ActionForms and not
> ValidatorActionForm? I'm confused. iBATIS should care less about what
> the front end is doing so iBATIS doesn't care about your ActionForm.
> You'll have to explain more what this BaseBean is - I'm assuming it's of
> type ActionForm? I've never needed to extend an ActionForm that I can
> recall. Actions, yes, but not ActionForms (including all the other
> flavors ValidatorActionForm, ValidatorForm, etc).
> 
> --
> Rick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Rodolfo García Esteban/CYII
Hi

I´m using struts 1.2.4 and I'm starting with validator. I have done all to 

config validator in a application I had. After set up the validator I 
obtain 
the next error
http 500 : No input attribute for mapping path /FiltroCoche 
my validation.xml is:







   

my struts-config contains...
...

s0 - No input attribute for mapping path /FiltroCoche
...



When I comment all the fields entries in validation.xml works as before, 
but When I left one field, the servlet action doesn't work well. I would 
apprecite any help.

Thanks


Rodolfo 


non editable tags

2005-04-12 Thread Anja Friedrichsen
Hi!
is it possible to set radiobuttons, textfields and popdown lists to non 
editable within a struts-tag?

I want to show examples in my webapplication, but these examples should 
not be modified.

Thanks in advance!
Anja
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] BC4J

2005-04-12 Thread Duncan Mills
JPX files are the BCJ4 package XML definition files.  These must be 
packaged up in the application deployment, it may be you've just 
neglected to do that?
Given that this issue could get rather detailed you should post it over 
on the OTN forum (http://forums.oracle.com/forums/forum.jsp?forum=83)

Duncan Mills
http://www.groundside.com/blog
G V wrote:
Hi 

Anyone there to help me in Business components 4
java(BC4J)?
I am getting a error Common.jpx not found.how to solve
this?
vim
		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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


Format date in textfield

2005-04-12 Thread Roland Carlsson
Hi!

I've got an ActionForm that holds a date. The validator checks the format of
the date perfectly and everything is great, almost. When I pre-populate the
ActionForm with a date it will only get it a default-format that is very
wrong for my needs.

How can I format the date that is going to be used in the html-form? Is the
only way to write the input-tag by hand and then use ?

Thanks for your advice
Roland Carlsson


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



The configuration of validation.xml crashes against Action Servlet.

2005-04-12 Thread Rodolfo García Esteban/CYII
I´m using struts 1.2.6 and I'm starting with validator. I have done all to 
config validator in a application I had. After set ut validator I obtain 
the next error
http 500 : No input attribute for mapping path /FiltroCoche 
my validation.xml is:







   

my struts-config contains...
...

s0 - No input attribute for mapping path /FiltroCoche
...



When I comment all the fields entries in validation.xml works as before, 
but When I left one field, the servlet action doesn't work well. I would 
apprecite any help?

Thanks



Rodolfo 

html:multibox

2005-04-12 Thread Riyaz Mansoor
hi

reading from past postings this subject has been much talked about.
but not finding a solution to my liking i post this question.

i want a user a see a set of checkboxes some selected some not. the
user is allowed to check uncheck anyone of them.

upon form submission, i want the value of the checkbox which can be
any value of type int to be submitted as an array to form. ie the
value can be (1,2,3 ... 1000,1001,10...). also, is it possible
to check a checkbox for any of these vales?

my form : DynaActinForm has fields 

id:integer // not given here
selected:integer[]
all:integer[]

ok: now am trouble in jsp ;(

also, for form prepopulation, is it possible to set the selected,all
array types with

form.set("propname", index, ValueObject); 

does the form take care of the "increasing index" ??

thanx
riyaz

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



ActionForward not working in Struts/Filters/XSLT application

2005-04-12 Thread Alan . Mullane
Hi,

I am working on the development a Struts application that reads all user 
requests into a number of Struts Actions
and uses XSLT to output the response of all pages as HTML. Also, all 
requests pass through one or more Servlet
Filters before entering the Actions, to handle security, logging, etc.
The application only uses actions for processing input requests and 
doesn't use any additional web pages
such as static JSPs or html pages. The output presentation data is 
dynamically generated by java objects, then 
written by the Action to the HttpServletResponse and then transformed into 
HTML using an XSLT transformer.
The application doesn't use ActionForward but instead the response is 
always written to the HttpServletResponse
and a null ActionForward is returned by the calling action. 

In some parts of the application I need to re-route the request to another 
page (for example, to a logout page if the 
user session expires). I have tried to use the ActionForward for this 
case, by calling 'mapping.findForward("logout") 
but it doesn't work and I always get a blank page - I defined action 
forwards in the action mappings in the struts-config.xml 
file but it seems that Struts doesn't allow forwarding to other actions in 
this type of application (Struts/Filters to XSLT). 

For now I am using HttpServletResponse.sendRedirect("logout.do") to get 
around this problem, but it is messy as I need
to catch IOException and also lose any parameters within the request - I 
would prefer to use the Struts framework for this 
as it is much cleaner and parameters already in the request can be reused.

Any ideas on how to fix this?

Thanks
Alan

The error from validator

2005-04-12 Thread Rodolfo García Esteban/CYII
How can I see the errors detected by validator? I do all the manuals says 
and I test the applicattion inputting error and I don't obtain anything

Best Regards

Rodolfo

Re: LazyLists and dynamic forms

2005-04-12 Thread Stéphane Zuckerman
Hello, and sorry for the late answer...
Niall Pemberton a écrit :
What you have looks OK to me - except in the Action the reference to
DynaValidatorForm - looks like your referencing the wrong class to me - 
You're right, I just mistyped it, but it is a BeanValidatorForm.
the
actual ActionForm flavour should be a BeanValidatorForm - but IMO its better
to just cast it to a DynaBean, then your not fixed on an implementation.
Something like...
public final class DynaLazyAction extends Action {
public ActionForward execute(...) {
DynaBean dynaForm = (DynaBean) form;
// here is the line that makes it all crumble...
Person[] persons = (Person[]) dynaForm.get("persons");
request.setAttribute("persons",persons);
return mapping.findForward("ok");
}
}
Also when you say "here is the line that makes it all crumble" - what does
that mean? Presumably your getting an Exception thrown - if so, what is it?

The exception is a ClassCastException ... Which is really strange, since 
the bean is supposed to store exactly the object I'm trying to retrieve ...

Thanks for your answers ! :-)
--
Stéphane Zuckerman
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Beginner Question: Which is the Best place to start

2005-04-12 Thread Kumar deepak
Hi Balaji,
 
Please visit http://www.roseindia.net/struts/
tutorial is with running example.
 
Following topics are covered:

Many advance topics like Tiles, Struts Validation Framework, Java Script 
validations are covered in this tutorial. 

   Introduction to the Apache Struts
This lesson is an introduction to the Struts and its architecture.
 
   Introduction to the Struts Controller
This lesson is an introduction to Controller part of the Struts Framework.
 
   Introduction to the Struts Action Class
This lesson is an introduction to Action Class of the Struts Framework.
 
   Using Struts ActionFrom Class
This shows how to create user interface form using struts ActionFrom class and 
jsp page.
 
   Using Struts HTML Tags
Section shows you the different types of Struts HTML Tags available for the 
development of views in JSP.
 
   Introduction to Struts Validator Framework
Struts Framework provides the functionality to validate the form data. It can 
be use to validate the data on the users browser as well as on the server side. 
 
   Client Side Address Validation in Struts
In this lesson we will create JSP page for entering the address and use the 
functionality provided by Validator Framework to validate the user data on the 
browser. 
 
   Developing Application with Struts Tiles
In this lesson we will create Struts Tiles Applications. 
 
   Using tiles-defs.xml in Tiles Application
In this lesson you will learn how to define and use the "plugin" definitation 
in tiles-defs.xml file. 
 
Regards
Deepak Kumar

"Balaji H. Kasal" <[EMAIL PROTECTED]> wrote:

Hi,

I am quite new to Struts. Please let me know which is the best place to 
start with. I am interested to start learning from examples.

Thanks in advance.

--Balaji

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



-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site!