Re: Radio button group

2006-04-17 Thread manivannan84
do you want to map the radio button to a bean ? 
 
 
--
Manivannan Palanichamy
http://geocities.com/manivannan57



 
 
 
-Original Message-
From: Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Tue, 18 Apr 2006 08:28:28 +0200
Subject: RE: Radio button group


Guys,

I am still struggling to find a way out.. Any ideas how to get this
right!

Regards

-Original Message-
From: Vidya (Suvarna) Mahavadi [mailto:[EMAIL PROTECTED] 
Sent: Thursday 13 April 2006 16:37
To: Struts Users Mailing List
Subject: Radio button group

Hi,

 

I have a jsp with a table showing few records of data where each record
corresponds to an object of a bean. Beside the bean data I need to have
a radio button group with (Approve, Reject and Ignore).

Can any one help me to put the bean object and the radio button group
together.. in Jsp and action form.


Any help is much appreciated.


Thanks,
Vidya

 


This message and any attachments are confidential and intended solely
for the addressee. If you have received this message in error, please
notify Discovery immediately, telephone number +27 11 529 2888. Any
unauthorised use; alteration or dissemination of the contents of this
email is strictly prohibited. In no event will Discovery or the sender
be liable in any manner whatsoever to any person for any loss or any
direct, indirect, special or consequential damages arising from use of
this email or any linked website, including, without limitation, from
any lost profits, business interruption, loss of programmes or other
data that may be stored on any information handling system or otherwise
from any assurance that this email is virus free even if Discovery is
expressly advised of the possibility of such damages. Discovery is an
Authorised Financial Services Provider.
This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial 
Services Provider.

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

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam 
and email virus protection.


Re: ValidatorActionForm in Struts 1.3.1

2006-04-17 Thread manivannan84
hi,
 
 Have you placed the validator jar (jakarta-oro- (somethinf).jar ) in 
WEB-INF/lib?
 
--
Manivannan Palanichamy
http://geocities.com/manivannan57



 
 
 
-Original Message-
From: Chaudhary, Harsh <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Mon, 17 Apr 2006 12:49:25 -0500
Subject: ValidatorActionForm in Struts 1.3.1


Hi,

I don't see the ValidatorActionForm class in Struts 1.3.1 . I don't
understand why this was taken out (not even deprecated).

Or is there an alternate class I should be using for the
ValidatorActionForm class.

Thanks,

Harsh.

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam 
and email virus protection.


RE: Radio button group

2006-04-17 Thread Vidya \(Suvarna\) Mahavadi
Guys,

I am still struggling to find a way out.. Any ideas how to get this
right!

Regards

-Original Message-
From: Vidya (Suvarna) Mahavadi [mailto:[EMAIL PROTECTED] 
Sent: Thursday 13 April 2006 16:37
To: Struts Users Mailing List
Subject: Radio button group

Hi,

 

I have a jsp with a table showing few records of data where each record
corresponds to an object of a bean. Beside the bean data I need to have
a radio button group with (Approve, Reject and Ignore).

Can any one help me to put the bean object and the radio button group
together.. in Jsp and action form.


Any help is much appreciated.


Thanks,
Vidya

 


This message and any attachments are confidential and intended solely
for the addressee. If you have received this message in error, please
notify Discovery immediately, telephone number +27 11 529 2888. Any
unauthorised use; alteration or dissemination of the contents of this
email is strictly prohibited. In no event will Discovery or the sender
be liable in any manner whatsoever to any person for any loss or any
direct, indirect, special or consequential damages arising from use of
this email or any linked website, including, without limitation, from
any lost profits, business interruption, loss of programmes or other
data that may be stored on any information handling system or otherwise
from any assurance that this email is virus free even if Discovery is
expressly advised of the possibility of such damages. Discovery is an
Authorised Financial Services Provider.
This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial Services Provider.

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



Struts / Tiles Problem with RAD

2006-04-17 Thread Hans-Peter Petek
Hallo all,

following problem - i developed an app on RAD 6.0 (but weblevel 2.3 - so
compliant to was 5.1), Servlet Spez 2.3 and JSP 1.2

When i run the app through the testclient (v5.1) on RAD 6 all is working
fine and i get no errors or warnings ...

But when i want to deploy the app to the WAS 5.1 (we are using was 5.1 not
6, i get an error:
TRAS0014I: The following exception was logged javax.servlet.Servl
etException: IO Error while parsing file 'WEB-INF/tiles-definitions.xml'.
struts.apache.org
at
org.apache.struts.tiles.TilesPlugin.initDefinitionsFactory(TilesPlugin.java:
233)
...


The files exists and i do not know what the problem ist ... is there maybe
some other config to do?

The struts-config looks like this:





I also tried path '/WEB-INF/tiles-definitions.xml'

There must be a path-problem, but i cant find it, also because the app is
running well through the testclient v5.1 on RAD 6 but not on WAS 5.1 ... so
its difficult to find.

Does anyone had a problem like this ... ?!?!
Help or any suggestions (hints) would be great.

thanks



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



RE: ArrayList & html:options

2006-04-17 Thread Kalcevich, Daniel
I think maybe using the LabelValueBean is the most realistic option.  I
have several places where I am using that now anyways.  Thanks Wendy.

Daniel

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 2:32 PM
To: Struts Users Mailing List
Subject: Re: ArrayList & html:options

On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> Changing that to:
>
> 
>
> 
>
> Now produces this error:
>
> 15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> javax.servlet.jsp.JspException: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/fine_export.jsp': No name specified
...
> Could it have something to do with not specifying the label or the
value
> as well?

Possibly.
 
http://struts.apache.org/struts-el/tagreference-struts-html-el.html#html
:options

Getting the options tag to do what I want it to has always been a
matter of trial and error.  I usually use Maps, so none of my examples
is relevant.

You might want to look at the 'optionsCollection' tag, or even
consider doing the iteration yourself with  and
 .

--
Wendy

-
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: DWR throws errors

2006-04-17 Thread Lixin Chu
thanks.
but according to the doc, I can use the form bean for Struts creator. I
tried Spring creator, it works if I only use the bean name not fully
qualified class name though.


On 4/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> -- Original Message ---
> From: "Lixin Chu" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Mon, 17 Apr 2006 07:56:46 +0800
> Subject: DWR throws errors
>
> > Hi,
> > I am trying my luck to see if someone in this forum has any idea of why
> - i
> > have not got response from DWR forum so far.
> >
> > I am using DWR 1.1.1 (also tried 2.0M1) with Struts 1.2.8. My DWR
> > configuration is like this:
> >
> >
> >   
> >
> Here is the example from there docs
> http://getahead.ltd.uk/dwr/getstarted
>
> 
> 
>
>  
>  
>
>
>  
>
> 
> 
> >
> > Here is the error message:
> > --
> > WARN org.directwebremoting.struts.StrutsCreator - Using a
> > FakeHttpServletRequedt as part of setup
> > ERROR org.directwebremoting.impl.DefaultCreatorManager
> > - Error loading class for creator
> > 'StrutsCreator[GetMultipleUsers]'.
> > java.lang.NullPointerException
> >   at
> > org.directwebremoting.struts.StrutsCreator.getType(StrutsCreator.java
> :120)
> > .
> >
> > Looking at DWR StrutsCreator source, it seems that it can not find the
> > formBean configuration. Anything else I need to config ?
> >
> > I tried Spring bean, it works though.
> >
> > thanks in advance,
> > lixin
> --- End of Original Message ---
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: ArrayList & html:options

2006-04-17 Thread Wendy Smoak
On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> Changing that to:
>
> 
>
> 
>
> Now produces this error:
>
> 15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> javax.servlet.jsp.JspException: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/fine_export.jsp': No name specified
...
> Could it have something to do with not specifying the label or the value
> as well?

Possibly.
  
http://struts.apache.org/struts-el/tagreference-struts-html-el.html#html:options

Getting the options tag to do what I want it to has always been a
matter of trial and error.  I usually use Maps, so none of my examples
is relevant.

You might want to look at the 'optionsCollection' tag, or even
consider doing the iteration yourself with  and
 .

--
Wendy

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



RE: ArrayList & html:options

2006-04-17 Thread Kalcevich, Daniel
Changing that to:





Now produces this error:

15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet action
threw exception
javax.servlet.jsp.JspException: ServletException in
'/jsp/templates/tab_content_template.jsp': ServletException in
'/jsp/fine_export.jsp': No name specified
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:923)
at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
at
org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspx_meth_tiles_inse
rt_1(org.apache.jsp.jsp.templates.main_005ftemplate_jsp:160)
at
org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspService(org.apach
e.jsp.jsp.templates.main_005ftemplate_jsp:88)

Could it have something to do with not specifying the label or the value
as well?

Daniel


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 1:52 PM
To: Struts Users Mailing List
Subject: Re: ArrayList & html:options

On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:

> request.setAttribute( "exportDates", exportDates ); //exportDates =
> ArrayList
>
> JSP:
>
> 
>   
> 
>
> Error:
> 15:38:53,106 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> javax.servlet.jsp.JspException: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/fine_export.jsp': Cannot find bean under name [04/17/2006,
> 04/16/2006]

You don't need the expression in the 'collection' attribute.  It wants
the _name_ of the bean.  You can see from the error message that the
String representation of the ArrayList is getting passed into the tag.

Try using just:
   

--
Wendy

-
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: ArrayList & html:options

2006-04-17 Thread Wendy Smoak
On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:

> request.setAttribute( "exportDates", exportDates ); //exportDates =
> ArrayList
>
> JSP:
>
> 
>   
> 
>
> Error:
> 15:38:53,106 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> javax.servlet.jsp.JspException: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/fine_export.jsp': Cannot find bean under name [04/17/2006,
> 04/16/2006]

