Re: Struts2 : XML based View

2012-07-09 Thread Dave Newton
I don't understand. If you're transforming XML to HTML via XSLT, then the
stylesheet is where you'd build your JS.

Dave

(pardon brevity, typos, and top-quoting; on cell)
On Jul 9, 2012 8:09 PM, "Anupam Bakshi"  wrote:

> Hi Steve,
>Creating HTML with JS is not the problem.
>
>   The problem is that if I use struts2 tags something needs to process
> them before they go to the client browser.
>   Is there something that can compile JSP pages as they are generated
> on-the-fly?
>
> Thanks,
> Anupam
>
>
>
> 
>  From: Steve Higham 
> To: 'Struts Users Mailing List' ; 'Anupam Bakshi'
> 
> Sent: Monday, July 9, 2012 6:47 AM
> Subject: RE: Struts2 : XML based View
>
> Hi,
>
> I have projects that include JS (and jquery) in the HTML pages they output.
> It's then up to you to construct your jquery widgets when the document
> loads. Is this what you are looking for...
>
> Cheers,
>
> Steve
>
> -Original Message-
> From: Anupam Bakshi [mailto:baks...@yahoo.com]
> Sent: 09 July 2012 09:02
> To: user@struts.apache.org
> Subject: Struts2 : XML based View
>
> Hello,
>   In my Struts2 action, I have a database returning XML data as a stream
> that is transformed using XSLT2.
>   This is fine, but I need the result to also have jquery tabs and submit
> buttons.
>
>   Is there any way to achieve this on-the-fly generation and insertion of
> these struts2 and struts2-jquery tags?
>
> Thanks,
> Anupam
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org


Re: Struts2 : XML based View

2012-07-09 Thread Anupam Bakshi
Hi Steve,
   Creating HTML with JS is not the problem. 

  The problem is that if I use struts2 tags something needs to process them 
before they go to the client browser.
  Is there something that can compile JSP pages as they are generated 
on-the-fly?

Thanks,
Anupam




 From: Steve Higham 
To: 'Struts Users Mailing List' ; 'Anupam Bakshi' 
 
Sent: Monday, July 9, 2012 6:47 AM
Subject: RE: Struts2 : XML based View
 
Hi,

I have projects that include JS (and jquery) in the HTML pages they output.
It's then up to you to construct your jquery widgets when the document
loads. Is this what you are looking for...

Cheers,

Steve

-Original Message-
From: Anupam Bakshi [mailto:baks...@yahoo.com] 
Sent: 09 July 2012 09:02
To: user@struts.apache.org
Subject: Struts2 : XML based View

Hello,
  In my Struts2 action, I have a database returning XML data as a stream
that is transformed using XSLT2.
  This is fine, but I need the result to also have jquery tabs and submit
buttons.
 
  Is there any way to achieve this on-the-fly generation and insertion of
these struts2 and struts2-jquery tags?

Thanks,
Anupam


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

Re: PreffixMapper for language

2012-07-09 Thread JOSE L MARTINEZ-AVIAL
Hi Takanori Hayashi,
  Yes, I know I can do that. The problem is that the requisite is to
receive the language through the URL. I want to retrieve the locale, put it
into the ActionContext, remove the locale from the URL, and then send the
request to the ActionMapper, so the mapping won't depend on the
language(because I removed it from the URL). That's the tricky part.

JL



2012/7/9 Takanori Hayashi 

