Re: logic:iterate and html:radio

2005-11-02 Thread Raghu Kanchustambham
Try the indexed="true" property. I think that should do the trick.


 On 11/3/05, Bijay Sahoo <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> I am new to struts,and have a problem and want some suggestion,my problem
> is
> :
> I get some questions from database (Dont know how many) may be 10,11,20...
> anything.. for each question i have 3 multiple choice. Now, i have to
> group
> these multiple choices for each question into one group of check boxes.
> I can use  to iterate over the questions but how to group
> these multiple choices for each question into one group of radio button,
> what i dont understand is how to generate the group names dynamically !!
> ??
> Any suggestion will be appreciated.
> Thanks in advance.
> Bijay
>
>


logic:iterate and html:radio

2005-11-02 Thread Bijay Sahoo
Hi All,
I am new to struts,and have a problem and want some suggestion,my problem is
:
I get some questions from database (Dont know how many) may be 10,11,20...
anything.. for each question i have 3 multiple choice. Now, i have to group
these multiple choices for each question into one group of check boxes.
I can use  to iterate over the questions but how to group
these multiple choices for each question into one group of radio button,
what i dont understand is how to generate the group names dynamically !! ??
 Any suggestion will be appreciated.
 Thanks in advance.
Bijay


RE: Struts dropdown boxes

2005-11-02 Thread Neil Meyer
Thanks Frank I will look at this.

Thanks all for your trouble.

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: 02 November 2005 04:47 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Struts dropdown boxes

Hi Neil,

If your app can tolerate Javascript (i.e., require it), then Ajax is
probably your best bet.  Take a look here:

http://sourceforge.net/projects/javawebparts/

Grab a copy of the JWPCookbook.  In it is a recipe called Dynamic
Double-Select, which is exactly what you want.  You should be able to take
that example as-is and use it in your own app without much trouble.

If your are Javascript-averse though, your only real choice is a two-step
approach, i.e., show the page with the first dropdown and a button which
submits the form.  Then display the page with the second dropdown and two
buttons, one to continue on and one to go back and select another option
from the first.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, November 2, 2005 8:25 am, Neil Meyer said:
> Hi,
>
> I need to have 2 dropdown boxes on my jsp page. The first dropdowns
> selected
> value will determine what is pulled from the database for the second
> dropdown.
>
> I know there is a few ways of doing it but would like to know what most of
> the people recommend doing this.
>
> Your help is really appreciated.
>
> Regards
> Neil Meyer
>
> -
> 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]



or ... how to have indexed tags?

2005-11-02 Thread Raghu Kanchustambham
Hello,
 I am evaluating using Struts-Layout tags (
http://struts.application-servers.com/ ) instead of  .
 A few questions:
1. Can they co-exist? That is can I have 5 fields of my form of type
 and another 5 of the  types?
  2. More importantly, how to index them in case of multiple entries?
 for example if you are using  you can neatly index them in a
loop and have 'rows' of 'records' as shown in the following code snippet.
 
 
 

 How would you achieve the same using the  tags ?? Because  or  do not have the 'facility' to set indexed="true" in
the definition of their DTD ! :(
 Hope someone has solved this problem earlier and can help me.
 Best Regards,
Raghu


Re: [announce] html2 Tag Library experiment

2005-11-02 Thread Yujun Liang
Hubert,

I didn't mean your BeanDef is not good. Please don't take that way. :)

Question for you.

Bill Siggelkow mentioned your BeanDef in his book, here is the example he
gave us,


http://format.date.us>"/>



I am working on locale aware application, how do I specify the converter
base on locale?

Thanks



On 11/3/05, Yujun Liang <[EMAIL PROTECTED]> wrote:
>
> Ted,
>
> Here is what I read from Struts document,
>
> You may also place a bean instance on your form, and use nested property
> references. For example, you might have a "customer" bean on your
> ActionForm, and then refer to the property 
> "customer.name"
> in your presentation page. This would correspond to the methods
> customer.getName() and customer.setName(String Name) on your customer
> bean. See the Apache Struts Taglib Developer Guides for more about using the
> nested syntax.
>
> http://struts.apache.org/struts-core/userGuide/building_controller.html#action_form_classes
>
>
> But after I read your email, I got confused. Are you saying Struts hasn't
> fully supported this above mentioned feature so we need Hubert's FormDef
> plugin?
>
> I tried above mentioned feature, the only problem is Struts uses BeanUtil
> to populate ActionForm, but I suspect Struts should use
> LocaleBeanUtil/LocaleBeanUtilBean to populate form. So we don't need so many
> plugins.
>
> My 2 cents.
>
> Regards
>
> On 11/3/05, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > On 10/31/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > > If there's enough interest (and volunteers), we can move this thing to
> > > struts.sf.net , otherwise I'll just let this sit
> > there for those brave
> > > enough to use it.
> >
> > I'd say that if there is enough interest and volunteers to move it to
> > struts.sf.net , why not just bring it into the
> > main distribution, so
> > everyone can use it?
> >
> > I also continue to wonder whether there is enough interest and
> > volunteers to bring FormDef into the main distribution.
> >
> > * https://formdef.dev.java.net/
> >
> > Over recent years, I think we've become too conservative. When someone
> > broached the idea of a DispatchAction, we didn't hem and haw and wait
> > for it to become popular as an extension. We tossed it into the
> > distribution at the 11th hour, and it went on to become one of our
> > most popular "extras".
> >
> > -Ted.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Yujun Liang
> [EMAIL PROTECTED]




--
Yujun Liang
[EMAIL PROTECTED]


Re: [announce] html2 Tag Library experiment

2005-11-02 Thread Yujun Liang
Ted,

Here is what I read from Struts document,

You may also place a bean instance on your form, and use nested property
references. For example, you might have a "customer" bean on your
ActionForm, and then refer to the property
"customer.name"
in your presentation page. This would correspond to the methods
customer.getName() and customer.setName(String Name) on your customer bean.
See the Apache Struts Taglib Developer Guides for more about using the
nested syntax.

http://struts.apache.org/struts-core/userGuide/building_controller.html#action_form_classes

But after I read your email, I got confused. Are you saying Struts hasn't
fully supported this above mentioned feature so we need Hubert's FormDef
plugin?

I tried above mentioned feature, the only problem is Struts uses BeanUtil to
populate ActionForm, but I suspect Struts should use
LocaleBeanUtil/LocaleBeanUtilBean to populate form. So we don't need so many
plugins.

My 2 cents.

Regards

On 11/3/05, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> On 10/31/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > If there's enough interest (and volunteers), we can move this thing to
> > struts.sf.net , otherwise I'll just let this sit
> there for those brave
> > enough to use it.
>
> I'd say that if there is enough interest and volunteers to move it to
> struts.sf.net , why not just bring it into the main
> distribution, so
> everyone can use it?
>
> I also continue to wonder whether there is enough interest and
> volunteers to bring FormDef into the main distribution.
>
> * https://formdef.dev.java.net/
>
> Over recent years, I think we've become too conservative. When someone
> broached the idea of a DispatchAction, we didn't hem and haw and wait
> for it to become popular as an extension. We tossed it into the
> distribution at the 11th hour, and it went on to become one of our
> most popular "extras".
>
> -Ted.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Yujun Liang
[EMAIL PROTECTED]


RE: Validator 1.2.0 RC3 now available for review

2005-11-02 Thread David G. Friedman
Niall,

Some of those listed extensions are long awaited. :)

Regards,
David

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 9:36 AM
To: Struts Users Mailing List
Subject: Validator 1.2.0 RC3 now available for review


Release Candidate 3 of Validator 1.2.0 is now available for download at:
http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/

A summary of whats new in Validator 1.2.0 is available on the Wiki:
http://wiki.apache.org/jakarta-commons/ValidatorVersion120

Full details of changes available in the changes report:
http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/site/changes-re
port.html

New version of the Validator Docs available here:
   http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/site/

All feedback on this release candidate build is welcome.

Niall



-
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: where to define log level

2005-11-02 Thread David G. Friedman
The logging facilities use the Commons Logging classes.  You can find them
(on the newly redesigned Struts.apache.org site) under the "Core
Framework" -> "User Guide" -> "Controller components" -> Section 4.11"
Commons Logging Interface", or directly using this URL:

http://struts.apache.org/struts-core/userGuide/building_controller.html#logg
ing

Additionally, since the Commons Logging has a few other levels, you could
make even more levels of detail if you used the Commons Logging in your own
application(s).

Regards,
David

-Original Message-
From: pc leung [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 10:35 PM
To: Struts Users Mailing List
Subject: where to define log level


In the mailreader example of struts,
there are lines of
log.isTraceEnabled()
log.isDebugEnabled()
 Where to make the trace or debug enable or disable?
 Thanks


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



where to define log level

2005-11-02 Thread pc leung
In the mailreader example of struts,
there are lines of
log.isTraceEnabled()
log.isDebugEnabled()
 Where to make the trace or debug enable or disable?
 Thanks


Re: [announce] html2 Tag Library experiment

2005-11-02 Thread Ted Husted
On 10/31/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> If there's enough interest (and volunteers), we can move this thing to
> struts.sf.net, otherwise I'll just let this sit there for those brave
> enough to use it.

I'd say that if there is enough interest and volunteers to move it to
struts.sf.net, why not just bring it into the main distribution, so
everyone can use it?

I also continue to wonder whether there is enough interest and
volunteers to bring FormDef into the main distribution.

* https://formdef.dev.java.net/

Over recent years, I think we've become too conservative. When someone
broached the idea of a DispatchAction, we didn't hem and haw and wait
for it to become popular as an extension. We tossed it into the
distribution at the 11th hour, and it went on to become one of our
most popular "extras".

-Ted.

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



Re: [OT] Trick or Treat? (aka +1 for Struts)

2005-11-02 Thread Frank W. Zammetti
Umm, first time I've looked at it, but Struts isn't even listed.  Of 
COURSE it didn't do well ;)


Even ignoring that, what's the saying about lies, damn lies and statistics?

Frank

pc leung wrote:

The result of poll makes me feel disappointed.
It strengthens the rumours of the death of struts.

 On 11/1/05, Ted Husted <[EMAIL PROTECTED]> wrote:


There's an "interesting" poll posted at About.com  that
asks Java web
developers: "Which framework would do you plan to use on your next
project?" By itself, it's an interesting question, but the poll
provides only five choices, and does not provide an "Other" choice.
The most interesting thing is that "Struts" is not one of the five
choices :)

If you do plan to use "Struts" on your next project, please consider
writing in your vote as a comment to the poll.

* http://tinyurl.com/7uhrx

I've already done the same and posted my "+1 for Struts".

Struts Shale did get an item of its own, so if you going with Shale,
you could vote for it directly.

Of course, ServerSide picked up on the not-so-Fraudian slip, and
started one of their infamous threads