You don't need the expression in the 'collection' attribute.  It wants
the _name_ of the bean.  You can see from the error message that the
String representation of the ArrayList is getting passed into the tag.

Try using just:
   

--
Wendy

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



ArrayList & html:options

2006-04-17 Thread Kalcevich, Daniel
Everyone,

 

I am trying to use the htm-el:options tag to write out the value of a
Select box.  I am using an ArrayList of Strings that I am trying to
iterate over.  I want the value and option to be the same on the output.
Here is how I am calling my code...

 

 

Action:

request.setAttribute( "exportDates", exportDates ); //exportDates =
ArrayList

 

JSP:



  



 

Error:

 

15:38:53,106 ERROR [action]:253 - Servlet.service() for servlet action
threw exception

javax.servlet.jsp.JspException: ServletException in
'/jsp/templates/tab_content_template.jsp': ServletException in
'/jsp/fine_export.jsp': Cannot find bean under name [04/17/2006,
04/16/2006]

  at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:923)

  at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)

  at
org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspx_meth_tiles_inse
rt_1(org.apache.jsp.jsp.templates.main_005ftemplate_jsp:160)

  at
org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspService(org.apach
e.jsp.jsp.templates.main_005ftemplate_jsp:88)

  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

 

Any ideas would be greatly appreciated.  Thanks.

 