> Hello Josel Martinez-Avial,
>
> To make mutilanguage application in Struts,
> you can use property files
>   like  MessageResources_en.propeties, MessageResources_pt.properties for
> portuguese. The property files are placed under src
> directory and classes directory after compiled.
>
> Configuration file is struts-config.xml like
>  
>
> The example of MessgeResources_en.properties is
>  sendMessage.heading=Sending a message
> MessageResources_pt.properties would be
> sendMessage.heading=(**portuguese of Sending a message)
>
> The example of a JSP file contents is
>   
>
>
> Regards,
> Takanori Hayashi
>
>
>
> (2012/07/10 4:27), JOSE L MARTINEZ-AVIAL wrote:
>
>> Last try:
>> Hello,
>>I have a requisite to provide multilanguage in my app using a preffix
>> in
>> the action. So the URLs would be
>>
>> http://myserver/mypackage/**myaction 
>> (for the default language)
>>
>> http://myserver/en/mypackage/**myaction(for
>>  english)
>>
>> http://myserver/pt/mypackage/**myaction
>> 
>> >(for
>>
>> portuguese)
>>
>> The actions will not change, so I was thinking of using the PreffixMapper
>> (slightly modified to pass the language as a parameter for a interceptor
>> that will take care of the Locale). Has somebody done something like this?
>> Is there a better approach?
>>
>> Thanks.
>>
>> JL
>>
>>
>> 2012/7/9 
>>
>>  Sorry, It went through too early
>>>
>>>
>>> Sent via BlackBerry from T-Mobile
>>>
>>> -Original Message-
>>> From: jlm...@gmail.com
>>> Date: Mon, 9 Jul 2012 18:56:43
>>> To: Struts Users Mailing List
>>> Reply-To: jlm...@gmail.com
>>> Subject: PreffixMapper for language
>>>
>>> Hello,
>>>I have a requisite to provide multilanguage in my app using a preffix
>>> in
>>> the action. So the URLs would be
>>>
>>> http://myserver/mypackage/**myaction(for
>>>  the default language)
>>>
>>> http://myserver/en/mypackage/**myaction(for
>>>  english)
>>>
>>>
>>>
>>>
>>> Sent via BlackBerry from T-Mobile
>>>
>>>
>
>
>
>
> --**--**-
> To unsubscribe, e-mail: 
> user-unsubscribe@struts.**apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: PreffixMapper for language

2012-07-09 Thread Takanori Hayashi

Hello Josel Martinez-Avial,

To make mutilanguage application in Struts,
you can use property files
  like  MessageResources_en.propeties, MessageResources_pt.properties 
for portuguese. The property files are placed under src

directory and classes directory after compiled.

Configuration file is struts-config.xml like
 

The example of MessgeResources_en.properties is
 sendMessage.heading=Sending a message
MessageResources_pt.properties would be
sendMessage.heading=(portuguese of Sending a message)

The example of a JSP file contents is
  


Regards,
Takanori Hayashi


(2012/07/10 4:27), JOSE L MARTINEZ-AVIAL wrote:

Last try:
Hello,
   I have a requisite to provide multilanguage in my app using a preffix in
the action. So the URLs would be

http://myserver/mypackage/myaction (for the default language)

http://myserver/en/mypackage/myaction (for english)

http://myserver/pt/mypackage/myaction(for
portuguese)

The actions will not change, so I was thinking of using the PreffixMapper
(slightly modified to pass the language as a parameter for a interceptor
that will take care of the Locale). Has somebody done something like this?
Is there a better approach?

Thanks.

JL


2012/7/9 


Sorry, It went through too early


Sent via BlackBerry from T-Mobile

-Original Message-
From: jlm...@gmail.com
Date: Mon, 9 Jul 2012 18:56:43
To: Struts Users Mailing List
Reply-To: jlm...@gmail.com
Subject: PreffixMapper for language

Hello,
   I have a requisite to provide multilanguage in my app using a preffix in
the action. So the URLs would be

http://myserver/mypackage/myaction (for the default language)

http://myserver/en/mypackage/myaction (for english)




Sent via BlackBerry from T-Mobile







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



Re: PreffixMapper for language

2012-07-09 Thread JOSE L MARTINEZ-AVIAL
Last try:
Hello,
  I have a requisite to provide multilanguage in my app using a preffix in
the action. So the URLs would be

http://myserver/mypackage/myaction (for the default language)

http://myserver/en/mypackage/myaction (for english)

http://myserver/pt/mypackage/myaction(for
portuguese)

The actions will not change, so I was thinking of using the PreffixMapper
(slightly modified to pass the language as a parameter for a interceptor
that will take care of the Locale). Has somebody done something like this?
Is there a better approach?

Thanks.

JL


2012/7/9 

> Sorry, It went through too early
>
>
> Sent via BlackBerry from T-Mobile
>
> -Original Message-
> From: jlm...@gmail.com
> Date: Mon, 9 Jul 2012 18:56:43
> To: Struts Users Mailing List
> Reply-To: jlm...@gmail.com
> Subject: PreffixMapper for language
>
> Hello,
>   I have a requisite to provide multilanguage in my app using a preffix in
> the action. So the URLs would be
>
> http://myserver/mypackage/myaction (for the default language)
>
> http://myserver/en/mypackage/myaction (for english)
>
>
>
>
> Sent via BlackBerry from T-Mobile
>