* http://www.theserverside.com/news/thread.tss?thread_id=37365

-- HTH, Ted.
http://www.husted.com/poe/

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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



Re: [OT] Trick or Treat? (aka +1 for Struts)

2005-11-02 Thread Yujun Liang
Well,

I don't know the motivation of the guy who setup the poll, but apparently it
is not an useful indicator.

What would you use as Operating System?
1)Linux
2)Mac
3)Google Operating System
4)Solaris?

Wow, Windows is dying. Can you take the poll seriously? It is just a joke.

http://forums.about.com/n/pfx/forum.aspx?nav=messages&tsn=5&tid=1584&webtag=ab-java

I won't say Struts will last forever, nothing lasts, that's certain.

Regards

On 11/3/05, pc leung <[EMAIL PROTECTED]> wrote:
>
> The result of poll makes me feel disappointed.
> It strengthens the rumours of the death of struts.
>
> On 11/1/05, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > There's an "interesting" poll posted at About.com  <
> http://About.com> that
> > asks Java web
> > developers: "Which framework would do you plan to use on your next
> > project?" By itself, it's an interesting question, but the poll
> > provides only five choices, and does not provide an "Other" choice.
> > The most interesting thing is that "Struts" is not one of the five
> > choices :)
> >
> > If you do plan to use "Struts" on your next project, please consider
> > writing in your vote as a comment to the poll.
> >
> > * http://tinyurl.com/7uhrx
> >
> > I've already done the same and posted my "+1 for Struts".
> >
> > Struts Shale did get an item of its own, so if you going with Shale,
> > you could vote for it directly.
> >
> > Of course, ServerSide picked up on the not-so-Fraudian slip, and
> > started one of their infamous threads
> >
> > * http://www.theserverside.com/news/thread.tss?thread_id=37365
> >
> > -- HTH, Ted.
> > http://www.husted.com/poe/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Yujun Liang
[EMAIL PROTECTED]


Re: [OT] Trick or Treat? (aka +1 for Struts)

2005-11-02 Thread pc leung
The result of poll makes me feel disappointed.
It strengthens the rumours of the death of struts.

 On 11/1/05, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> There's an "interesting" poll posted at About.com  that
> asks Java web
> developers: "Which framework would do you plan to use on your next
> project?" By itself, it's an interesting question, but the poll
> provides only five choices, and does not provide an "Other" choice.
> The most interesting thing is that "Struts" is not one of the five
> choices :)
>
> If you do plan to use "Struts" on your next project, please consider
> writing in your vote as a comment to the poll.
>
> * http://tinyurl.com/7uhrx
>
> I've already done the same and posted my "+1 for Struts".
>
> Struts Shale did get an item of its own, so if you going with Shale,
> you could vote for it directly.
>
> Of course, ServerSide picked up on the not-so-Fraudian slip, and
> started one of their infamous threads
>
> * http://www.theserverside.com/news/thread.tss?thread_id=37365
>
> -- HTH, Ted.
> http://www.husted.com/poe/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem validating multipart form data

2005-11-02 Thread Niall Pemberton
Parameters parsed from the Multipart request are stored in the
MulitpartRequestWrapper. However before Struts forwards the request it
unwraps it, loosing those parameters. So when your validation fails
this happens when it forwards to your "input".

This can be resolved in a Servlet 2.3 environment (which is the
minimum for Struts 1.3.x) - but Struts 1.2.x has a minimum of Servlet
2.2.

Details in the following bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=17583

Niall


On 11/2/05, Collin VanDyck <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm using struts-1.2.7.
>
> I have form that needs both file upload functionality as well as normal
> form fields interspersed on the same HTML page.  I'm using the built-in
> struts file upload utilities, so I create the form:
>
>  enctype="multipart/form-data">
>...
> 
>
> If there are no errors, this approach works perfectly.  I correctly
> receive the file data submitted, if any, along with the normal form
> field values.
>
> However, if my ActionForm fails validation, when the resultant action
> gets called (specified by the input attribute) the request object
> contains no request data from my form.  My ActionForm, however,
> populates correctly.
>
> I understand that for multipart/form-data encoding types that the
> framework will wrap the normal request object in a
> MultipartRequestWrapper. Indeed, this is the case when this form
> submits.  The MultipartRequestWrapper does not contain any of my request
> parameters from the form.  I called MultipartRequestWrapper.getRequest()
> to get the original request that was wrapped to begin with, but it also
> does not have any of my request parameters.
>
> The strange thing is, is that if I convert the form to not be
> multipart/form-data encoded, and remove the file upload widget, it works
> perfectly, retaining request parameters even when validation fails.
>
> Any ideas on what I may be doing wrong? I feel like this is probably a
> common problem. I found some similar problems on the mailing list
> archives, but could not find any resolutions.
>
> many thanks
> Collin

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



Re: Commons Validator 1.2

2005-11-02 Thread Niall Pemberton
On 11/3/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
> Don and Niall,
>
> I see RC3 of Commons Validator 1.2! Makes me excited
> as my favorite bugs (oxymoron) seem to be fixed. But
> besides fixes, can you detail what new features it
> contains?

I've put up a wiki page that tries to give a summary of what I think
are the key features:

   http://wiki.apache.org/jakarta-commons/ValidatorVersion120

...and for a full list there is the changes report

   
http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/site/changes-report.html

and you can download RC3 (release candidate 3) here

   http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/

Niall

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



Re: [OT] [HTML] Jsp page size

2005-11-02 Thread Martin Gainty

Greets all
I would use
http://displaytag.sourceforge.net/tagreference.html
and Play with the CSS class to controls the style characteristic width so 
that width can be based on percentage e.g."33%"
then when the operator resizes your table (previously defined as 
width="100%" )

your individual table data will resize to the same exact proportion
HTH,
Martin-

- Original Message - 
From: "Murray Collingwood" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Wednesday, November 02, 2005 3:08 PM
Subject: Re: [OT] [HTML] Jsp page size



Use the html width parameter on your html object.

eg



For more go to the source... http://www.w3.org/TR/html4/

Cheers
mc

On 2 Nov 2005 at 13:18, fea jabi wrote:


In an application how can we specify the fixed size of the JSP page.

In the JSP page I created used a scrollbar in which there is a table.

To create a scrollbar,  I had to specify the height, width for the div in
css.

This table is stable size but there is another table above this which has
text in it.

When the browser size is changed the text is getting wrapped.

As a user I wouldn't prefer that to happen.

What is the better way of handing this? can we do this in struts? i.e
setting page size?

Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's 
FREE!

http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005





FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005


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



Commons Validator 1.2

2005-11-02 Thread Paul Benedict
Don and Niall,

I see RC3 of Commons Validator 1.2! Makes me excited
as my favorite bugs (oxymoron) seem to be fixed. But
besides fixes, can you detail what new features it
contains?








__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: Problem validating multipart form data

2005-11-02 Thread Adam Hardy

Collin,

are you using 
org.apache.commons.fileupload.DiskFileUpload.parseRequest(request)


?

I'm not sure anymore if this is wrapped by struts or not, but I guess it 
is and it's this bit that isn't working.


Adam


Collin VanDyck on 02/11/05 20:53, wrote:

Hello All

Any ideas on this one?  I switched to a manual validation, which works, 
though I'd much rather use the built-in mechanism to validate where 
possible.


thanks
Collin


Collin VanDyck wrote:


Hello!

I'm using struts-1.2.7.

I have form that needs both file upload functionality as well as 
normal form fields interspersed on the same HTML page.  I'm using the 
built-in struts file upload utilities, so I create the form:


enctype="multipart/form-data">

   ...


If there are no errors, this approach works perfectly.  I correctly 
receive the file data submitted, if any, along with the normal form 
field values.


However, if my ActionForm fails validation, when the resultant action 
gets called (specified by the input attribute) the request object 
contains no request data from my form.  My ActionForm, however, 
populates correctly.


I understand that for multipart/form-data encoding types that the 
framework will wrap the normal request object in a 
MultipartRequestWrapper. Indeed, this is the case when this form 
submits.  The MultipartRequestWrapper does not contain any of my 
request parameters from the form.  I called 
MultipartRequestWrapper.getRequest() to get the original request that 
was wrapped to begin with, but it also does not have any of my request 
parameters.


The strange thing is, is that if I convert the form to not be 
multipart/form-data encoded, and remove the file upload widget, it 
works perfectly, retaining request parameters even when validation fails.


Any ideas on what I may be doing wrong? I feel like this is probably a 
common problem. I found some similar problems on the mailing list 
archives, but could not find any resolutions.



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



Re: [OT] [HTML] Jsp page size

2005-11-02 Thread Yujun Liang
If you want it professionally, you may need to study CSS, instead of putting
layout in HTML tag.

for this case,



should be , however, you can use Struts to define
someClass as a varible and change it programatically.

Regards

On 11/3/05, Murray Collingwood <[EMAIL PROTECTED]> wrote:
>
> Use the html width parameter on your html object.
>
> eg
>
> 
>
> For more go to the source... http://www.w3.org/TR/html4/
>
> Cheers
> mc
>
> On 2 Nov 2005 at 13:18, fea jabi wrote:
>
> > In an application how can we specify the fixed size of the JSP page.
> >
> > In the JSP page I created used a scrollbar in which there is a table.
> >
> > To create a scrollbar, I had to specify the height, width for the div in
> > css.
> >
> > This table is stable size but there is another table above this which
> has
> > text in it.
> >
> > When the browser size is changed the text is getting wrapped.
> >
> > As a user I wouldn't prefer that to happen.
> >
> > What is the better way of handing this? can we do this in struts? i.e
> > setting page size?
> >
> > Thanks.
> >
> > _
> > Express yourself instantly with MSN Messenger! Download today - it's
> FREE!
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date:
> 1/11/2005
> >
>
>
>
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Yujun Liang
[EMAIL PROTECTED]


Re: [OT] [HTML] Jsp page size

2005-11-02 Thread Max Cooper
Also consider The text that you do not want to wrap.

This is all HTML stuff -- remember that browsers know absolutely nothing
about Struts, and that your app emits standard web stuff (HTML,
JavaScript, CSS, etc.) only.

-Max

On Thu, 2005-11-03 at 06:08 +1000, Murray Collingwood wrote:
> Use the html width parameter on your html object.
> 
> eg
> 
> 
> 
> For more go to the source... http://www.w3.org/TR/html4/
> 
> Cheers
> mc
> 
> On 2 Nov 2005 at 13:18, fea jabi wrote:
> 
> > In an application how can we specify the fixed size of the JSP page.
> > 
> > In the JSP page I created used a scrollbar in which there is a table.
> > 
> > To create a scrollbar,  I had to specify the height, width for the div in 
> > css.
> > 
> > This table is stable size but there is another table above this which has 
> > text in it.
> > 
> > When the browser size is changed the text is getting wrapped.
> > 
> > As a user I wouldn't prefer that to happen.
> > 
> > What is the better way of handing this? can we do this in struts? i.e 
> > setting page size?
> > 
> > Thanks.
> > 
> > _
> > Express yourself instantly with MSN Messenger! Download today - it's FREE! 
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
> > 
> 
> 
> 
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
> 
> 
> 
> 


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