Daniel



Re: Struts v1.1, Tiles, Bean property question...

2006-04-17 Thread Adam Hardy
I assume this is part of the transition process between the perl app and 
the struts app - it is a somewhat unconventional approach!


As such I haven't tried it before, but the  tag is looking 
for a template or jsp, not just a string. Put those beanName and 
beanProperty  attributes on the  in the xml and use 
 in your jsp. You're passing in the raw 
string of output, not the actual jsp.



Alan Treece on 17/04/06 19:56, wrote:

Yes... I'm using a tiles-defs.xml. Let me rephrase the question...

Here's my tiles-defs.xml:


 


My action uses a DynaActionForm and one of the form properties  will 
return a string like "This is a test". This 
string needs to be inserted into the "body" attribute of the tile and 
rendered as html code.


I was thinking that using the following in my JSP would take care of 
this, but it doesn't. Here's the JSP line:


flush="true" />



Any clues what I'm doing wrong?
Thanks, ajTreece



On Apr 17, 2006, at 4:50 AM, Adam Hardy wrote:


Alan Treece on 17/04/06 07:11, wrote:
I'm working on the layout with Tiles and having a difficult time 
getting past this one issue. The Perl code has various header and 
footer pieces of code based on whether a use id logged on or not and 
whether the user is accessing what is termed an external or internal 
facing web site. The Perl code determines which header and footer to 
use and then reads in the data from various fragmented files... 
massages it a little then writes it out to the display.
I'm thinking I could to the same thing initially with an action for 
the header and footer that will make the determination, read in the 
data, massage it as required and then pass it back out as a bean 
property. I can't seem to find the correct syntax and Tiles tag to 
insert/put the bean property into a Tiles definition. I've tired 
 and  with no success.


