Re: Re: Struts iterator -

2008-11-28 Thread stewart
I will be out of the office, and mostly without email access, until Dec 1.

Please contact the One World office, 605-845-7172, with any general needs, and 
Danny Nickels, [EMAIL PROTECTED], at the same number, for any technical or 
integration issues.

If this is an emergency, please feel free to call my cell at 605-848-2841.

Thanks,

-Stewart



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



Re: Struts iterator -

2008-11-28 Thread Wes Wannemacher
 Hello :)
> 
> I would like to generate multiple autocompleter elements using a struts
> iterator. However, each autocompleter tag needs to store unique information,
> like id (otherwise I would not be able to collect the information from the
> different autocompleters when I "submit" the form)
> 
> Here is how I try to achieve this:
> 
> 
> 
>cssClass="relationCB" theme="simple" list="collection"  />
> 
> 
> 
> i.e. I try to make use of the status attribute in order to make the id-s
> unique. However, #loop1.count is not processed, but rather taken literally
> as a string :(
> 
> Can you give me a hint how I could create different id-s for the
> autocompleteres. Or maybe there is another way to process the information
> from the different autocomplete elements?
> 
> Thank you!
> 


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



Struts iterator -

2008-11-28 Thread pesho318i

Hello :)

I would like to generate multiple autocompleter elements using a struts
iterator. However, each autocompleter tag needs to store unique information,
like id (otherwise I would not be able to collect the information from the
different autocompleters when I "submit" the form)

Here is how I try to achieve this:



  



i.e. I try to make use of the status attribute in order to make the id-s
unique. However, #loop1.count is not processed, but rather taken literally
as a string :(

Can you give me a hint how I could create different id-s for the
autocompleteres. Or maybe there is another way to process the information
from the different autocomplete elements?

Thank you!

-- 
View this message in context: 
http://www.nabble.com/Struts-iterator---tp20743288p20743288.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] submitting object from

2008-11-28 Thread dusty

There is built in data conversion, but you have to create your own data
converter.

Struts could't automaticaly find your State from the id since it knows
nothing a about your persiatance layer.  So you will have to look it up in
the converter.  For some as simple as the State object you have, you could
post "name~id" as the select value and then parse it in the converter to
populate your Object.


Look up type conversion in the docs for what class to extend an how to
register the converter.
-D


Oleg-16 wrote:
> 
> Was wondering if struts built-in data conversion will work to receive
> an object from select list. So, if select list populated with
> List stateList and the variable submitted from s:select is a
> State object, is it possible to actually get this object in the
> receiving action?
> 
> so if:
> 
> State state;
> 
> State {
> int id;
> String name;
> }
> 
> and
> 
> 
> 
> Any way to have struts 2 make the conversion so I don't to manually
> look up the State object via submitted key?
> 
> Thanks a lot, Oleg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--submitting-object-from-%3Cs%3Aselect%3E-tp20740878p20742159.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Using dojo widgets in struts2(Need your help)

2008-11-28 Thread sharath karnati
Hi All,
 
   I'm using dojo widgets for displaying UI, I'm having below code for 
accepting first name
 

 
  After entering text in first name, I'm 
submitting form(dojoType="dijit.form.Form")  and action class is able to read 
the value which is given in this text field.
 
  Now what I want is, I'm setting "first_name" value in my action class and 
displaying this UI. The "first_name" not displaying value which is set in 
action class.
 
  When I use struts2 tag
   

 
  It is displaying value set in action class. 
 
  Can anyone please help me, how to read value which is set in action class for 
displaying in dojo widget.
 
  Thanks for your help.
 
Regards,
Sharath.
 


  

Re: Exception when using ServletActionRedirectResult with @Result

2008-11-28 Thread Amin Mohammed-Coleman

Hi

I do apologise, I didn't mean to send it three times.  My email  
program was doing some funny things and I thought that the email was  
not sent.


The exception is thrown and fails to work.


Sorry again!

On 28 Nov 2008, at 20:34, Dave Newton wrote:


Sorry to be sending this again but I was wondering if some
might be able to help. I added a param actionName but no luck.


Re-sending it may not be the best approach--three's a lot of times.

Is it actually not working, or is it just logging the exception?

Dave



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




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



[S2] submitting object from

2008-11-28 Thread Oleg Tim
Was wondering if struts built-in data conversion will work to receive
an object from select list. So, if select list populated with
List stateList and the variable submitted from s:select is a
State object, is it possible to actually get this object in the
receiving action?

so if:

State state;

State {
int id;
String name;
}

and



Any way to have struts 2 make the conversion so I don't to manually
look up the State object via submitted key?

Thanks a lot, Oleg

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



Re: Fwd: Exception when using ServletActionRedirectResult with @Result

2008-11-28 Thread Dave Newton
> Sorry to be sending this again but I was wondering if some
> might be able to help. I added a param actionName but no luck.

Re-sending it may not be the best approach--three's a lot of times.

Is it actually not working, or is it just logging the exception?

Dave



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



Fwd: Exception when using ServletActionRedirectResult with @Result

2008-11-28 Thread Amin Mohammed-Coleman

Hi

Sorry to be sending this again but I was wondering if some might be  
able to help. I added a param actionName but no luck.


Is there a work around?


Cheers

Amin

Sent from my iPhone

Begin forwarded message:


From: Amin Mohammed-Coleman <[EMAIL PROTECTED]>
Date: 27 November 2008 22:40:04 GMT
To: user@struts.apache.org
Subject: Fwd: Exception when using ServletActionRedirectResult with  
@Result






Hi

I am trying to redirect the success of an action to another action  
using the following:


@Results({
	@Result(name="success", value="viewContact", params= {"namespace",  
"/", "contactId", "${contactId}", "contactType", "${contactType}"},  
type=ServletActionRedirectResult.class),

@Result(name="error", value="search.error", type=TilesResult.class)
})


However I am getting the following exception:

Caused by: ognl.NoSuchPropertyException:  
org.apache.struts2.dispatcher.ServletActionRedirectResult.contactId
	at  
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java: 
132)
	at  