Re: Struts + Spring + Hibernate

2005-11-02 Thread netsql

I use a diferent stack, this one: http://ibatis.apache.org/petstore.html
not what you asked for but..


Martin Ravell wrote:

Are there some developers here who use this solution?
Does someone have a good tutorial or sample to indicate? (I've already
seen "Wiring your web applications with Open Source java"..thanks :o))

Thanks for your feedback on this architecture :o)




Check out Matt Raible's Equinox project. For that matter you can get a head
start on this combination using Appfuse.


Regards
Marty



--
thx,
.V

Your Roomity Broadband Community 

cell: 917 825 3035 in DFW
email: netsql at roomity.com


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



Re: lookupdispatchaction and validator

2005-11-02 Thread Yujun Liang
Arnaud,

Validator is independent on any actions, it can handle JS validation as
well,
http://66.102.7.104/search?q=cache:4urwhau-PQcJ:struts.apache.org/userGuide/dev_validator.html+struts+validator&hl=en&client=firefox-a

Regards

On 11/3/05, arnaud gonzales <[EMAIL PROTECTED]> wrote:
>
> hello,
> I'm trying to use validator with lookupdispatchaction, it will be great to
> generate the client JS validation.
> Have you any links, samples?
> Thanks in advance
>
> --
> Regards
> Arnaud Gonzales.
>
>


--
Yujun Liang
[EMAIL PROTECTED]


RE: Struts + Spring + Hibernate

2005-11-02 Thread Martin Ravell
>  Are there some developers here who use this solution?
>  Does someone have a good tutorial or sample to indicate? (I've already
>seen "Wiring your web applications with Open Source java"..thanks :o))
>
>  Thanks for your feedback on this architecture :o)
>

Check out Matt Raible's Equinox project. For that matter you can get a head
start on this combination using Appfuse.


Regards
Marty




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



Re: Problem validating multipart form data

2005-11-02 Thread Collin VanDyck

Hello All

Any ideas on this one?  I switched to a manual validation, which works, 
though I'd much rather use the built-in mechanism to validate where 
possible.


thanks
Collin


Collin VanDyck wrote:

Hello!

I'm using struts-1.2.7.

I have form that needs both file upload functionality as well as normal 
form fields interspersed on the same HTML page.  I'm using the built-in 
struts file upload utilities, so I create the form:


enctype="multipart/form-data">

   ...


If there are no errors, this approach works perfectly.  I correctly 
receive the file data submitted, if any, along with the normal form 
field values.


However, if my ActionForm fails validation, when the resultant action 
gets called (specified by the input attribute) the request object 
contains no request data from my form.  My ActionForm, however, 
populates correctly.


I understand that for multipart/form-data encoding types that the 
framework will wrap the normal request object in a 
MultipartRequestWrapper. Indeed, this is the case when this form 
submits.  The MultipartRequestWrapper does not contain any of my request 
parameters from the form.  I called MultipartRequestWrapper.getRequest() 
to get the original request that was wrapped to begin with, but it also 
does not have any of my request parameters.


The strange thing is, is that if I convert the form to not be 
multipart/form-data encoded, and remove the file upload widget, it works 
perfectly, retaining request parameters even when validation fails.


Any ideas on what I may be doing wrong? I feel like this is probably a 
common problem. I found some similar problems on the mailing list 
archives, but could not find any resolutions.


many thanks
Collin





-
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: lookupdispatchaction and validator

2005-11-02 Thread bsimonin
Hi. arnaud.  I hope I understand your question.

Each jsp pages for the lookupdispatchaction should have a page element added:
 

Then in your validation.xml file have:
 name="wizardForm">




the action mappings should look something like this:

 
 
 
 
 




   







   
   







   
   
  


I hope this helps.

--Brad

-Original Message-
From: arnaud gonzales [mailto:[EMAIL PROTECTED]
Sent: Wed 11/2/2005 6:36 AM
To: user@struts.apache.org
Subject: lookupdispatchaction and validator
 
hello,
I'm trying to use validator with lookupdispatchaction, it will be great to
generate the client JS validation.
Have you any links, samples?
Thanks in advance

--
Regards
Arnaud Gonzales.




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



Re: Peculiar error with ....

2005-11-02 Thread Jacob Wilson
Yes. I dont have the .do when I run on tomcat or Borland. With WAS, it is not 
getting the action without the .do - Maybe, I guess somewhere a configuration 
needs to be done to have the server accept without .do 

Dave Newton <[EMAIL PROTECTED]> wrote:Jacob Wilson wrote:

> 
> 
>Here is my struts-config
> 
> 
> 
> 
> 
> 
>
> 
>Any clues???
> 
>
form-bean name: RoleForm
action name: FormName

I don't use extension mapping usually, but are you supposed to put the 
".do" in the path attribute in the mapping? I don't recall having even 
done that.

Dave



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




-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: Peculiar error with ....

2005-11-02 Thread Jacob Wilson
thanks for the response Murray I have this working in tomcat and Borland. 
For writing this mail, I copy pasted only the required stuff (also changed 
names!!) - hence left out the myPage action mapping. I am not new to struts and 
have been working on it for quite a while
 
My subject line clearly says its peculiar coz, it works on tomcat, it works on 
Borland. When I  migrated my application to WAS, I am ending up with this 
error
 
Never have seen something like this before. I lost my patience debugging what I 
have left out and have started trial and errors by having some attributes in 
the  and some not.
 
Wanting not to waste anymore time, am checking with you guys if you have had 
anything like this before.
 
Thanks
Jacob



Murray Collingwood <[EMAIL PROTECTED]> wrote:
The clue isyou haven't read the manual.

You are creating a target in your JSP called "myPage". Your struts-config 
doesn't 
define this target anywhere. It needs to be in your action-mappings. Also, 
because the 
target includes a form you need to specify the "NAME" attribute to identify a 
form-bean 
entry which ties it all back to your pojo. I'll bet your totally lost now and 
just wishing 
somebody would tell you what to write (been there, done that).

There are lots of example Struts apps around that work. Download one of these 
and 
use it for reference. I started with a forum example from John Topley, it 
seemed to be 
well written and even looking back now I think it was pretty good. You will 
find it at:
http://www.sitepoint.com/article/struts-first-steps

Cheers
mc

On 2 Nov 2005 at 12:12, Jacob Wilson wrote:

> Hi Dave -
> 
> Even without the name attribute it is the same !!!
> 
> 
> 
> Here is my struts-config
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> path="/myRoles.do" scope="request" type="com.ui.actions.MyPage"/>
> 
> 
> 
> 

> 
> 

> 

> INF/validation.xml" property="pathnames" />
> 

> 
> 
> 
> Any clues???
> 
> Thanks
> Jacob
> 
> Dave Newton wrote:
> Jacob Wilson wrote:
> 
> >I have a problem with my jsps after migrating my application from tomcat to 
Websphere. I use the struts-html taglibs in my jsps. When I use the normal html 
form 
tag like below, everything looks fine and the page gets displayed without 
problems.
> > 
> >
> > 
> >When I use the struts-html taglib like below, the jsp that shows up on the 
> >browser is 
totally empty
> > 
> > 
> > 
> >I had made sure that the action is present in struts-config.xml. Also, when 
> >I say 
action="myPage" in the form tag does not work.
> > 
> >
> I am suspicious of the "name" attribute. Or at least I am now that I 
> figured out what the difference between the two JSP chunks actually was.
> 
> I've never used "name" in html:form (I didn't even know you could); 
> "name" is created by html:form using the "action" attribute and the 
> "name" attribute in the action's configuration.
> 
> But you didn't include any struts config info, so who knows.
> 
> Dave
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -
> Yahoo! FareChase - Search multiple travel sites in one click. 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005


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



-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: java.util.Date in Action Form Bean

2005-11-02 Thread Hubert Rabago
FormDef works fine with Validator.  For the most part they won't even
be aware of each other.  There's no overlap in functionality and they
won't get in the way of one another.

Hubert

On 11/2/05, Yujun Liang <[EMAIL PROTECTED]> wrote:
> Hubert, your input is quite valuable. But I just wonder this suppose to be
> handled by Struts itsself,
>
> You may also place a bean instance on your form, and use nested property
> references. For example, you might have a "customer" bean on your
> ActionForm, and then refer to the property
> "customer.name"
> in your presentation page. This would correspond to the methods
> customer.getName() and customer.setName(String Name) on your customer bean.
> See the Apache Struts Taglib Developer Guides for more about using the
> nested syntax.
> http://struts.apache.org/struts-core/userGuide/building_controller.html#action_form_classes
>
> Do you know whether this BeanDef works with Validator?
>
> Thanks.
>
> On 11/3/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> >
> > [ Oh, I missed my cue! :) ]
> >
> > If your form bean maps to a business object (and it sounds like it
> > does since you're using BeanUtils), you can try FormDef:
> > http://formdef.dev.java.net/
> >
> > You won't need to create a separate ActionForm class or manually
> > define your DynaActionForm, FormDef will configure it for you. You
> > can also specify how you want your fields formatted, including dates
> > and numbers, and use FormDef's conversion methods in place of
> > BeanUtils.
> >
> > Hubert

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



Re: Peculiar error with ....

2005-11-02 Thread Dave Newton

Jacob Wilson wrote:

 


Here is my struts-config

 
   
 
 



Any clues???
 


form-bean name: RoleForm
action name: FormName

I don't use extension mapping usually, but are you supposed to put the 
".do" in the path attribute in the mapping? I don't recall having even 
done that.


Dave



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



Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Hubert Rabago
On 11/2/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> If it were possible to use form definitions made in struts-config.xml,
> then you would not have to reimplement this property in FormDef, and I
> would not have to wait for you to reimplement it ;-) I would just
> apply your patch to my copy of DynaActionForm, and FormDef would pick
> up transparently whatever properties are defined in struts-config.xml.
> Is it possible at all? Or is it too much work?

I've wondered about this feature, but there are some problems.  (Not
to mention, this is the first time someone asked for it).  For
instance, what if the form defined isn't a DynaBean?  And how would I
let the user specify formatting requirements (for dates, numbers,
etc)?

Still, it's feasible.  It's just sort of a reversal of what I tried to
do.  I wanted to reduce config info.  If you defined your form one
field at a time in struts-config, then defined them again in
formdef-config, then you end up with two places you have to keep in
sync.  Not to mention validation.xml (if you were using it for that
form).

With the form defined in FormDef, you're sure the fields on the bean
are represented on the form, and they're always in sync.  Form field
types already default to java.lang.String.  You can even put
validation rules right there!

