Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2

2010-07-20 Thread sandeep kotha
Hi All

I'm newbie using* *hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2* *while
i try to configure JNDI im getting the below exception. Please find my
Jboss, hibernate and Struts configurations. Im using *transaction.factory_class
as *org.hibernate.transaction.JTATransactionFactory in my hibernate.cfg.xml.
* *If i had missed something please let me know.

I know Im posting in Struts forum but i strictly believe we should be using
combination of these in our applications any small help to fix this issue
will be a great help for me

11:29:55,187 INFO  [LogNotificationListener] Adding notification listener
for logging mbean jboss.system:service=Logging,type=Log4jService to server
org.jboss.mx.server.mbeanserveri...@1edd9b3[ defaultDomain='jboss' ]
11:30:01,906 ERROR [AbstractKernelController] Error installing to Parse:
name=vfsfile:/F:/jboss-5.1.0.GA/server/default/deploy/mysql-ds.xml state=Not
Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object
for vfsfile:/F:/jboss-5.1.0.GA/server/default/deploy/mysql-ds.xml
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at
org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at
org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException: The element type local-tx-datasourcee must
be terminated by the matching end-tag /local-tx-datasourcee.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
at

Re: Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2

2010-07-20 Thread Hantsy Bai

 ? 2010/7/20 14:28, sandeep kotha ??:

[org.xml.sax.SAXParseException: The element type local-tx-datasourcee must
be terminated by the matching end-tag /local-tx-datasourcee.]

Your config file is problematic, the start tag is

*local-tx-datasource**e*

but end with

*local-tx-datasource*

I think the correct one is .
*
local-tx-datasource*



Re: Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2

2010-07-20 Thread Lukasz Lenart
Hi,

You have plenty of errors in XML, take a look on that with some
validation tool, for example.:

* user-name/root/user-name - first tag closed

* local-tx-datasourcee ... /local-tx-datasource - double ee in the first tag

Use better tool instead asking  questions!


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



REST and Non-REST actions

2010-07-20 Thread Kevin Jones
Simple question (I think),

when using the REST plugin, can I have two 'controllers' one that
expects REST urls/verbs and one that is a standard Struts2 Action,
i.e. where I can map incoming URLs to action methods?

Hope that makes sense,

-- 
Kevin

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Lukasz Lenart
2010/7/20 Kevin Jones kev.r.jo...@gmail.com:
 Simple question (I think),

 when using the REST plugin, can I have two 'controllers' one that
 expects REST urls/verbs and one that is a standard Struts2 Action,
 i.e. where I can map incoming URLs to action methods?

Take a look on PrefixBasedActionMapper [1], it was included in version
2.2.1 (under Vote)

[1] 
https://cwiki.apache.org/confluence/display/WW/ActionMapper#PrefixBasedActionMapper


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Frans Thamura
we are trying it also, to much old struts2 investment here,

but i am glad if the future release of the Strust2, the REST willbecome part
of showcase

F

On Tue, Jul 20, 2010 at 5:06 PM, Lukasz Lenart lukasz.len...@googlemail.com
 wrote:

 2010/7/20 Kevin Jones kev.r.jo...@gmail.com:
  Simple question (I think),
 
  when using the REST plugin, can I have two 'controllers' one that
  expects REST urls/verbs and one that is a standard Struts2 Action,
  i.e. where I can map incoming URLs to action methods?

 Take a look on PrefixBasedActionMapper [1], it was included in version
 2.2.1 (under Vote)

 [1]
 https://cwiki.apache.org/confluence/display/WW/ActionMapper#PrefixBasedActionMapper


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Dynamic title

2010-07-20 Thread findbestopensource
Hello all,

I have to set title of the page dynamically. I tried the below code,
but it is not working. Please help.

s:include value=Header.jsp
    s:param name=titles:property value=productName//s:param
/s:include

Regards
Aditya
www.findbestopensource.com

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Rest Plugin with Tiles and Validation

2010-07-20 Thread Johannes Geppert

Hello I try to create a struts2 based webapp that is using the rest-plugin
and the tiles-plugin together. This works fine for me exept when i using
validation.