Re: PreffixMapper for language

2012-07-09 Thread jlmagc
Sorry, It went through too early


Sent via BlackBerry from T-Mobile

-Original Message-
From: jlm...@gmail.com
Date: Mon, 9 Jul 2012 18:56:43 
To: Struts Users Mailing List
Reply-To: jlm...@gmail.com
Subject: PreffixMapper for language

Hello,
  I have a requisite to provide multilanguage in my app using a preffix in the 
action. So the URLs would be

http://myserver/mypackage/myaction (for the default language)

http://myserver/en/mypackage/myaction (for english)




Sent via BlackBerry from T-Mobile

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



PreffixMapper for language

2012-07-09 Thread jlmagc
Hello,
  I have a requisite to provide multilanguage in my app using a preffix in the 
action. So the URLs would be

http://myserver/mypackage/myaction (for the default language)

http://myserver/en/mypackage/myaction (for english)




Sent via BlackBerry from T-Mobile

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



Re: JBoss : error deploy webApp Struts2 + Jquery plugin

2012-07-09 Thread Łukasz Lenart
2012/7/9 ngald :
> Caused by: Connection timed out: connect - [unknown location]
> at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)

Could you show your struts.xml ? Regarding error above, maybe you are
using old .dtd, OpenSymphony is down for some time...


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

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



JBoss : error deploy webApp Struts2 + Jquery plugin

2012-07-09 Thread ngald
Hi 
apps struts 2.12 in Jboss5.10/4.2.3  with JQuery plugin ---> error deploy

If I add the plugin Jar in Web-inf/lib (struts2-jquery-plugin-3.3.1.jar ) I
get erre in deploy.
That's ok if I remove the Jar.
The server wait many seconds in the parsing struts-default.xml, it is
visible in the log time.

16:19:42,485 INFO [TomcatDeployment] deploy, ctxPath=/WebApplication1
16:19:42,688 INFO [XmlConfigurationProvider] Parsing configuration file
[struts-default.xml]
...
16:20:03,814 ERROR [[/WebApplication1]] Exception starting filter struts2
Unable to load configuration. - [unknown location]
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)




Caused by: Unable to load
vfszip:/C:/Programmi/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/server/all/deploy/WebApplication1.war/WEB-INF/lib/struts2-jquery-plugin-3.3.1.jar/struts-plugin.xml
- [unknown location]
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:890)




Caused by: Connection timed out: connect - [unknown location]
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)





Hav you  got some ideas ? 

It's correct in the theory  adding the plugin JAR or is it needed other 
operations  ?

Thank you very much-ngald-


--
View this message in context: 
http://struts.1045723.n5.nabble.com/JBoss-error-deploy-webApp-Struts2-Jquery-plugin-tp5710190.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: Struts2 : XML based View

2012-07-09 Thread Steve Higham
Hi,

I have projects that include JS (and jquery) in the HTML pages they output.
It's then up to you to construct your jquery widgets when the document
loads. Is this what you are looking for...

Cheers,

Steve

-Original Message-
From: Anupam Bakshi [mailto:baks...@yahoo.com] 
Sent: 09 July 2012 09:02
To: user@struts.apache.org
Subject: Struts2 : XML based View

Hello,
  In my Struts2 action, I have a database returning XML data as a stream
that is transformed using XSLT2.
  This is fine, but I need the result to also have jquery tabs and submit
buttons.
 
  Is there any way to achieve this on-the-fly generation and insertion of
these struts2 and struts2-jquery tags?

Thanks,
Anupam


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



Struts2 : XML based View

2012-07-09 Thread Anupam Bakshi
Hello,
  In my Struts2 action, I have a database returning XML data as a stream that 
is transformed using XSLT2.
  This is fine, but I need the result to also have jquery tabs and submit 
buttons.
 
  Is there any way to achieve this on-the-fly generation and insertion of these 
struts2 and struts2-jquery tags?

Thanks,
Anupam