> In a way, this is similar to explicitly supporting all HTML tag
> attributes in Struts tags instead of supporting whatever a developer
> put into a tag as attribute, and to let user agent care about that.

Not really.

The reason the support is there is to allow you to add fields to a
form that would otherwise limit you.  If UserInfoBean had "username"
and "password", the following:



... would give you a dyna form with "username" and "password" string
fields.  That said, you can customize each field the way you would a
property configured in struts-config.  Okay, that part's like the tag
attribute support you mentioned.  However, FormDef allows you to add
fields to your form and not be limited by UserInfoBean:


 


... would give you a dyna form named "LogonForm" with "username",
"password", and "selectedButton" fields.  And with that add'l field,
you can specify type, size, initial as you would in struts-config.

> Michael.
>

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



Re: java.util.Date in Action Form Bean

2005-11-02 Thread Yujun Liang
Hubert, your input is quite valuable. But I just wonder this suppose to be
handled by Struts itsself,

You may also place a bean instance on your form, and use nested property
references. For example, you might have a "customer" bean on your
ActionForm, and then refer to the property
"customer.name"
in your presentation page. This would correspond to the methods
customer.getName() and customer.setName(String Name) on your customer bean.
See the Apache Struts Taglib Developer Guides for more about using the
nested syntax.
http://struts.apache.org/struts-core/userGuide/building_controller.html#action_form_classes

Do you know whether this BeanDef works with Validator?

Thanks.

On 11/3/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
>
> [ Oh, I missed my cue! :) ]
>
> If your form bean maps to a business object (and it sounds like it
> does since you're using BeanUtils), you can try FormDef:
> http://formdef.dev.java.net/
>
> You won't need to create a separate ActionForm class or manually
> define your DynaActionForm, FormDef will configure it for you. You
> can also specify how you want your fields formatted, including dates
> and numbers, and use FormDef's conversion methods in place of
> BeanUtils.
>
> Hubert
>
> On 10/31/05, Yujun Liang <[EMAIL PROTECTED]> wrote:
> > Laurie,
> >
> > Thanks for all the replies.
> >
> > Can you point me to a document describe how to change the default
> converter
> > used by Struts? I was not aware of that. By the way, what's the
> disadvantage
> > to have common beanutil to support java.util.Date as well?
> >
> > Thanks
> >
> > On 10/30/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> > >
> > > Right, I create a fresh instance of BeanUtilsBean and register the
> > > converter at the point of use, to avoid that being a problem.
> > >
> > > L.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Yujun Liang
[EMAIL PROTECTED]


Re: Peculiar error with ....

2005-11-02 Thread Murray Collingwood
The clue isyou haven't read the manual.

You are creating a target in your JSP called "myPage".  Your struts-config 
doesn't 
define this target anywhere.  It needs to be in your action-mappings.  Also, 
because the 
target includes a form you need to specify the "NAME" attribute to identify a 
form-bean 
entry which ties it all back to your pojo.  I'll bet your totally lost now and 
just wishing 
somebody would tell you what to write (been there, done that).

There are lots of example Struts apps around that work.  Download one of these 
and 
use it for reference.  I started with a forum example from John Topley, it 
seemed to be 
well written and even looking back now I think it was pretty good.  You will 
find it at:
http://www.sitepoint.com/article/struts-first-steps

Cheers
mc

On 2 Nov 2005 at 12:12, Jacob Wilson wrote:

> Hi Dave -
>  
> Even without the name attribute it is the same !!!
>  
>  
>  
> Here is my struts-config
>  
> 
>   
> 
>   
>   
> 
> 
>   
>   
>  
> 
>   
>   
>   
>  value="/WEB-INF/tiles-defs.xml" />
>   
>   
>  value="/WEB-INF/validator-rules.xml,/WEB-
INF/validation.xml" />
>   
> 
>  
>  
> Any clues???
>  
> Thanks
> Jacob
> 
> Dave Newton <[EMAIL PROTECTED]> wrote:
> Jacob Wilson wrote:
> 
> >I have a problem with my jsps after migrating my application from tomcat to 
Websphere. I use the struts-html taglibs in my jsps. When I use the normal html 
form 
tag like below, everything looks fine and the page gets displayed without 
problems.
> > 
> >
> > 
> >When I use the struts-html taglib like below, the jsp that shows up on the 
> >browser is 
totally empty
> > 
> > 
> > 
> >I had made sure that the action is present in struts-config.xml. Also, when 
> >I say 
action="myPage" in the form tag does not work.
> > 
> >
> I am suspicious of the "name" attribute. Or at least I am now that I 
> figured out what the difference between the two JSP chunks actually was.
> 
> I've never used "name" in html:form (I didn't even know you could); 
> "name" is created by html:form using the "action" attribute and the 
> "name" attribute in the action's configuration.
> 
> But you didn't include any struts config info, so who knows.
> 
> Dave
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
>   
> -
>  Yahoo! FareChase - Search multiple travel sites in one click.  



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005


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



New website look: taglib docs

2005-11-02 Thread Michael Jouravlev
 seem to have gotten a new attribute: "ref" It is not
included in TLD supplied with 1.2.7, so apparently this is an 1.3
extension. If this is true, docs page should have "since 1.3" note for
this attribute. An example would be great too, kind of like this:

Document root: "/sf"
Navigating to action: "http://localhost:8080/sf/Home.do";
Action forwards to: "/mailreaderpages/home.jsp"
Adding  to home.jsp page.

Runtime expansion of Struts tag to HTML tag:
 --> http://localhost:8080/sf/mailreaderpages/home.jsp";>
 --> http://myserver:8080/sf/mailreaderpages/home.jsp";>
 --> http://localhost:8080/sf/mailreaderpages/home.jsp";
target="window1">


I am also reposting my prior message on taglib docs. I am doing this
just in case those of you who use GMail did not see the message
delivered to a page now hidden by newer messages.

Repost starts here 

On page http://struts.apache.org/struts-taglib/tagreference-struts-html.html

(1)

This is hardly readable:

=== cut here ==
base Render an HTML  Element Renders an HTML 
element with an href attribute pointing to the absolute location of
the enclosing JSP page
=== cut here ==

* Escaped tag angle brackets.
* This particular snippet looks like it was copied right from
Javadocs, the first sentence should obviously be removed.

(2)

On content note, the taglib docs always made me re-reading each
sentence twice or more trying to understand what it was about. For
example, here is submit element
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#submit

This one is perfectly clear: "value - The value of the button label."
While this one left me scratching my head couple of years ago:
"property - Name of the request parameter that will be included with
this submission, set to the specified value." Why it could not be
simply "property - the value of 'name' attribute".

Still not good, both of these descriptions use "value", which happens
to be a meta-word. Such words as "value", "name", "parameter",
"forward", "redirect" should be used very carefully if there is a risk
to confuse an attribute name (here you have it) or a particular
request method with a meta-word.

So, I would change the first one to a simple:
"value - the 'value' of the button."
  or maybe would add some clarification for HTML-challenged people:
"value - the 'value' of the button (a button label, visible to a user)."

And the second one to:
"property - the 'name' of the button."
  or to a more descriptive for HTTP-challenged:
"property - the 'name' of the button (a request key)"

(3)

It is yet another question why the attribute name is "property" and
not just a "name", but this question was possibly raised too many
times on this list. The problem with this name is that a person
knowlegeable of HTML would look for "name", not a "property".

(4)

"property" and "value", being the most important attributes of
"submit" element, should be emphasized with bold.

(5)

There should be examples for the most common usages along with generated HTML.

(6)

Recalling an old discussion of user-defined attributes in the tags,
Struts should have it instead of redefining all standard HTML
attributes and then explaining their meaning. Just define ones that
are parsed and used by Struts, and leave all other attributes to app
developer's discretion, just pass them through to HTML. We should
trust developers who use the framework.

Michael.

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



Re: Peculiar error with ....

2005-11-02 Thread Jacob Wilson
Hi Dave -
 
Even without the name attribute it is the same !!!
 
 
 
Here is my struts-config
 

  

  
  


  
  
 

  
  
  

  
  

  

 
 
Any clues???
 
Thanks
Jacob

Dave Newton <[EMAIL PROTECTED]> wrote:
Jacob Wilson wrote:

>I have a problem with my jsps after migrating my application from tomcat to 
>Websphere. I use the struts-html taglibs in my jsps. When I use the normal 
>html form tag like below, everything looks fine and the page gets displayed 
>without problems.
> 
>
> 
>When I use the struts-html taglib like below, the jsp that shows up on the 
>browser is totally empty
> 
> 
> 
>I had made sure that the action is present in struts-config.xml. Also, when I 
>say action="myPage" in the form tag does not work.
> 
>
I am suspicious of the "name" attribute. Or at least I am now that I 
figured out what the difference between the two JSP chunks actually was.

I've never used "name" in html:form (I didn't even know you could); 
"name" is created by html:form using the "action" attribute and the 
"name" attribute in the action's configuration.

But you didn't include any struts config info, so who knows.

Dave



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





-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: [OT] [HTML] Jsp page size

2005-11-02 Thread Murray Collingwood
Use the html width parameter on your html object.

eg



For more go to the source... http://www.w3.org/TR/html4/

Cheers
mc

On 2 Nov 2005 at 13:18, fea jabi wrote:

> In an application how can we specify the fixed size of the JSP page.
> 
> In the JSP page I created used a scrollbar in which there is a table.
> 
> To create a scrollbar,  I had to specify the height, width for the div in 
> css.
> 
> This table is stable size but there is another table above this which has 
> text in it.
> 
> When the browser size is changed the text is getting wrapped.
> 
> As a user I wouldn't prefer that to happen.
> 
> What is the better way of handing this? can we do this in struts? i.e 
> setting page size?
> 
> Thanks.
> 
> _
> Express yourself instantly with MSN Messenger! Download today - it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
> 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005


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



Re: Peculiar error with ....

2005-11-02 Thread Murray Collingwood
The NAME attribute doesn't work in html:form, it is replaced by the ID 
attribute.

Cheers
mc

On 2 Nov 2005 at 14:32, Dave Newton wrote:

> Jacob Wilson wrote:
> 
> >I have a problem with my jsps after migrating my application from tomcat to 
Websphere. I use the struts-html taglibs in my jsps. When I use the normal html 
form 
tag like below, everything looks fine and the page gets displayed without 
problems.
> > 
> > 
> > 
> >When I use the struts-html taglib like below, the jsp that shows up on the 
> >browser is 
totally empty
> > 
> > 
> > 
> >I had made sure that the action is present in struts-config.xml. Also, when 
> >I say 
action="myPage" in the form tag does not work.
> >  
> >
> I am suspicious of the "name" attribute. Or at least I am now that I 
> figured out what the difference between the two JSP chunks actually was.
> 
> I've never used "name" in html:form (I didn't even know you could); 
> "name" is created by html:form using the "action" attribute and the 
> "name" attribute in the action's  configuration.
> 
> But you didn't include any struts config info, so who knows.
> 
> Dave
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
> 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005


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



Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Michael Jouravlev
On 11/2/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> On 11/2/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> >
> > Um, that is not exactly what I asked about. I want to define
> > resettable properties in struts-config.xml file (or somewhere else, I
> > don't care where), for example:
> >
> >  > type="org.apache.struts.validator.DynaValidatorForm">
> >   
> >> reset="true"/>
> > 
>
> Well, once Struts supports resettable fields then it'll be supported
> by FormDef.  FormDef supports the same attributes that 
> supports.  (Of course, there's no reset yet in struts-config, so there
> ain't any yet in formdef.  I'll put it there once we get it into
> struts.)

If it were possible to use form definitions made in struts-config.xml,
then you would not have to reimplement this property in FormDef, and I
would not have to wait for you to reimplement it ;-) I would just
apply your patch to my copy of DynaActionForm, and FormDef would pick
up transparently whatever properties are defined in struts-config.xml.
Is it possible at all? Or is it too much work?

In a way, this is similar to explicitly supporting all HTML tag
attributes in Struts tags instead of supporting whatever a developer
put into a tag as attribute, and to let user agent care about that.

Michael.

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



RE: Struts dropdown boxes

2005-11-02 Thread Garner, Shawn
I recommend the AJAX solution if you can use JavaSript.

I recommend NOT submitting the page every time you select a value from the
dropdown box.  
1) This is an interruption in experience and is interpreted as a slow
website because it isn't immediate to the user and they are not even sure
why it is submitting.
2) You will be dramatically increasing the bandwidth you use.  Multiply the
number of options in your dropdown box by the number of fields on the page
by the number of users you're expecting.  The server has to do extra
transfers of the form data to and from the user.

I recommend that you make an additional JSP page and put the second dropdown
box on it.  That way the first page will submit.  You can populate the list
of values and display the second page with the second dropdown.  The second
page should NOT have the first dropdown box on it.


Shawn D. Garner

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 8:47 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Struts dropdown boxes

Hi Neil,

If your app can tolerate Javascript (i.e., require it), then Ajax is
probably your best bet.  Take a look here:

http://sourceforge.net/projects/javawebparts/

Grab a copy of the JWPCookbook.  In it is a recipe called Dynamic
Double-Select, which is exactly what you want.  You should be able to take
that example as-is and use it in your own app without much trouble.

If your are Javascript-averse though, your only real choice is a two-step
approach, i.e., show the page with the first dropdown and a button which
submits the form.  Then display the page with the second dropdown and two
buttons, one to continue on and one to go back and select another option
from the first.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, November 2, 2005 8:25 am, Neil Meyer said:
> Hi,
>
> I need to have 2 dropdown boxes on my jsp page. The first dropdowns
> selected
> value will determine what is pulled from the database for the second
> dropdown.
>
> I know there is a few ways of doing it but would like to know what most of
> the people recommend doing this.
>
> Your help is really appreciated.
>
> Regards
> Neil Meyer
>
> -
> 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]

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Hubert Rabago
On 11/2/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> Um, that is not exactly what I asked about. I want to define
> resettable properties in struts-config.xml file (or somewhere else, I
> don't care where), for example:
>
>  type="org.apache.struts.validator.DynaValidatorForm">
>   
>reset="true"/>
> 

Well, once Struts supports resettable fields then it'll be supported
by FormDef.  FormDef supports the same attributes that 
supports.  (Of course, there's no reset yet in struts-config, so there
ain't any yet in formdef.  I'll put it there once we get it into
struts.)

> And then to use defined LogonForm bean in FormDef to bind it to
> business class or DTO, kind of like in your example:
>
> 
>   
> 
>   
> 
>
> Here "name" attribute refers to the form bean that already defined in
> struts-config.xml. Or you create another attribute, whatever.

Then you'll define it in FormDef:





> If this is not feasible, would be great if you added support for
> resettable properties directly to FormDef. I was just thinking that
> combining and reusing is better than redefining.
>
> Michael.

Hubert

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



Re: Peculiar error with ....

2005-11-02 Thread Dave Newton

Jacob Wilson wrote:


I have a problem with my jsps after migrating my application from tomcat to 
Websphere. I use the struts-html taglibs in my jsps. When I use the normal html 
form tag like below, everything looks fine and the page gets displayed without 
problems.

 


When I use the struts-html taglib like below, the jsp that shows up on the 
browser is totally empty

 


I had made sure that the action is present in struts-config.xml. Also, when I say 
action="myPage" in the form tag does not work.
 

I am suspicious of the "name" attribute. Or at least I am now that I 
figured out what the difference between the two JSP chunks actually was.


I've never used "name" in html:form (I didn't even know you could); 
"name" is created by html:form using the "action" attribute and the 
"name" attribute in the action's  configuration.


But you didn't include any struts config info, so who knows.

Dave



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



Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Michael Jouravlev
On 11/2/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> On 11/2/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > Hubert,
> >
> > I cannot find if you explained it already, how to combine FormDef and
> > a regular Struts dynaform definitions. In your manual you write only
> > about DynaValidatorForm.
>
> FormDef can only work with forms defined by FormDef.

That's a pity. See below.

> > Considering your recent patch to DynaActionForm, I would like to
> > define a form with resettable properties, and to use FormDef to link
> > it to business object. How do I do that?
>
> You can specify the form type:
>
> 
> 
>  beanType="com.my.dto.MyBean"
> formType="com.my.web.MyCustomDynaForm"/>
> 
> 
>
> http://www.rabago.net/struts/formdef/manual.htm#formtype

Um, that is not exactly what I asked about. I want to define
resettable properties in struts-config.xml file (or somewhere else, I
don't care where), for example:


  
  


And then to use defined LogonForm bean in FormDef to bind it to
business class or DTO, kind of like in your example:


  

  


Here "name" attribute refers to the form bean that already defined in
struts-config.xml. Or you create another attribute, whatever.

If this is not feasible, would be great if you added support for
resettable properties directly to FormDef. I was just thinking that
combining and reusing is better than redefining.

Michael.

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



Peculiar error with ....

2005-11-02 Thread Jacob Wilson
Hello All -
 
I have a problem with my jsps after migrating my application from tomcat to 
Websphere. I use the struts-html taglibs in my jsps. When I use the normal html 
form tag like below, everything looks fine and the page gets displayed without 
problems.
 
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ page import ="com.cisco.m2s.iam.utils.*"%>
<%String rowColor = "";%>




 

 
  
   Displaying my page
  
 



 
 
When I use the struts-html taglib like below, the jsp that shows up on the 
browser is totally empty
 
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ page import ="com.cisco.m2s.iam.utils.*"%>
<%String rowColor = "";%>




 

 
  
   Displaying my page
  
 




 
I had made sure that the action is present in struts-config.xml. Also, when I 
say action="myPage" in the form tag does not work.
 
This seems very strange!!! Has anybody faced a similar problem? Am I missing 
something? Please do let me know as to why this happens.
 
Thanks
Jacob





-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: shale setup docs, links, and/or examples?

2005-11-02 Thread gramani
"Garner, Shawn" <[EMAIL PROTECTED]> wrote on 11/02/2005 10:41:24 
AM:

> I've used struts for a couple years.
> 
> I'm interested in using shale instead of struts on a new project.
> 
> I downloaded the shales binary and looked at the war and example 
projects
> but they were too complex for me to figure out.

Shawn, take a look at this 4 part series on JSF:
http://www-128.ibm.com/developerworks/views/java/libraryview.jsp?search_by=nonbelievers:

After that the Shale examples and docs will make more sense I think..
 
> Shawn
> 

Regards,
Geeta


[OT] [HTML]Re: Jsp page size

2005-11-02 Thread Dave Newton

fea jabi wrote:

This table is stable size but there is another table above this which 
has text in it.


When the browser size is changed the text is getting wrapped.

What is the better way of handing this? can we do this in struts? i.e 
setting page size?


Set the table size for the other table? Wrap the entire page in a table 
(div?) of fixed size?



On a side note, do people generally filter by "[OT]" or by "[OT"?

I ask because I have a tendency to tag stuff pretty heavily, like I 
would have tagged this as [OT:HTML] but I don't want to break anybody's 
filters.



Dave



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



Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Hubert Rabago
On 11/2/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> Hubert,
>
> I cannot find if you explained it already, how to combine FormDef and
> a regular Struts dynaform definitions. In your manual you write only
> about DynaValidatorForm.

FormDef can only work with forms defined by FormDef.

> Considering your recent patch to DynaActionForm, I would like to
> define a form with resettable properties, and to use FormDef to link
> it to business object. How do I do that?

You can specify the form type:







http://www.rabago.net/struts/formdef/manual.htm#formtype

>
> Also, would be nice if you included complete modified classes into
> FormDef distro, so they can be JARred directly into existing Struts
> setup. Just put a warning about possible incompatibilities with
> versions other than 1.3 ;-) (Is it for 1.3? Should work in 1.2.x I
> guess).

Did you mean the resettable DynaForms?

> Michael.
>

Hubert

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



shale setup docs, links, and/or examples?

2005-11-02 Thread Garner, Shawn
I've used struts for a couple years.

I'm interested in using shale instead of struts on a new project.

I downloaded the shales binary and looked at the war and example projects
but they were too complex for me to figure out.

I've looked at the documentation on Apache's site but not much help there.

I'm not sure how to develop the action classes/methods and also how to setup
the xml files for the shales framework.

I'm also not familiar with JSF but would like to use it.

 

Anyone have any tips from moving from a struts architecture to a shale
architecture?

I would like a project setup with like a couple class files and a couple jsp
pages that works to figure out what's going on.

 

Any help?

 

Shawn


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



Jsp page size

2005-11-02 Thread fea jabi

In an application how can we specify the fixed size of the JSP page.

In the JSP page I created used a scrollbar in which there is a table.

To create a scrollbar,  I had to specify the height, width for the div in 
css.


This table is stable size but there is another table above this which has 
text in it.


When the browser size is changed the text is getting wrapped.

As a user I wouldn't prefer that to happen.

What is the better way of handing this? can we do this in struts? i.e 
setting page size?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: Ancient (1.1) Struts Help - Map Backed Forms

2005-11-02 Thread Denis Avdic
Forget that.
They're actually running 1.0.2.  No map backed forms for me.


Sorry for wasting your time.

D