Hi Alan,

one of the best ways of getting tiles to work is literally just to 
copy from the example application that you should be able to find on 
the struts website.


however it seems you've got quite far already, but the technique 
you're using isn't quite crystal clear to me - if you are putting data 
into an attribute on the request in your action and you want to read 
it in your tile JSP, you don't need any tiles tag for that, you just 
pull it out of the request.attributes collection.


Perhaps we're talking at cross-purposes though - are you using a 
tiles-defs.xml to define your tiles?




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



Re: Struts v1.1, Tiles, Bean property question...

2006-04-17 Thread Alan Treece

Yes... I'm using a tiles-defs.xml. Let me rephrase the question...

Here's my tiles-defs.xml:


 


My action uses a DynaActionForm and one of the form properties  will  
return a string like "This is a test". This  
string needs to be inserted into the "body" attribute of the tile and  
rendered as html code.


I was thinking that using the following in my JSP would take care of  
this, but it doesn't. Here's the JSP line:


beanProperty="target" flush="true" />



Any clues what I'm doing wrong?
Thanks, ajTreece



On Apr 17, 2006, at 4:50 AM, Adam Hardy wrote:


Alan Treece on 17/04/06 07:11, wrote:
I'm working on the layout with Tiles and having a difficult time  
getting past this one issue. The Perl code has various header and  
footer pieces of code based on whether a use id logged on or not  
and whether the user is accessing what is termed an external or  
internal facing web site. The Perl code determines which header  
and footer to use and then reads in the data from various  
fragmented files... massages it a little then writes it out to the  
display.
I'm thinking I could to the same thing initially with an action  
for the header and footer that will make the determination, read  
in the data, massage it as required and then pass it back out as a  
bean property. I can't seem to find the correct syntax and Tiles  
tag to insert/put the bean property into a Tiles definition. I've  
tired  and  with no success.


Hi Alan,

one of the best ways of getting tiles to work is literally just to  
copy from the example application that you should be able to find  
on the struts website.


however it seems you've got quite far already, but the technique  
you're using isn't quite crystal clear to me - if you are putting  
data into an attribute on the request in your action and you want  
to read it in your tile JSP, you don't need any tiles tag for that,  
you just pull it out of the request.attributes collection.


Perhaps we're talking at cross-purposes though - are you using a  
tiles-defs.xml to define your tiles?



Adam

-
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: ValidatorActionForm in Struts 1.3.1

2006-04-17 Thread Wendy Smoak
On 4/17/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:

> I don't see the ValidatorActionForm class in Struts 1.3.1 .

It's in the struts-extras jar.