I have a Login Action with an create method for the validation like this.

  @Validations(requiredStrings = {
  @RequiredStringValidator(type = ValidatorType.FIELD, fieldName =
username, key = field.required, trim = true, message = ), 
  @RequiredStringValidator(type = ValidatorType.FIELD, fieldName =
password, key = field.required, trim = true, message = )
  })
  public HttpHeaders create()
  {
log.info(LoginController.create());
log.info(Login for  + username);
...
return new DefaultHttpHeaders(create);
  }

For the Input Result I have specify a Result annotation with Type tiles.

@Results( {
@Result(name = success, location = login, type = tiles), 
@Result(name = destroy, type = redirectAction, location = index), 
@Result(name = create, type = redirectAction, location = index), 
@Result(name = input, location = login, type = tiles)
})

But when submit the login form i receive not the rendered tiles. Only the
rendered login form without header, footer, etc. is rendered.

Has anyone an suggestion how to solve this?

Log:

2010-07-15 14:03:29,673 DEBUG
(org.apache.struts2.interceptor.MessageStoreInterceptor:57) - entering
MessageStoreInterceptor ...
2010-07-15 14:03:29,673 DEBUG
(org.apache.struts2.interceptor.MessageStoreInterceptor:57) - retrieve error
/ message from session to populate into action [logincontrol...@3c6542]
2010-07-15 14:03:29,673 DEBUG
(org.apache.struts2.interceptor.FileUploadInterceptor:57) - Überspringe
//login
2010-07-15 14:03:29,673 DEBUG
(org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:57)
- Validating //login with method create.
2010-07-15 14:03:29,688 DEBUG
(org.apache.struts2.rest.RestWorkflowInterceptor:57) - Errors on action
logincontrol...@3c6542, returning result name 'input'
2010-07-15 14:03:29,704 DEBUG
(org.apache.struts2.interceptor.MessageStoreInterceptor:57) - entering
MessageStoreInterceptor ...
2010-07-15 14:03:29,704 DEBUG
(org.apache.struts2.interceptor.MessageStoreInterceptor:57) - retrieve error
/ message from session to populate into action [logincontrol...@19ad677]
2010-07-15 14:03:29,704 DEBUG
(org.apache.struts2.interceptor.FileUploadInterceptor:57) - Überspringe
//login
2010-07-15 14:03:29,704 DEBUG
(org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:57)
- Validating //login with method create.
2010-07-15 14:03:29,720 DEBUG
(org.apache.struts2.rest.RestWorkflowInterceptor:57) - Errors on action
logincontrol...@19ad677, returning result name 'input'
2010-07-15 14:03:29,845 DEBUG
(org.apache.struts2.interceptor.MessageStoreInterceptor:57) - exit executing
MessageStoreInterceptor
2010-07-15 14:03:29,845 DEBUG
(org.apache.struts2.interceptor.MessageStoreIntercept


Best Regards

Johannes Geppert

-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/Rest-Plugin-with-Tiles-and-Validation-tp29213889p29213889.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Kevin Jones
Thanks Lukasz,

where can I grab the 2.2.1 bits? - there doesn't seem to be a link on
the site. Do I need to get the sources and build it?

Kevin

On 20 July 2010 11:06, Lukasz Lenart lukasz.len...@googlemail.com wrote:
 2010/7/20 Kevin Jones kev.r.jo...@gmail.com:
 Simple question (I think),

 when using the REST plugin, can I have two 'controllers' one that
 expects REST urls/verbs and one that is a standard Struts2 Action,
 i.e. where I can map incoming URLs to action methods?

 Take a look on PrefixBasedActionMapper [1], it was included in version
 2.2.1 (under Vote)

 [1] 
 https://cwiki.apache.org/confluence/display/WW/ActionMapper#PrefixBasedActionMapper


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Kevin

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Johannes Geppert

you can get current release from here.

http://people.apache.org/builds/struts/2.2.1/

Johannes


Kevin Jones-10 wrote:
 
 Thanks Lukasz,
 
 where can I grab the 2.2.1 bits? - there doesn't seem to be a link on
 the site. Do I need to get the sources and build it?
 
 Kevin
 
 On 20 July 2010 11:06, Lukasz Lenart lukasz.len...@googlemail.com wrote:
 2010/7/20 Kevin Jones kev.r.jo...@gmail.com:
 Simple question (I think),

 when using the REST plugin, can I have two 'controllers' one that
 expects REST urls/verbs and one that is a standard Struts2 Action,
 i.e. where I can map incoming URLs to action methods?

 Take a look on PrefixBasedActionMapper [1], it was included in version
 2.2.1 (under Vote)

 [1]
 https://cwiki.apache.org/confluence/display/WW/ActionMapper#PrefixBasedActionMapper


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 
 
 -- 
 Kevin
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/REST-and-Non-REST-actions-tp29213179p29215925.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



lost URL parameters with s:param tag

2010-07-20 Thread Emi Lu

Good morning,

It seems that s:param does not work well when more than one s:param is 
assigned.


s:url id=url_help namespace=/Action/Global action=ProcessHelp
   s:param name=helpTitle  value=example1 /
   s:param name=help_text_name value=contents /
/s:url


The second help_text_name is never called. How come? Found one line 
bug report lost URL parameters with s:param tag (bug 1938) at 
http://readlist.com/lists/struts.apache.org/user/9/47016.html


Does someone know whether the bug has been fixed?

Thanks a lot!
--
Lu Ying

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Emi Lu

On 07/20/2010 11:48 AM, Emi Lu wrote:

Good morning,

It seems that s:param does not work well when more than one s:param is
assigned.

s:url id=url_help namespace=/Action/Global action=ProcessHelp
s:param name=helpTitle value=example1 /
s:param name=help_text_name value=contents /
/s:url


The second help_text_name is never called. How come? Found one line
bug report lost URL parameters with s:param tag (bug 1938) at
http://readlist.com/lists/struts.apache.org/user/9/47016.html

Does someone know whether the bug has been fixed?


Another bug link:
https://issues.apache.org/jira/browse/WW-1938

Does someone has the fix version?

Thanks,
--
Lu Ying

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Brian Thompson
We ran into the same problem with our Struts apps; we ended up using
c:url from the JSTL core taglib instead.

-Brian



On Tue, Jul 20, 2010 at 10:58 AM, Emi Lu em...@encs.concordia.ca wrote:
 On 07/20/2010 11:48 AM, Emi Lu wrote:

 Good morning,

 It seems that s:param does not work well when more than one s:param is
 assigned.

 s:url id=url_help namespace=/Action/Global action=ProcessHelp
 s:param name=helpTitle value=example1 /
 s:param name=help_text_name value=contents /
 /s:url


 The second help_text_name is never called. How come? Found one line
 bug report lost URL parameters with s:param tag (bug 1938) at
 http://readlist.com/lists/struts.apache.org/user/9/47016.html

 Does someone know whether the bug has been fixed?

 Another bug link:
 https://issues.apache.org/jira/browse/WW-1938

 Does someone has the fix version?

 Thanks,
 --
 Lu Ying

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Kevin Jones
Thanks All.

I'll give it a go,

Kevin

On 20 July 2010 16:37, Johannes Geppert jo...@web.de wrote:

 you can get current release from here.

 http://people.apache.org/builds/struts/2.2.1/

 Johannes


 Kevin Jones-10 wrote:

 Thanks Lukasz,

 where can I grab the 2.2.1 bits? - there doesn't seem to be a link on
 the site. Do I need to get the sources and build it?

 Kevin

 On 20 July 2010 11:06, Lukasz Lenart lukasz.len...@googlemail.com wrote:
 2010/7/20 Kevin Jones kev.r.jo...@gmail.com:
 Simple question (I think),

 when using the REST plugin, can I have two 'controllers' one that
 expects REST urls/verbs and one that is a standard Struts2 Action,
 i.e. where I can map incoming URLs to action methods?

 Take a look on PrefixBasedActionMapper [1], it was included in version
 2.2.1 (under Vote)

 [1]
 https://cwiki.apache.org/confluence/display/WW/ActionMapper#PrefixBasedActionMapper


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





 --
 Kevin

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





 -
 ---
 web: http://www.jgeppert.com
 twitter: http://twitter.com/jogep

 --
 View this message in context: 
 http://old.nabble.com/REST-and-Non-REST-actions-tp29213179p29215925.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Kevin

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Dale Newfield

On 7/20/10 11:37 AM, Johannes Geppert wrote:


you can get current release from here.

http://people.apache.org/builds/struts/2.2.1/


Except that it's not a release, yet.  It's currently just a build, and 
until the (currently ongoing) vote is concluded we won't know if it will 
become a release.


-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



IE7 abruptly closes with struts 2.1.7

2010-07-20 Thread satyanarayana katta
Hi, 

We are using struts 2.1.7 with dojos for our application.  Sometimes the Ie7 
abruptly closes leaving no traces what so ever.  Has any one faced this issue 
earlier?  


Sent from my iPhone
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: REST and Non-REST actions

2010-07-20 Thread Frans Thamura
Stabilizing this topic will bring struts to his crown
(m)

-Original Message-
From: Johannes Geppert jo...@web.de
Date: Tue, 20 Jul 2010 08:37:41 
To: user@struts.apache.org
Reply-To: Struts Users Mailing List user@struts.apache.org
Subject: Re: REST and Non-REST actions


you can get current release from here.

http://people.apache.org/builds/struts/2.2.1/

Johannes


Kevin Jones-10 wrote:
 
 Thanks Lukasz,
 
 where can I grab the 2.2.1 bits? - there doesn't seem to be a link on
 the site. Do I need to get the sources and build it?
 
 Kevin
 
 On 20 July 2010 11:06, Lukasz Lenart lukasz.len...@googlemail.com wrote:
 2010/7/20 Kevin Jones kev.r.jo...@gmail.com:
 Simple question (I think),

 when using the REST plugin, can I have two 'controllers' one that
 expects REST urls/verbs and one that is a standard Struts2 Action,
 i.e. where I can map incoming URLs to action methods?

 Take a look on PrefixBasedActionMapper [1], it was included in version
 2.2.1 (under Vote)

 [1]
 https://cwiki.apache.org/confluence/display/WW/ActionMapper#PrefixBasedActionMapper


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


 
 
 
 -- 
 Kevin
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/REST-and-Non-REST-actions-tp29213179p29215925.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Dale Newfield

On 7/20/10 11:48 AM, Emi Lu wrote:

It seems that s:param does not work well when more than one s:param is
assigned.


I use multiple param tags inside url tags all over the place.  It does 
work.  I would suggest running your application inside a debugger to 
find out what exactly is not working for you.  One thing I would suggest 
is eliminating ambiguities -- value fields (for example) are going to be 
interpreted as OGNL, so if you want the ognl expression contents, then 
value=%{contents} and if you want the string contents, then 
value=%{'contents'}.


-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2

2010-07-20 Thread sandeep kotha
Thank you Łukasz / hantsy.

On 20 July 2010 12:23, Lukasz Lenart lukasz.len...@googlemail.com wrote:

 Hi,

 You have plenty of errors in XML, take a look on that with some
 validation tool, for example.:

 * user-name/root/user-name - first tag closed

 * local-tx-datasourcee ... /local-tx-datasource - double ee in the
 first tag

 Use better tool instead asking  questions!


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/
 Kapituła Javarsovia 2010 http://javarsovia.pl

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: lost URL parameters with s:param tag

2010-07-20 Thread Emi Lu

On 07/20/2010 01:39 PM, Dale Newfield wrote:

On 7/20/10 11:48 AM, Emi Lu wrote:

It seems that s:param does not work well when more than one s:param is
assigned.


I use multiple param tags inside url tags all over the place. It does
work. I would suggest running your application inside a debugger to find
out what exactly is not working for you. One thing I would suggest is
eliminating ambiguities -- value fields (for example) are going to be
interpreted as OGNL, so if you want the ognl expression contents, then
value=%{contents} and if you want the string contents, then
value=%{'contents'}.


Thank you for all your inputs!

Conclusion:
=
(1) workable version:
s:param name=helpTitle  value=%{getText('example1')} /
s:param name=helpText   value=%{getText('example2')} /

(2) this way, it does not work:
s:param name=helpTitle  value=example1 /
s:param name=helpText   value=example2 /

Frankly, I do *not* like way(1) since %{getText('example2')} is a very 
long paragraph. I prefer to transfer key property and retrieve text in 
Action Class.


Anyhow, it seems that this is the current solution I could find for now.

If you have better ideas, please let me know.

Thanks a lot!

--
Lu Ying

Note:
attribute.property
=
example1=Title info
example2=.. a very long paragraph ...

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Lukasz Lenart
2010/7/20 Emi Lu em...@encs.concordia.ca:
 s:param name=helpTitle      value=%{getText('example1')} /
 s:param name=helpText       value=%{getText('example2')} /

It's the expected behavior as you don't have these properties in your
action. You're looking throughout message resources and not for
action's variable.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Whereabouts of Struts 2.2

2010-07-20 Thread Rohan Ranade
Hi all,

Sorry in advance for a potentially silly question.

I have been seeing a couple of mails on the list about Struts 2.2. Is it
released already? The struts.apache.org page doesn't seem to mention it
anywhere except a section in the migration guide -
http://struts.apache.org/2.1.8.1/docs/version-notes-221.html. If it has not
been released, a pointer to a likely release date would be great.

Thanks and Regards,
Rohan


Re: Whereabouts of Struts 2.2

2010-07-20 Thread Lukasz Lenart
2010/7/20 Rohan Ranade rohan.ran...@gmail.com:
 Hi all,

 Sorry in advance for a potentially silly question.

 I have been seeing a couple of mails on the list about Struts 2.2. Is it
 released already? The struts.apache.org page doesn't seem to mention it
 anywhere except a section in the migration guide -
 http://struts.apache.org/2.1.8.1/docs/version-notes-221.html. If it has not
 been released, a pointer to a likely release date would be great.

The Struts 2.2.1 is under Vote, you can find it in staging repository:
http://people.apache.org/builds/struts/2.2.1/

Maven 2 staging repository:
https://repository.apache.org/content/repositories/orgapachestruts-014/


Kind regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Chris Pratt
Are you intending for these values to come from your application resource
bundle?  That's where getText() gets it's values from.  I believe it it
doesn't find anything it just returns whatever is passed to is, which might
be why you're seeing what I expect you are expecting.

If you are actually trying to test this out with static values (or use
static values), try this instead (note the embedded single quotes within the
double quoted, maybe cutting-n-pasting would work best)

s:param name=helpTitle  value='example1'/
s:param name=helpText value='example2'/

  (*Chris*)

On Tue, Jul 20, 2010 at 12:20 PM, Emi Lu em...@encs.concordia.ca wrote:

 On 07/20/2010 01:39 PM, Dale Newfield wrote:

 On 7/20/10 11:48 AM, Emi Lu wrote:

 It seems that s:param does not work well when more than one s:param is
 assigned.


 I use multiple param tags inside url tags all over the place. It does
 work. I would suggest running your application inside a debugger to find
 out what exactly is not working for you. One thing I would suggest is
 eliminating ambiguities -- value fields (for example) are going to be
 interpreted as OGNL, so if you want the ognl expression contents, then
 value=%{contents} and if you want the string contents, then
 value=%{'contents'}.


 Thank you for all your inputs!

 Conclusion:
 =
 (1) workable version:
 s:param name=helpTitle  value=%{getText('example1')} /
 s:param name=helpText   value=%{getText('example2')} /

 (2) this way, it does not work:

 s:param name=helpTitle  value=example1 /
 s:param name=helpText   value=example2 /

 Frankly, I do *not* like way(1) since %{getText('example2')} is a very
 long paragraph. I prefer to transfer key property and retrieve text in
 Action Class.

 Anyhow, it seems that this is the current solution I could find for now.

 If you have better ideas, please let me know.


 Thanks a lot!

 --
 Lu Ying

 Note:
 attribute.property
 =
 example1=Title info
 example2=.. a very long paragraph ...


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: lost URL parameters with s:param tag

2010-07-20 Thread Emi Lu



Are you intending for these values to come from your application resource
bundle?  That's where getText() gets it's values from.  I believe it it
doesn't find anything it just returns whatever is passed to is, which might
be why you're seeing what I expect you are expecting.

If you are actually trying to test this out with static values (or use
static values), try this instead (note the embedded single quotes within the
double quoted, maybe cutting-n-pasting would work best)

s:param name=helpTitle  value='example1'/
s:param name=helpText value='example2'/


All right, I found the trick.

Workable solution:

s:param name=helpTitle  value=%{'example1'}/
s:param name=helpText   value=%{'example2'}/

Thank you for all your help! Very helpful!

--
Lu Ying





On Tue, Jul 20, 2010 at 12:20 PM, Emi Luem...@encs.concordia.ca  wrote:


On 07/20/2010 01:39 PM, Dale Newfield wrote:


On 7/20/10 11:48 AM, Emi Lu wrote:


It seems that s:param does not work well when more than one s:param is
assigned.



I use multiple param tags inside url tags all over the place. It does
work. I would suggest running your application inside a debugger to find
out what exactly is not working for you. One thing I would suggest is
eliminating ambiguities -- value fields (for example) are going to be
interpreted as OGNL, so if you want the ognl expression contents, then
value=%{contents} and if you want the string contents, then
value=%{'contents'}.



Thank you for all your inputs!

Conclusion:
=
(1) workable version:
s:param name=helpTitle  value=%{getText('example1')} /
s:param name=helpText   value=%{getText('example2')} /

(2) this way, it does not work:

s:param name=helpTitle  value=example1 /
s:param name=helpText   value=example2 /

Frankly, I do *not* like way(1) since %{getText('example2')} is a very
long paragraph. I prefer to transfer key property and retrieve text in
Action Class.

Anyhow, it seems that this is the current solution I could find for now.

If you have better ideas, please let me know.


Thanks a lot!

--
Lu Ying

Note:
attribute.property
=
example1=Title info
example2=.. a very long paragraph ...


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org







-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Johannes Geppert

does it work when you define it this way?

s:url id=url_help namespace=/Action/Global action=ProcessHelp 
s:param name=helpTitleexample1
s:param name=help_text_namecontents
/s:url 

Johannes


luy wrote:
 
 Good morning,
 
 It seems that s:param does not work well when more than one s:param is 
 assigned.
 
 s:url id=url_help namespace=/Action/Global action=ProcessHelp
 s:param name=helpTitle  value=example1 /
 s:param name=help_text_name value=contents /
 /s:url
 
 
 The second help_text_name is never called. How come? Found one line 
 bug report lost URL parameters with s:param tag (bug 1938) at 
 http://readlist.com/lists/struts.apache.org/user/9/47016.html
 
 Does someone know whether the bug has been fixed?
 
 Thanks a lot!
 --
 Lu Ying
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/lost-URL-parameters-with-%3Cs%3Aparam%3E-tag-tp29216501p29216887.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: lost URL parameters with s:param tag

2010-07-20 Thread Chris Pratt
Not unless you sprinkle a couple of /s:param's in there as well.
  (*Chris*)

On Tue, Jul 20, 2010 at 1:08 PM, Johannes Geppert jo...@web.de wrote:


 does it work when you define it this way?

 s:url id=url_help namespace=/Action/Global action=ProcessHelp
 s:param name=helpTitleexample1
s:param name=help_text_namecontents
 /s:url

 Johannes


 luy wrote:
 
  Good morning,
 
  It seems that s:param does not work well when more than one s:param is
  assigned.
 
  s:url id=url_help namespace=/Action/Global action=ProcessHelp
  s:param name=helpTitle  value=example1 /
  s:param name=help_text_name value=contents /
  /s:url
 
 
  The second help_text_name is never called. How come? Found one line
  bug report lost URL parameters with s:param tag (bug 1938) at
  http://readlist.com/lists/struts.apache.org/user/9/47016.html
 
  Does someone know whether the bug has been fixed?
 
  Thanks a lot!
  --
  Lu Ying
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 


 -
 ---
 web: http://www.jgeppert.com
 twitter: http://twitter.com/jogep

 --
 View this message in context:
 http://old.nabble.com/lost-URL-parameters-with-%3Cs%3Aparam%3E-tag-tp29216501p29216887.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




sx:datetimepicker bug?

2010-07-20 Thread Chris Miles
I have the following in my JSP

sx:datetimepicker name=deliveryDate id=deliveryDate label=Delivery Date 
displayFormat=dd/MM/ /

but the generated HTML is:

input type=text autocomplete=off dojoattachpoint=inputNode 
style=vertical-align: middle; width: 7em; value= name=dojo.deliveryDate

This is obviously not picked up my action class expecting deliveryDate and not 
dojo.deliveryDate.

Is this normal? According to the docs it is not.

Chris