On 11/2/05, Denis Avdic <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I've recently moved jobs and landed in a position where I have to
> develop with Struts 1.1 (don't ask me why they don't want to upgrade).
>
> In any case, I need to use map-backed ActionForm, first time we're
> doing this in the company looks like.
>
> I am running into problems that I've previously solved by using JSTL.
> However that is another no-no.
>
> Basically the problem is this.  When trying to access the page I get
> this error:
>
> javax.servlet.jsp.JspException: No getter method for property
> value(officeCell_2001) of bean org.apache.struts.taglib.html.BEAN
>at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
>
>
> JSP snip:
>
>  type="com.foo.bar.bat.MFPositionContact">
>
>  <% String curPos =
> Integer.toString(position.getEmployeeId());
>
>  prop = "value(officePhone_"+curPos+")"; %>
>
>
>
> 
>
>
> Form:
>
> public class MFEditForm extends ActionForm {
>  public MFEditForm() {
>
>  }
>
>  private String officeId;
>  private Map values = new HashMap();
>
>  public String getOfficeId() {   return officeId;  }
>  public String getValue(String key) {return (String) values.get(key);  }
>  public void setOfficeId(String oid) {officeId = oid;  }
>  public void setValue(String key, Object value) {values.put(key, value); }
>
> }
>
> from struts-config.xml
>
> 
>
> type="com.foo.bar.bat.ReportAction"
>name="mFForm"
>scope="request"
>validate="true">
>
>
> 
>
> I prepopulate the formBean and set it in request.  The formBean is
> getting associated correctly with the form on JSP (I checked by
> outputing the officeId without touching the map).  Interesting thing
> is that if I don't use getter methods (IE, if I use  property="value(userId_<%=curPos%>)" value="foo"/>)
> there is no error.  It seems to me that the getter method is somehow
> wrong, but I can't see it.
>
> I tried these getValue signature variations:
>
> public String getValue(String key)
> public Object getValue(Object key)
> public String getValue(Object key)
> public Object getValue(String key)
>
>
> It seems to me that this plain vanilla map backed ActionForm should
> work without a hitch.  Am I missing something really obvious?  I
> really can't use JSTL or EL tags so if there is a solution not
> involving those, please let me know.
>
> Thanks,
>
> Denis
>

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



[FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Michael Jouravlev
Hubert,

I cannot find if you explained it already, how to combine FormDef and
a regular Struts dynaform definitions. In your manual you write only
about DynaValidatorForm.

Considering your recent patch to DynaActionForm, I would like to
define a form with resettable properties, and to use FormDef to link
it to business object. How do I do that?

Also, would be nice if you included complete modified classes into
FormDef distro, so they can be JARred directly into existing Struts
setup. Just put a warning about possible incompatibilities with
versions other than 1.3 ;-) (Is it for 1.3? Should work in 1.2.x I
guess).

Michael.

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



Re: Struts + Spring + Hibernate

2005-11-02 Thread James Mitchell
You can use [1]Middlegen to [2]generate *.hbm.xml files, then use [3] 
hbm2java to generate Pojos.



[1] -- http://boss.bekk.no/boss/middlegen/
[2] -- http://www.hibernate.org/98.html
[3] -- http://hibernate.bluemars.net/276.html

Combine this with Spring's OpenSessionInView and the Struts' wild  
card action mapping, and you'll find yourself developing at lighting  
speed.


In fact, one of my clients have extended Middlegen to generate the  
following (in addition to the *.hbm.xml files) from any data source:

a) a default Dao layer (each of which extends HibernateDaoSupport)
b) a base service layer with a stock set of finders using the  
injected Dao's from (a)
c) an extended service layer impl (1 time gen) that extend (b) so  
future regen's of (b) don't overwright custom code

d) unit tests for all generated sources
e) all of the xml needed to wire together the Dao and Service layers.

All I have to do, is create a new Facade and impl, and with Springs  
autowiring, my crud work is done.  The whole thing is quite  
impressive and serves as a pretty nice launchpad for a new  
project...which leads to my next link:


https://appfuse.dev.java.net/



--
James Mitchell





On Nov 2, 2005, at 11:49 AM, Gaet wrote:


Thanks Wendy,

yes, this article is a good presentation but it's a pity that there  
is not a chapter with Hibernate!

It seems that only one tutorial exists with these 3 frameworks...

Does somebody know if it exists code generator for the interfaces  
when using these 3 framework?
Because, I'm afraid on the number of classes we have to develop to  
only retrieve one row in a table!


Thanks for help


  - Original Message -
  From: Wendy Smoak
  To: Struts Users Mailing List
  Sent: Wednesday, November 02, 2005 5:16 PM
  Subject: Re: Struts + Spring + Hibernate


  On 11/2/05, Gaet <[EMAIL PROTECTED]> wrote:




Are there some developers here who use this solution?
Does someone have a good tutorial or sample to indicate? (I've  
already
seen "Wiring your web applications with Open Source  
java"..thanks :o))





  For the Struts + Spring part, Ted recently posted a link to a  
good article:

  http://www-128.ibm.com/developerworks/java/library/j-sr2.html

  --
  Wendy




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



Re: Struts + Spring + Hibernate

2005-11-02 Thread Gaet
Thanks Wendy,

yes, this article is a good presentation but it's a pity that there is not a 
chapter with Hibernate!
It seems that only one tutorial exists with these 3 frameworks...

Does somebody know if it exists code generator for the interfaces when using 
these 3 framework?
Because, I'm afraid on the number of classes we have to develop to only 
retrieve one row in a table!

Thanks for help

 
  - Original Message - 
  From: Wendy Smoak 
  To: Struts Users Mailing List 
  Sent: Wednesday, November 02, 2005 5:16 PM
  Subject: Re: Struts + Spring + Hibernate


  On 11/2/05, Gaet <[EMAIL PROTECTED]> wrote:
  >
  >
  > Are there some developers here who use this solution?
  > Does someone have a good tutorial or sample to indicate? (I've already
  > seen "Wiring your web applications with Open Source java"..thanks :o))
  >

  For the Struts + Spring part, Ted recently posted a link to a good article:
  http://www-128.ibm.com/developerworks/java/library/j-sr2.html

  --
  Wendy


Ancient (1.1) Struts Help - Map Backed Forms

2005-11-02 Thread Denis Avdic
Hello list,

I've recently moved jobs and landed in a position where I have to
develop with Struts 1.1 (don't ask me why they don't want to upgrade).

In any case, I need to use map-backed ActionForm, first time we're
doing this in the company looks like.

I am running into problems that I've previously solved by using JSTL. 
However that is another no-no.

Basically the problem is this.  When trying to access the page I get
this error:

javax.servlet.jsp.JspException: No getter method for property
value(officeCell_2001) of bean org.apache.struts.taglib.html.BEAN
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)


JSP snip:



  <% String curPos =
Integer.toString(position.getEmployeeId());

 prop = "value(officePhone_"+curPos+")"; %>






Form:

public class MFEditForm extends ActionForm {
  public MFEditForm() {

  }

  private String officeId;
  private Map values = new HashMap();

  public String getOfficeId() {   return officeId;  }
  public String getValue(String key) {return (String) values.get(key);  }
  public void setOfficeId(String oid) {officeId = oid;  }
  public void setValue(String key, Object value) {values.put(key, value); }

}

from struts-config.xml








I prepopulate the formBean and set it in request.  The formBean is
getting associated correctly with the form on JSP (I checked by
outputing the officeId without touching the map).  Interesting thing
is that if I don't use getter methods (IE, if I use )
there is no error.  It seems to me that the getter method is somehow
wrong, but I can't see it.

I tried these getValue signature variations:

public String getValue(String key)
public Object getValue(Object key)
public String getValue(Object key)
public Object getValue(String key)


It seems to me that this plain vanilla map backed ActionForm should
work without a hitch.  Am I missing something really obvious?  I
really can't use JSTL or EL tags so if there is a solution not
involving those, please let me know.

Thanks,

Denis

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



Re: Struts + Spring + Hibernate

2005-11-02 Thread Wendy Smoak
On 11/2/05, Gaet <[EMAIL PROTECTED]> wrote:
>
>
> Are there some developers here who use this solution?
> Does someone have a good tutorial or sample to indicate? (I've already
> seen "Wiring your web applications with Open Source java"..thanks :o))
>

For the Struts + Spring part, Ted recently posted a link to a good article:
http://www-128.ibm.com/developerworks/java/library/j-sr2.html

--
Wendy


Struts + Spring + Hibernate

2005-11-02 Thread Gaet

  Hi everybody,

  After reading for two days on the web, the association of "Struts + Spring + 
Hibernate" seems to be one of the best architecture to address web application. 

  I've also read several samples but all these classes to develop looks like a 
gazeline :o) and a little bit difficult to understand for newbie...

  Are there some developers here who use this solution?
  Does someone have a good tutorial or sample to indicate? (I've already seen 
"Wiring your web applications with Open Source java"..thanks :o))

  Thanks for your feedback on this architecture :o)



Re: java.util.Date in Action Form Bean

2005-11-02 Thread Hubert Rabago
[ Oh, I missed my cue! :) ]

If your form bean maps to a business object (and it sounds like it
does since you're using BeanUtils), you can try FormDef:
http://formdef.dev.java.net/

You won't need to create a separate ActionForm class or manually
define your DynaActionForm, FormDef will configure it for you.  You
can also specify how you want your fields formatted, including dates
and numbers, and use FormDef's conversion methods in place of
BeanUtils.

Hubert

On 10/31/05, Yujun Liang <[EMAIL PROTECTED]> wrote:
> Laurie,
>
> Thanks for all the replies.
>
> Can you point me to a document describe how to change the default converter
> used by Struts? I was not aware of that. By the way, what's the disadvantage
> to have common beanutil to support java.util.Date as well?
>
> Thanks
>
> On 10/30/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> >
> > Right, I create a fresh instance of BeanUtilsBean and register the
> > converter at the point of use, to avoid that being a problem.
> >
> > L.

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



Re: Tiles, pass parameters between tiles's frames

2005-11-02 Thread Greg Reddin


On Nov 2, 2005, at 8:45 AM, Ronald Holshausen wrote:

It would probably be best to use the session as the medium for passing
between your tile components.


Request would work just as good as session, but either way my  
previous caveat still applies.  If you set something in one tile,  
then retrieve it in another you are dependent on the order in which  
they are invoked.  If you change your layout and shuffle them around  
it won't work anymore.  This is unless, of course, you actually  
invoke one tile from within another (using ).


Greg


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



Re: "Configuration is frozen" exception thrown for actionMapping.setScope

2005-11-02 Thread Hubert Rabago
On 11/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> In our application, we have decided to force all the actions to use the
> request scope. So instead of adding scope ="request" in the 
> element in struts-config.xml for each action, we extended the
> RequestProcessor class as below
>

>
> 1.Is there any workaround to avoid the "Configuration is frozen"
> exception

This happens when you try to change objects configured through
struts-config after the application has started up.


> 2.Is there any better way to enforce that all the actions to use some
> specific scope (Ex: request)

You can:
1) Implement a plugin that'll loop through the action mappings
configured and change their "scope" value.
2) Override the default ActionMapping class and set its default
"scope" value to request.