com. 
opensymphony. 
xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java: 
27)

at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197)
	at  
com. 
opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java: 
393)



I have looked around and upgraded to Struts 2.1.2 and am still  
getting the exception.  Would it be possible if someone can advise  
me on what I am doing wrong.



Thanks
Amin




[S2] Set textfield readonly property from action class

2008-11-28 Thread Milan Milanovic

Hi,

I have defined edittingMode (String and boolean, I tried both) in my action
class with get/set methods and in resulting jsp I defined:



But if I set edditingMode = "true" or edittingMode = true (in case of
boolean), textfield never become readonly! I'm using Struts 2.0.11.1. What
is the problem ?

--
Thx, Milan
-- 
View this message in context: 
http://www.nabble.com/-S2--Set-textfield-readonly-property-from-action-class-tp20738164p20738164.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



connection to db with pooling in Struts

2008-11-28 Thread gbattine

Hello guys,
I'm newbie about Struts and I'm trying to understand a complex task (for
me), that is obtaining a connection from connection pool (I use dbcp for
this) and a datasource (that one of tomcat) and use this connection in dao
layer.
I'm trying to get this working, but it seems very difficult to me.
Could you help me?
I show what I did:
-I added context in server.xml of tomcat
-I added declaration into web.xml of application, like this:

  DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container
  

Now my first question.
What's next step? Could you please post simple code and comment to
understand?
What I imagine is now to have something to retrieve a connection and pass it
to dao.
Could you help me?

Thanks very much


-- 
View this message in context: 
http://www.nabble.com/connection-to-db-with-pooling-in-Struts-tp20738163p20738163.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Tiles and Validate

2008-11-28 Thread stanlick
Tiles and validations work fine together.  Can you post some code?

On Wed, Nov 26, 2008 at 5:39 AM, mthalis <[EMAIL PROTECTED]> wrote:

>
> It is possible to use tiles and validation(validation forms data)  in same
> project. if it is possible please give me reference or sample project.
> please help me..
>
> Thank you
> --
> View this message in context:
> http://www.nabble.com/Tiles-and-Validate-tp20699267p20699267.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: struts-config.xml question

2008-11-28 Thread Ronni . Bjelosevic
hi andras,

you´re my personal hero ;). i found it. it was the tiles-config.xml.

THANK YOU ALL