HTH,
--
Wendy

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



ValidatorActionForm in Struts 1.3.1

2006-04-17 Thread Chaudhary, Harsh
Hi,

I don't see the ValidatorActionForm class in Struts 1.3.1 . I don't
understand why this was taken out (not even deprecated).

Or is there an alternate class I should be using for the
ValidatorActionForm class.

Thanks,

Harsh.



RE: Efficient session object and cookie checks in struts

2006-04-17 Thread George.Dinwiddie
Jeff Thorne wrote:
> I have been reading that it May be more 
> efficient to just pass the resultset back to the view rather 
> Than deal with the overhead of several transfer objects. Does 
> this make sense?

I don't thinks so.
 1. Object creation time is trivial compared with database access time.
 2. Keeping the resultset open hogs database connection resources.
 3. The gui and database should be independent, and free to evolve in
different ways.  There's hardly any point in using an MVC framework if
all you're going to do is make it a direct face of database tables.

You might want to consider using a single DTO at a time, based on the
needs of the GUI screen/process.  When running the GUI and Business
tiers in the same VM, I would skip the DTO altogether and use an
Interface, instead, for the Business API as seen by the GUI.  This can
be implemented by full-fledged domain objects.

 - George

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



Re: friday ha ha

2006-04-17 Thread Zoran Avtarovski
I thought it looks pretty good, I think projects like this have their place.
Especially, in light of the fact that we're not going to see Action2 for a
little while (even then there'll be some tweaking to get it right) and there
are a lot of Struts apps out there that want to take advantage of Java 5.

I get the impression people are giving up on Struts (Struts action 1, that
is). I see that advantages in other frameworks but most of these frameworks
were around when people made the decision to base their projects on struts.
Which leads me to believe that a lot of people, like myself, like using
struts. I'm not naïve, I know it has issues, but it also has advantages and
at the end of the day we have too much invested to just throw it all out and
start from scratch using something else.

I don't want to start the sort of crap we had a few weeks ago, so I'm going
to try and limit the scope of my question. I like that there are now three
frameworks under the struts umbrella and I think each serves a purpose, but
what I'm concerned about is that struts 1 will be left in legacy mode where
you might get the odd bug fix but no forward progress. As I said we have way
too much invested in struts 1 projects and nobody here wants to jump in and
start rebuilding each project using a new framework. We would rather have
the ability to take advantage of the new features and developments in
extending and maintaining these projects without having to rebuild the whole
project.

In essence what I like about Strecks is that it enables us to:
1. Take advantage of Java 5 features
2. Take advantage of simplified development structure
3. Deal with the worst bits of Struts while still maintaining backwards
compatibility. 

Is this something we are going to see as part of ongoing struts action
development?

Z.


> http://www.theserverside.com/news/thread.tss?thread_id=39840
> 
> .V
> 



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



[iterative nested objects validation problem]

2006-04-17 Thread Deva Pitchai(NatureSoft)

Hi all

Any idea of making this as dynamic iterative nested objects in 
validation.xml?






..
..
..






One site may have several rooms. And it is not a good way to make the 
array as static 1 & 2s.


Kindly reply with ur thoughts.

Thanks

--
Deva


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



Re: DWR throws errors

2006-04-17 Thread [EMAIL PROTECTED]

-- Original Message ---
From: "Lixin Chu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Mon, 17 Apr 2006 07:56:46 +0800
Subject: DWR throws errors

> Hi,
> I am trying my luck to see if someone in this forum has any idea of why - i
> have not got response from DWR forum so far.
> 
> I am using DWR 1.1.1 (also tried 2.0M1) with Struts 1.2.8. My DWR
> configuration is like this:
> 
>
>   
>
Here is the example from there docs
http://getahead.ltd.uk/dwr/getstarted


  

  
  


  

  

> 
> Here is the error message:
> --
> WARN org.directwebremoting.struts.StrutsCreator - Using a
> FakeHttpServletRequedt as part of setup
> ERROR org.directwebremoting.impl.DefaultCreatorManager
> - Error loading class for creator
> 'StrutsCreator[GetMultipleUsers]'.
> java.lang.NullPointerException
>   at
> org.directwebremoting.struts.StrutsCreator.getType(StrutsCreator.java:120)
> .
> 
> Looking at DWR StrutsCreator source, it seems that it can not find the
> formBean configuration. Anything else I need to config ?
> 
> I tried Spring bean, it works though.
> 
> thanks in advance,
> lixin
--- End of Original Message ---


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



Re: Struts v1.1, Tiles, Bean property question...

2006-04-17 Thread Adam Hardy

Alan Treece on 17/04/06 07:11, wrote:
I'm working on the layout with Tiles and having a difficult time getting 
past this one issue. The Perl code has various header and footer pieces 
of code based on whether a use id logged on or not and whether the user 
is accessing what is termed an external or internal facing web site. The 
Perl code determines which header and footer to use and then reads in 
the data from various fragmented files... massages it a little then 
writes it out to the display.


I'm thinking I could to the same thing initially with an action for the 
header and footer that will make the determination, read in the data, 
massage it as required and then pass it back out as a bean property. I 
can't seem to find the correct syntax and Tiles tag to insert/put the 
bean property into a Tiles definition. I've tired  
and  with no success.


Hi Alan,

one of the best ways of getting tiles to work is literally just to copy 
from the example application that you should be able to find on the 
struts website.


however it seems you've got quite far already, but the technique you're 
using isn't quite crystal clear to me - if you are putting data into an 
attribute on the request in your action and you want to read it in your 
tile JSP, you don't need any tiles tag for that, you just pull it out of 
the request.attributes collection.


Perhaps we're talking at cross-purposes though - are you using a 
tiles-defs.xml to define your tiles?



Adam

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



[Amount pattern matching - validator]

2006-04-17 Thread Deva Pitchai(NatureSoft)

Hi all,

I would like to validate the following pattern using validator
Any idea foo how to achieve this?

my propable pattern is ...

9.999.999.999.999.999,99  [French notation]

In short, if a user enter the value for this field, it should match this 
pattern.


thanks in adv

--
Regards,
Deva.



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



Re: directly addressing maps in jsp-file

2006-04-17 Thread rama chandrula


Hi Vinit,

I have used jstl to display the data in the form. But if I want to edit this 
data and send them back to the action form. I am not able to do this. can u 
give me a suggestion how I can proceed further


Thanks,
Rama


From: "Vinit Sharma" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: "Struts Users Mailing List" 
Subject: Re: directly addressing maps in jsp-file
Date: Thu, 13 Apr 2006 11:04:49 +0530

Hi,

JSTL can help you here. Suppose key comes from bean item:



I can use this key to access the bean property as:



Hope it works :)

HTH,


On 4/12/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I've got some problems accessing arrays and maps in the jsp-file.
>
> In the Action class, the following objects are defined:
>
> Hashtable  hash = new Hashtable();
> ArrayList > list = new ArrayList  >();
>
> hash.put("key","value");
> hash.put("key1","value1");
>
> list.add(hash);
>
> rq.setAttribute("hasht", hash)
> rq.setAttribute("array", list);
>
>
>
> In the jsp-file:
>
> Access with iterate through Arraylist:
> 
> 
> 
>
>
>
> direct access of the value with the key in the hashtable:
> 
>
> The key could come from an method (Something like some_other_list.get(1)
> e.g.) or a literal like key1 as defined in the example above.
>
>
> I would be very glad, if anybody could solve my problem with directly
> accessing Hashtables in jsp-file.
>
>
> Kind regards,
> Andreas Hartmann
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Vinit Sharma
IBM


_
One and only Ash. Find out all about her. Only on MSN Search 
http://server1.msn.co.in/profile/aishwarya.asp



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