I'd probably try option (2).
You can take a look at the struts-examples.war sample application
[included in the struts download] for an example of how this is done.


>
> Awaiting your replies and Thanks in Advance
>
> Sajid

Hubert

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



Re: "Configuration is frozen" exception thrown for actionMapping.setScope

2005-11-02 Thread Frank W. Zammetti
Hi Sajid,

One way to get around this would be to modify the ActionConfig class's
freeze() method... just remove configured=true; and you should be all set
(I'm going from memory here, but I think I'm remembering right).  But, the
configs are frozen for a reason, so you may not want to do that.

Another option is to have a class in the struts.config package that has
the sole purpose of unfreezing an ActionConfig (by firectly setting
configured=false;).  The configured attribute of ActionConfig is
protected, that's why it would have to be in the same package.  Keep in
mind though that mapping instances are shared, so if you unfreeze a
mapping it is unfrozen for all requests.  You most likely will want to
clone the real, shared mapping, and then unfreeze the clone and continue
using that for the remainder of the request.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, November 2, 2005 6:41 am, [EMAIL PROTECTED] said:
>
> Hi All,
>
> In our application, we have decided to force all the actions to use the
> request scope. So instead of adding scope ="request" in the 
> element in struts-config.xml for each action, we extended the
> RequestProcessor class as below
>
> 1.Extend the RequestProcessor class and add the config entry in
> struts-config.xml
>   
>value="CustomRequestProcessor"/>
> 
>
> 2.Override the processMapping method of RequestProcessor as below
>
>   ActionMapping actionMapping= super.processMapping(request,
> response, path);
>   if (actionMapping!= null) {
> actionMapping.setScope("request");
>   }
>   return actionMapping;
>
> However I get the exception at actionMapping.setScope("request");
>
> java.lang.IllegalStateException: Configuration is frozen
> 
>
> I tried looking at the struts mailing list, The cause of the exception
> is mentioned , however no workaround is suggested, My questions are
>
> 1.Is there any workaround to avoid the "Configuration is frozen"
> exception
> 2.Is there any better way to enforce that all the actions to use some
> specific scope (Ex: request)
>
> Awaiting your replies and Thanks in Advance
>
> Sajid
>
>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential or
> privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or
> [EMAIL PROTECTED] immediately
> and destroy all copies of this message and any attachments.


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



Re: Tiles, pass parameters between tiles's frames

2005-11-02 Thread Ronald Holshausen
Hi Rodolfo,

It would probably be best to use the session as the medium for passing
between your tile components.

On 02/11/05, Rodolfo García Esteban/CYII <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem with tiles, I have four tile`s frames: a head, a menu, a
> content and a foot. I load all the frames from a JSP which is generic I
> need to pass parameters from the content frame to the menu frame, I have
> tried some alternatives without success. I would appreciatte any help.
>
> Thanks
> 
> 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
> ___
>

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



Re: Tiles, pass parameters between tiles's frames

2005-11-02 Thread Greg Reddin

On Nov 2, 2005, at 6:51 AM, Rodolfo García Esteban/CYII wrote:
I have a problem with tiles, I have four tile`s frames: a head, a  
menu, a
content and a foot. I load all the frames from a JSP which is  
generic I
need to pass parameters from the content frame to the menu frame, I  
have

tried some alternatives without success. I would appreciatte any help.


What are some of the alternatives you've tried?  Are the parameters  
you are passing part of the Tile definition or stored somewhere  else?


One caveat:  You should never rely on the order of Tiles being  
processed in a template.  For example suppose you have a menu tile  
and a content tile.  If you add a request attribute in the content  
tile, hoping it will be available in the menu tile, it won't work if  
the menu tile has already been processed.  But you can set something  
in the request before the template is invoked (i.e. in your Action if  
you're using Struts).


Greg


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



Re: Struts dropdown boxes

2005-11-02 Thread Frank W. Zammetti
Hi Neil,

If your app can tolerate Javascript (i.e., require it), then Ajax is
probably your best bet.  Take a look here:

http://sourceforge.net/projects/javawebparts/

Grab a copy of the JWPCookbook.  In it is a recipe called Dynamic
Double-Select, which is exactly what you want.  You should be able to take
that example as-is and use it in your own app without much trouble.

If your are Javascript-averse though, your only real choice is a two-step
approach, i.e., show the page with the first dropdown and a button which
submits the form.  Then display the page with the second dropdown and two
buttons, one to continue on and one to go back and select another option
from the first.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, November 2, 2005 8:25 am, Neil Meyer said:
> Hi,
>
> I need to have 2 dropdown boxes on my jsp page. The first dropdowns
> selected
> value will determine what is pulled from the database for the second
> dropdown.
>
> I know there is a few ways of doing it but would like to know what most of
> the people recommend doing this.
>
> Your help is really appreciated.
>
> Regards
> Neil Meyer
>
> -
> 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]



Validator 1.2.0 RC3 now available for review

2005-11-02 Thread Niall Pemberton
Release Candidate 3 of Validator 1.2.0 is now available for download at:
http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/

A summary of whats new in Validator 1.2.0 is available on the Wiki:
http://wiki.apache.org/jakarta-commons/ValidatorVersion120

Full details of changes available in the changes report:
http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/site/changes-report.html

New version of the Validator Docs available here:
   http://people.apache.org/~niallp/commons-validator/1.2.0-rc3/site/

All feedback on this release candidate build is welcome.

Niall



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



RE: Question about html:options

2005-11-02 Thread Balasubramaniam, Sezhiyan
We never used any hashmaps in List as the data holders. Always we use
the java beans (with getter and setter) in list.

Here is the sample code.
Get_States is the request attribute name for the list.
Code and description are two properties in the beans added to the list.

 

Bala

-Original Message-
From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 5:54 AM
To: Struts Users Mailing List
Subject: Question about html:options

Hi all,

I've been using Struts for some time now and suddenly faced this issue
that i'm not sure it's a bug or a misinterpretation of mine.

I have a List in request scope holding HashMaps. Then, i tried to use
 like this:



My HashMap instances have two entries each one: value => some value
and label => value's label.

Quite strange that didn't work. After replacing HashMaps to POJOs it
worked.

Aren't maps supported by ?
If not, it's not clear enough in documentation.
If they are, could you please point me to a simple sample?

Thanks in advance,
Daniel Silva.

-
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: Struts dropdown boxes

2005-11-02 Thread Neil Meyer
Thanks Daniel I will definitely look at this.



-Original Message-
From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] 
Sent: 02 November 2005 04:06 PM
To: Struts Users Mailing List
Subject: Re: Struts dropdown boxes

Neil,

A good approach for this is always having a set up action where you
load all data to be used in dropdown boxes.
You can do this with plain Actions and, what i use the most, DispatchActions.

I usually do this way:


public class MyDispatchAction extends DispatchAction {

 public ActionForward setUp() {
List dd1 = loadDropDown1();
request.setAttribute("dd1", dd1);
if (is some form property set) {
   List dd2 = loadDropDown2(myFormProperty);
   request.setAttribute("dd2", dd2);
}

return mapping.findForward("go");
 }

 public ActionForward doStuff() {

 // do whatelse you need to
return mapping.findForward("go");
}

}

Then in my jsp page i have:


   


   



  

  




Hope that helped.

Cheers,
Daniel Silva.