ronni


   
  From:   Andras Balogh <[EMAIL PROTECTED]>  
   
  To: Struts Users Mailing List
   
  Date:   28.11.2008 11:45 
   
  Subject:Re: struts-config.xml question   
   





Hi,

Probably the project uses also tiles and "appl-list.page" is a  tiles
definition.
Look for an xml file that has "tiles" in his name.

BR,
Andras.

[EMAIL PROTECTED] wrote:
> Hi to all,
>
> I´m new to struts and  i have to reconfigure an existing struts
> application.
>
> I´m just looking in the struts-config.xml of the application and there
some
> forwards in actions defined i don´t understand.
>
> like:
>
>  type="com.usr.type.action.ApplListAction"
>   scope="request"
>   validate="false">
>   
> 
>
> The thing i do not understand is the path of the forward. I can´t find
any
> file or servlet with this path. Has anyone an idea ?
>
> best regards
>
> -
> 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-config.xml question

2008-11-28 Thread Ronni . Bjelosevic
The path of  
   
  To:  
   
  Date:   28.11.2008 11:36 
   
  Subject:RE: struts-config.xml question   
   






path is the name of the request :"name.do". you don't enter do part here>
To: user@struts.apache.org> From: [EMAIL PROTECTED]> Date: Fri,
28 Nov 2008 11:11:05 +0100> Subject: struts-config.xml question> > > Hi to
all,> > I´m new to struts and i have to reconfigure an existing struts>
application.> > I´m just looking in the struts-config.xml of the
application and there some> forwards in actions defined i don´t
understand.> > like:> > 
type="com.usr.type.action.ApplListAction"> scope="request">
validate="false">> >
> > The thing i do not understand is the path of the forward. I
can´t find any> file or servlet with this path. Has anyone an idea ?> >
best regards> >
-> To
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional
commands, e-mail: [EMAIL PROTECTED]>
_
Get more done, have more fun, and stay more connected with Windows Mobile®.

http://clk.atdmt.com/MRT/go/119642556/direct/01/


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



Re: struts-config.xml question

2008-11-28 Thread Andras Balogh

Hi,

Probably the project uses also tiles and "appl-list.page" is a  tiles 
definition.

Look for an xml file that has "tiles" in his name.

BR,
Andras.

[EMAIL PROTECTED] wrote:

Hi to all,

I´m new to struts and  i have to reconfigure an existing struts
application.

I´m just looking in the struts-config.xml of the application and there some
forwards in actions defined i don´t understand.

like:


  


The thing i do not understand is the path of the forward. I can´t find any
file or servlet with this path. Has anyone an idea ?

best regards

-
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-config.xml question

2008-11-28 Thread omer nauman

path is the name of the request :"name.do". you don't enter do part here> To: 
user@struts.apache.org> From: [EMAIL PROTECTED]> Date: Fri, 28 Nov 2008 
11:11:05 +0100> Subject: struts-config.xml question> > > Hi to all,> > I´m new 
to struts and i have to reconfigure an existing struts> application.> > I´m 
just looking in the struts-config.xml of the application and there some> 
forwards in actions defined i don´t understand.> > like:> >  type="com.usr.type.action.ApplListAction"> 
scope="request"> validate="false">> > > > The thing i do not understand is the path 
of the forward. I can´t find any> file or servlet with this path. Has anyone an 
idea ?> > best regards> > 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL 
PROTECTED]> 
_
Get more done, have more fun, and stay more connected with Windows Mobile®. 
http://clk.atdmt.com/MRT/go/119642556/direct/01/

Question getText and getTexts

2008-11-28 Thread Marc Eckart
Hi,

we need for a migration of an old application to use the complete
RessourceBundle.

To get the texts with getText works fine. But when we try to get the whole
RessourceBundle with getTexts, we just get null. Does getTexts not retrieve
the package.properties somewhere in the buildpath like getText?

Best Regards,
Marc


struts-config.xml question

2008-11-28 Thread Ronni . Bjelosevic

Hi to all,

I´m new to struts and  i have to reconfigure an existing struts
application.

I´m just looking in the struts-config.xml of the application and there some
forwards in actions defined i don´t understand.

like:


  


The thing i do not understand is the path of the forward. I can´t find any
file or servlet with this path. Has anyone an idea ?

best regards

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