On 11/2/05, Neil Meyer <[EMAIL PROTECTED]> wrote:
> I want to populate the first dropdown with every country in the world and
> then the second one will show the cities for this.
>
> The data is static but the result is big.
>
> Thanks
> Neil
>
> -Original Message-
> From: Thor Kristensen [mailto:[EMAIL PROTECTED]
> Sent: 02 November 2005 03:40 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts dropdown boxes
>
> Or, if the data is pretty static and of a modest size, perform the
> population of the second drop down box in javascript.
> Although, it'd be much better as Thai proposed, since with javascript you'd
> write browser dependent code.
>
>
> Mvh
>   Thor
>
>
> > -Original Message-
> > From: Vu, Thai [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 02, 2005 2:33 PM
> > To: Struts Users Mailing List
> > Subject: RE: Struts dropdown boxes
> >
> > I will submit that form whenever the first dropdown list
> > changes and then load the data to the 2nd.
> >
> > -Original Message-
> > From: Neil Meyer [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 02, 2005 7:26 AM
> > To: Struts Users Mailing List
> > Subject: Struts dropdown boxes
> >
> > Hi,
> >
> > I need to have 2 dropdown boxes on my jsp page. The first
> > dropdowns selected value will determine what is pulled from
> > the database for the second dropdown.
> >
> > I know there is a few ways of doing it but would like to know
> > what most of the people recommend doing this.
> >
> > Your help is really appreciated.
> >
> > Regards
> > Neil Meyer
> >
> > -
> > 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]
>
>
> -
> 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: Struts dropdown boxes

2005-11-02 Thread Daniel Henrique Ferreira e Silva
Neil,

A good approach for this is always having a set up action where you
load all data to be used in dropdown boxes.
You can do this with plain Actions and, what i use the most, DispatchActions.

I usually do this way:


public class MyDispatchAction extends DispatchAction {

 public ActionForward setUp() {
List dd1 = loadDropDown1();
request.setAttribute("dd1", dd1);
if (is some form property set) {
   List dd2 = loadDropDown2(myFormProperty);
   request.setAttribute("dd2", dd2);
}

return mapping.findForward("go");
 }

 public ActionForward doStuff() {

 // do whatelse you need to
return mapping.findForward("go");
}

}

Then in my jsp page i have:


   


   



  

  




Hope that helped.

Cheers,
Daniel Silva.





On 11/2/05, Neil Meyer <[EMAIL PROTECTED]> wrote:
> I want to populate the first dropdown with every country in the world and
> then the second one will show the cities for this.
>
> The data is static but the result is big.
>
> Thanks
> Neil
>
> -Original Message-
> From: Thor Kristensen [mailto:[EMAIL PROTECTED]
> Sent: 02 November 2005 03:40 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts dropdown boxes
>
> Or, if the data is pretty static and of a modest size, perform the
> population of the second drop down box in javascript.
> Although, it'd be much better as Thai proposed, since with javascript you'd
> write browser dependent code.
>
>
> Mvh
>   Thor
>
>
> > -Original Message-
> > From: Vu, Thai [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 02, 2005 2:33 PM
> > To: Struts Users Mailing List
> > Subject: RE: Struts dropdown boxes
> >
> > I will submit that form whenever the first dropdown list
> > changes and then load the data to the 2nd.
> >
> > -Original Message-
> > From: Neil Meyer [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 02, 2005 7:26 AM
> > To: Struts Users Mailing List
> > Subject: Struts dropdown boxes
> >
> > Hi,
> >
> > I need to have 2 dropdown boxes on my jsp page. The first
> > dropdowns selected value will determine what is pulled from
> > the database for the second dropdown.
> >
> > I know there is a few ways of doing it but would like to know
> > what most of the people recommend doing this.
> >
> > Your help is really appreciated.
> >
> > Regards
> > Neil Meyer
> >
> > -
> > 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]
>
>
> -
> 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]



Question about html:options

2005-11-02 Thread Daniel Henrique Ferreira e Silva
Hi all,

I've been using Struts for some time now and suddenly faced this issue
that i'm not sure it's a bug or a misinterpretation of mine.

I have a List in request scope holding HashMaps. Then, i tried to use
 like this:



My HashMap instances have two entries each one: value => some value
and label => value's label.

Quite strange that didn't work. After replacing HashMaps to POJOs it worked.

Aren't maps supported by ?
If not, it's not clear enough in documentation.
If they are, could you please point me to a simple sample?

Thanks in advance,
Daniel Silva.

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



RE: Struts dropdown boxes

2005-11-02 Thread Neil Meyer
I want to populate the first dropdown with every country in the world and
then the second one will show the cities for this.

The data is static but the result is big.

Thanks
Neil

-Original Message-
From: Thor Kristensen [mailto:[EMAIL PROTECTED] 
Sent: 02 November 2005 03:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts dropdown boxes

Or, if the data is pretty static and of a modest size, perform the
population of the second drop down box in javascript. 
Although, it'd be much better as Thai proposed, since with javascript you'd
write browser dependent code. 


Mvh
  Thor
 

> -Original Message-
> From: Vu, Thai [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 02, 2005 2:33 PM
> To: Struts Users Mailing List
> Subject: RE: Struts dropdown boxes
> 
> I will submit that form whenever the first dropdown list 
> changes and then load the data to the 2nd.
> 
> -Original Message-
> From: Neil Meyer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 02, 2005 7:26 AM
> To: Struts Users Mailing List
> Subject: Struts dropdown boxes
> 
> Hi,
> 
> I need to have 2 dropdown boxes on my jsp page. The first 
> dropdowns selected value will determine what is pulled from 
> the database for the second dropdown.
> 
> I know there is a few ways of doing it but would like to know 
> what most of the people recommend doing this.
> 
> Your help is really appreciated.
> 
> Regards
> Neil Meyer
> 
> -
> 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]


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



RE: Struts dropdown boxes

2005-11-02 Thread Thor Kristensen
Or, if the data is pretty static and of a modest size, perform the
population of the second drop down box in javascript. 
Although, it'd be much better as Thai proposed, since with javascript you'd
write browser dependent code. 


Mvh
  Thor
 

> -Original Message-
> From: Vu, Thai [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 02, 2005 2:33 PM
> To: Struts Users Mailing List
> Subject: RE: Struts dropdown boxes
> 
> I will submit that form whenever the first dropdown list 
> changes and then load the data to the 2nd.
> 
> -Original Message-
> From: Neil Meyer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 02, 2005 7:26 AM
> To: Struts Users Mailing List
> Subject: Struts dropdown boxes
> 
> Hi,
> 
> I need to have 2 dropdown boxes on my jsp page. The first 
> dropdowns selected value will determine what is pulled from 
> the database for the second dropdown.
> 
> I know there is a few ways of doing it but would like to know 
> what most of the people recommend doing this.
> 
> Your help is really appreciated.
> 
> Regards
> Neil Meyer
> 
> -
> 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: Struts dropdown boxes

2005-11-02 Thread Gareth Evans

Try,

http://ajaxtags.sourceforge.net/usage.html#ajax:select

Gareth

Vu, Thai wrote:

I will submit that form whenever the first dropdown list changes and
then load the data to the 2nd.

-Original Message-
From: Neil Meyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 7:26 AM

To: Struts Users Mailing List
Subject: Struts dropdown boxes

Hi,

I need to have 2 dropdown boxes on my jsp page. The first dropdowns
selected
value will determine what is pulled from the database for the second
dropdown.

I know there is a few ways of doing it but would like to know what most
of
the people recommend doing this.

Your help is really appreciated.

Regards
Neil Meyer

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




--
Gareth Evans

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:+44 (0)870 0100 704
Fax:+44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:www.msoft.co.uk

--
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
--
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



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



lookupdispatchaction and validator

2005-11-02 Thread arnaud gonzales
hello,
I'm trying to use validator with lookupdispatchaction, it will be great to
generate the client JS validation.
Have you any links, samples?
Thanks in advance

--
Regards
Arnaud Gonzales.


RE: Struts dropdown boxes

2005-11-02 Thread Vu, Thai
I will submit that form whenever the first dropdown list changes and
then load the data to the 2nd.

-Original Message-
From: Neil Meyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 7:26 AM
To: Struts Users Mailing List
Subject: Struts dropdown boxes

Hi,

I need to have 2 dropdown boxes on my jsp page. The first dropdowns
selected
value will determine what is pulled from the database for the second
dropdown.

I know there is a few ways of doing it but would like to know what most
of
the people recommend doing this.

Your help is really appreciated.

Regards
Neil Meyer

-
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: Question on http://displaytag.sourceforge.net/

2005-11-02 Thread Vu, Thai
I've just used it in my previous project. It's great. The version 1.1
(which must be downloaded from the cvs) didn't work with Oracle
application server 9i. Maybe it will work with 10g. The external sort
and partial list functionalities work fine. There's a bug there (the
link to the last page doesn't show up, but we can click on next or last
to go the last page).

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 01, 2005 8:36 PM
To: Struts Users Mailing List
Subject: RE: Question on http://displaytag.sourceforge.net/

Paul,

You don't even want to know how long I was looking at displaytag, even
before using it, waiting for them to jump from a 0.8.6 version to
release a
1.0 version. :)  Thanks for the valuelist reminder, I'd totally
forgotten
about that one.

Regards,
David

-Original Message-
From: Paul Benedict [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 01, 2005 7:29 PM
To: Struts Users Mailing List
Subject: Re: Question on http://displaytag.sourceforge.net/

Rick,

I am using it now. There's a big 1.1 release plan, but
I think with only one or two guys working on it, it
will take years to release -- even longer than the 18
month Struts release cycle :-) Anyway, they have
paging built-in for 1.1, but in the mean time, use the
ValueLiist tag which is built on J2EE patterns:

http://valuelist.sourceforge.net/


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



Struts dropdown boxes

2005-11-02 Thread Neil Meyer
Hi,

I need to have 2 dropdown boxes on my jsp page. The first dropdowns selected
value will determine what is pulled from the database for the second
dropdown.

I know there is a few ways of doing it but would like to know what most of
the people recommend doing this.

Your help is really appreciated.

Regards
Neil Meyer

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



Tiles, pass parameters between tiles's frames

2005-11-02 Thread Rodolfo García Esteban/CYII
Hi,

I have a problem with tiles, I have four tile`s frames: a head, a menu, a 
content and a foot. I load all the frames from a JSP which is generic I 
need to pass parameters from the content frame to the menu frame, I have 
tried some alternatives without success. I would appreciatte any help.

Thanks

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
___

"Configuration is frozen" exception thrown for actionMapping.setScope

2005-11-02 Thread khan.sajid

Hi All,

In our application, we have decided to force all the actions to use the
request scope. So instead of adding scope ="request" in the 
element in struts-config.xml for each action, we extended the
RequestProcessor class as below

1.Extend the RequestProcessor class and add the config entry in
struts-config.xml
  
 


2.Override the processMapping method of RequestProcessor as below

  ActionMapping actionMapping= super.processMapping(request,
response, path);
  if (actionMapping!= null) {
actionMapping.setScope("request");
  }
  return actionMapping;

However I get the exception at actionMapping.setScope("request");

java.lang.IllegalStateException: Configuration is frozen


I tried looking at the struts mailing list, The cause of the exception
is mentioned , however no workaround is suggested, My questions are

1.Is there any workaround to avoid the "Configuration is frozen"
exception
2.Is there any better way to enforce that all the actions to use some
specific scope (Ex: request)

Awaiting your replies and Thanks in Advance

Sajid





Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

RE: Question on http://displaytag.sourceforge.net/

2005-11-02 Thread hermod.opstvedt
Hi

Be aware of a subtle bug in DisplayTag. If you have a column without a 
"property" - i.e you want to display somthing different like:










then the use of "titleKey" will display nothing - You will have to use "title" 
and hard-code the value in your jsp. I am planning to debug through the 
displaytag source sometime this week and try to figur out what goes wrong here.

Hermod



-Original Message-
From: Angel Cervera Claudio [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 9:43 AM
To: Struts Users Mailing List
Subject: Re: Question on http://displaytag.sourceforge.net/


[EMAIL PROTECTED] wrote:

>Has anyone used the display tag library at http://displaytag.sourceforge.net/ 
>in a Struts application?
>
>If so what did you think of it?
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>
No problems. Go all rigth.
Example:



?c=${resultadosID.idModelo}">" src=""/>','${resultadosID.idModelo}');">" src=""/>



-- 
Ángel Cervera Claudio
Freelance / desarrollos j2ee
web: http://www.acervera.com
tlf: 670819234 / 916058546
email: [EMAIL PROTECTED]
- Mensajería -
msn: [EMAIL PROTECTED]
yahoo: angelcervera
aol: angelcervera
jabber: angelcervera en jabber.org
google talk: angelcervera


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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Question on http://displaytag.sourceforge.net/

2005-11-02 Thread Angel Cervera Claudio

[EMAIL PROTECTED] wrote:


Has anyone used the display tag library at http://displaytag.sourceforge.net/ 
in a Struts application?

If so what did you think of it?


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


 


No problems. Go all rigth.
Example:
requestURI="/zonaTrabajoPrincipalBuscar.do" id="resultadosID" 
width="100%" cellpadding="5" cellspacing="1" pagesize="20" export="true">
   value="${resultadosID.codigo}" escapeXml="true"/>
   value="${resultadosID.nombre}" escapeXml="true"/>
   href="action="/zonaTrabajoPrincipalBorrarDesdeTabla"/>?c=${resultadosID.idModelo}">class="botonIrABorrar" alt="key="ZonaTrabajoBusqueda.borrarDesdeTabla"/>" src="page="/img/iIrABorrar.gif"/>"/>','${resultadosID.idModelo}');">class="botonIrAEdicion" alt="key="ZonaTrabajoBusqueda.irAEditar"/>" src="page="/img/iIrAEdicion.gif"/>"/>




--
Ángel Cervera Claudio
Freelance / desarrollos j2ee
web: http://www.acervera.com
tlf: 670819234 / 916058546
email: [EMAIL PROTECTED]
- Mensajería -
msn: [EMAIL PROTECTED]
yahoo: angelcervera
aol: angelcervera
jabber: angelcervera en jabber.org
google talk: angelcervera


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