Re: Character encoding...

2007-03-23 Thread Martin Gainty
Riffla-
can we see the contents of se.telia.kontaktamig.web.util.CharsetFilter?
M--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "riffla" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 23, 2007 9:42 PM
Subject: Re: Character encoding...


> 
> Encoding set in:
> 
> JSP Page directive
> Content inside Html Meta tag
> And there is also a charsetFilter class used (see below)
> 
> Struts-config.xml contains:
> ===
>  processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
> ===
> 
> web.xml contains:
> ===
> 
> Character Encoding
> se.telia.kontaktamig.web.util.CharsetFilter
> 
> 
> 
> Character Encoding
> /*
> 
> 
> 
> PARAMETER_ENCODING
> UTF-8
> 
> //To be used and loaded as a common property from within Java/JSP code
> ===
> 
> 
> 
> And beside those alreade mentioned, there's also som lines in
> struts-html.tld:
> 
> useLocalEncoding
> false
> true
> 
> for some tag elements (img, link and rewrite tags)
> 
> That's about it...
> 
> /Riffla
> 
> 
> Christopher Schultz-2 wrote:
>> 
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>> 
>> Riffla,
>> 
>> riffla wrote:
>>> Of course, forgot to mention, mainly I mean as output on a JSP page (both
>>> bean:write and <%=...%>, but also System.out.println() in different
>>> places,
>>> always the same result...
>> 
>> The method of output is not relevant. Only the character encoding is.
>> Where do you set the character encoding of your pages?
>> 
>> - -chris
>> 
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.7 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>> 
>> iD8DBQFGBEen9CaO5/Lv0PARAg3FAJ950MJ6Y8XIqGmysRxtphNCETWzogCgq57d
>> pZH1HfI4X+5nuznbG/9UaXA=
>> =qVbS
>> -END PGP SIGNATURE-
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Character-encoding...-tf297678.html#a9646134
> 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: Character encoding...

2007-03-23 Thread riffla

Encoding set in:

JSP Page directive
Content inside Html Meta tag
And there is also a charsetFilter class used (see below)

Struts-config.xml contains:
===

===

web.xml contains:
===

Character Encoding
se.telia.kontaktamig.web.util.CharsetFilter



Character Encoding
/*



PARAMETER_ENCODING
UTF-8

//To be used and loaded as a common property from within Java/JSP code
===



And beside those alreade mentioned, there's also som lines in
struts-html.tld:

useLocalEncoding
false
true

for some tag elements (img, link and rewrite tags)

That's about it...

/Riffla


Christopher Schultz-2 wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Riffla,
> 
> riffla wrote:
>> Of course, forgot to mention, mainly I mean as output on a JSP page (both
>> bean:write and <%=...%>, but also System.out.println() in different
>> places,
>> always the same result...
> 
> The method of output is not relevant. Only the character encoding is.
> Where do you set the character encoding of your pages?
> 
> - -chris
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGBEen9CaO5/Lv0PARAg3FAJ950MJ6Y8XIqGmysRxtphNCETWzogCgq57d
> pZH1HfI4X+5nuznbG/9UaXA=
> =qVbS
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Character-encoding...-tf297678.html#a9646134
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: Character encoding...

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Riffla,

riffla wrote:
> Of course, forgot to mention, mainly I mean as output on a JSP page (both
> bean:write and <%=...%>, but also System.out.println() in different places,
> always the same result...

The method of output is not relevant. Only the character encoding is.
Where do you set the character encoding of your pages?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGBEen9CaO5/Lv0PARAg3FAJ950MJ6Y8XIqGmysRxtphNCETWzogCgq57d
pZH1HfI4X+5nuznbG/9UaXA=
=qVbS
-END PGP SIGNATURE-

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



Re: @ExpressionValidator annotation & ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

2007-03-23 Thread Piero Sartini
I see this warning as well when using ajax-validation. It seems ognl expects 
a .methodName method which is not there in the struts validators.

There is another thread regarding this problem with the Topic "Problem with 
2.0.6". The warning is there in 2.0.7 as well.

Ted suggested to turn off devMode, but the warning remains.

Piero

Am Montag, 5. März 2007 schrieb Alex Wibowo:
> Gday...
>
>
> I am using the @ExpressionValidator annotation. So far it is working
> alright, apart from this exception I was getting:
>
> WARNING: Caught OgnlException while setting property 'methodName' on type '
> com.opensymphony.xwork2.validator.validators.ExpressionValidator'.
> ognl.NoSuchPropertyException:
> com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName
>
> Did anyone else get this error? According to the API, the
> @ExpressionValidator does not require any "methodName" parameter. So I am
> not sure
> what this exception is all about. I havent looked at the source code yet..

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



Re: Validator Issue

2007-03-23 Thread stanlick

Thanks Ted!  I felt a little queezy about using "requiredstring" but
couldn't get Eclipse to reveal a list of valid atrribute values with code
assist.

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:


On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> what about simple type conversion? How will you ever have non-string
> coming from html? Does this mean we are back to domain object with
> only strings?

No, it means that we have a special validator for Strings to cover
both the notion of being null and the notion of being empty, and
optionally trimming it first.

* http://struts.apache.org/2.x/docs/required-validator.html

* http://struts.apache.org/2.x/docs/requiredstring-validator.html

- 
+ 

-Ted.

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





--
Scott
[EMAIL PROTECTED]


Re: Character encoding...

2007-03-23 Thread riffla

Of course, forgot to mention, mainly I mean as output on a JSP page (both
bean:write and <%=...%>, but also System.out.println() in different places,
always the same result...

/Riffla



Christopher Schultz-2 wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Riffla,
> 
> riffla wrote:
>> Sending a request form a JSP using ISO-8859-1 with POST method (no
>> problem
>> using GET method or UTF-8 on origin page) to either a Struts action or
>> another JSP (with either UTF-8 or ISO-8859-1, tried both) replaces my å,ä
>> and ö with '?'
> 
> Where do you see the '?'? In a web page? In a log file? In the results
> of a database query from a command-line tool? It's possible that your
> output isn't sensitive to the character encoding (for instance, a
> terminal window or log file).
> 
>> even though I've set the Connector property (Tomcat as
>> server) to UTF-8.
> 
> URIEncoding="UTF-8" only affects the interpretation of the URL string in
> the request, not the body of the request. The body of the request is
> interpreted using the content-type HTTP header.
> 
>> So the problem seems to happen with the POST data in the
>> request when going from ISO to UTF using POST method...
> 
> If you are submitting data with a content-type of ISO-8859-1 and then
> forcing the request's encoding to be UTF-8, then you are introducing the
> problem yourself. ISO != UTF-8, so you shouldn't be doing that. If you
> really need to use non-ASCII characters at all, then you should convert
> everything to UTF-8. Make sure that all your pages use UTF-8 as the
> response encoding, and all POST forms should then use UTF-8 as the
> request body encoding.
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGBAxn9CaO5/Lv0PARAoNRAJ94LWHNQdZbzTd5wXq6Z/nGfZAsCwCgrkAC
> ZupLQFeCLlyi/kit/l9EDxo=
> =Gwxy
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Character-encoding...-tf297678.html#a9642739
Sent from the Struts - User mailing list archive at Nabble.com.


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



[JAVA] abstractg class calling abstract method in constructor

2007-03-23 Thread temp temp
 
   
  I have a super  class  with an abstract method and a non  default 
constructor and it calls this abstract method in its constructor
   This abstract method is implemented in the  base class.
  First thing  base class constructor does is call  super()   
   
  Example
  // super  class
  public abstract class CustomRuntimeDocument extends  AbstractDocument {
   
public  CustomRuntimeDocument(XmlObject aXmlObject, String 
aFileName   ) {
  super();
  fXmlObject=aXmlObject;
  fFilename=getFilePrefix()+aFileName;
}
   
  protected abstract String getFilePrefix();
   
   
  } // end of class
   
  // base class
  public class CustomRuntimeFormDocument extends  CustomRuntimeDocument{

public  CustomRuntimeFormDocument(Form   aForm  , String aFileName) 
{
  super(aForm,aFileName);
  fForm=aForm;
}
   
protected String  getFilePrefix() {
  
  return "formbuilder_";
}
   
  }
   
   
  Is this ok or might generate some problems ?
  Thanks & Regards

 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

Re: struts.xml - change default location

2007-03-23 Thread Ted Husted

Put a stub struts.xml on the classpath that loads your working
configuration from another location. If the stub is under classes and
the one you want is under WEB-INF, try


   


-HTH, Ted


On 3/19/07, Bartek <[EMAIL PROTECTED]> wrote:


Hi

I have to face up the following issue. My location of struts.xml shoudl be
WEB-INF directory, not WEB-INF/classes.
What is the easiest way to achieve this?? I tried several different config
locations (e.g. WEB-INF/struts.xml) for StrutsXmlConfigurationProvider, none
of them worked. Creating custom configuration provider might help, but it is
pojo by default , protocol independant and therefore without any
ServletContext access - what is a pain in this case.

Cheers
bartek


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



Re: [JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread Ted Husted

* http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html

The simplest thing would be something like

String id = UUID.randomUUID().toString();

-HTH, Ted


On 3/23/07, temp temp <[EMAIL PROTECTED]> wrote:

I need a  object which generates unique identifiers  for all   instances I 
create  how to do this  ?
  Thanks & Regards


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



[OT] Re: [JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread Dave Newton
--- temp temp <[EMAIL PROTECTED]> wrote:
> I need a  object which generates unique identifiers 

> for all instances I create  how to do this  ?

Synchronized counter? http://jug.safehaus.org/?
http://static.springframework.org/spring-webflow/docs/pr5/api/org/springframework/webflow/util/RandomGuid.html?

W/o knowing what you actually need or why it's hard to
say. Totally unique? Unique within object type?
DB-unique/unique forever?

d.



 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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



[JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread temp temp
I need a  object which generates unique identifiers  for all   instances I 
create  how to do this  ?
  Thanks & Regards

 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

Re: Validator Issue

2007-03-23 Thread Ted Husted

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

what about simple type conversion? How will you ever have non-string
coming from html? Does this mean we are back to domain object with
only strings?


No, it means that we have a special validator for Strings to cover
both the notion of being null and the notion of being empty, and
optionally trimming it first.

* http://struts.apache.org/2.x/docs/required-validator.html

* http://struts.apache.org/2.x/docs/requiredstring-validator.html

- 
+ 

-Ted.

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



Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> what about simple type conversion? How will you ever
> have non-string coming from html? Does this mean we 
> are back to domain object with only strings?

S2 (and others) already do simple type conversion.

You will "never" have non-strings coming from the
*browser* because that's how HTTP works.

You already *had* a domain object with non-strings,
but were using a *string* validator to check it,
which obviously won't work.

I wrote:
>> So create a Zipcode datatype that allows for +4,
>> use a regex or type-specific validator and a 
>> converter, and you have your "rich" domain model. 
>> Putting a zipcode in an integer is not a good idea,

>> even if it *is* just for the US.

I would imagine you could just as easily validate
your converted Zipcode datatype, even doing a lookup
if you really wanted.

But you *still* don't want a zipcode to be an
*integer*.

d.



 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

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



Re: Struts 2.0.6 Spring - Struts 2.0.1 work very well

2007-03-23 Thread Piero Sartini
Am Freitag, 23. März 2007 schrieb Dave Newton:
> --- Daniel Felix <[EMAIL PROTECTED]> wrote:
> > [ the two JAR files ]
>
> I still think it's the double-JAR problem.

yes, looks like that. the error message says it all.
struts2-spring-plugin is loaded in 2 places:

acnsf/struts2-spring-plugin-2.0.6.jar
and
acnsf/acnsf_war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar

It looks like the lib is added to the ear project as well as to the war 
project contained within the ear.

Piero

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



Re: Validator Issue

2007-03-23 Thread stanlick

what about simple type conversion? How will you ever have non-string
coming from html? Does this mean we are back to domain object with
only strings?

On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:

--- [EMAIL PROTECTED] wrote:
> Are you suggesting that we *ARE* back to needing
> *DUMB* strings in our *RICH* domain models?  I
> thought the tired old FormBean was a thing of the
> past!

That's backwards. You were testing an int with a
String test and it failed *because* it wasn't viewing
everything as a string.

So create a Zipcode datatype that allows for +4, use a
regex or type-specific validator and a converter, and
you have your "rich" domain model. Putting a zipcode
in an integer is not a good idea, even if it *is* just
for the US.

d.





Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

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





--
Scott
[EMAIL PROTECTED]

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



Re: [s2] accessing servlet context from an action

2007-03-23 Thread Piero Sartini
> I'm looking at the javadoc for this, it doesn't say much. Do I just
> create a class scope variable for the session context and then set
> that from the argument in the set method?

That is exactly how it works. You might want to look at ServletSessionAware, 
ServletRequestAware, ServletResponseAware as well - it works the same way.

> Is this set method called automagically by the framework when the
> action is first accessed or when the web app is deployed? 

I think it is called when the action is instantiated, but I am not totally 
sure.

> If I put 
> this in the base action class and extend that for my other actions,
> will this cause problems, or does each final action class need to
> implement this?

This should not make any problems. You can extend a generic action that 
implements all the stuff that is common to all your actions. I am doing it 
the same way and it works well.

One thing you have to take care of is that there are issues if you want access 
in the constructor of an action (struts has no chance to call the set method 
then).

Piero.

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



Re: [s2] accessing servlet context from an action

2007-03-23 Thread Chris Cheshire

Thank you muchly!

On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:

--- Chris Cheshire <[EMAIL PROTECTED]> wrote:
> I'm looking at the javadoc for this, it doesn't say
> much. Do I just create a class scope variable for
the
> session context and then set that from the argument
> in the set method?

Yep.

> Is this set method called automagically by the
> framework when the action is first accessed or when
> the web app is deployed? If I put this in the base
> action class and extend that for my other actions,
> will this cause problems, or does each final action
> class need to implement this?

Actions are instantiated per-request.

d.


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



[S2] struts2-showcase in Websphere 6.1 not picking up static resources

2007-03-23 Thread alkira

I am trying to get Struts2 running on top of Websphere 6.1 and I am having
some issues with this.  These issues also occur in the Struts2Showcase.  To
get it running, I am basically deploying the struts2-showcase-2.0.6.war file
into the Websphere application server.  The application starts up and works,
however, when I try to run the autocomplete or some of the examples that
require Dojo, the Dojo part does not work.  When I look into it, some of the
static resources are not being found, such as CommonFunctions.js and
dojoRequire.js.  Other ones however are found, like the dojo.js, so not sure
if it is related to file size.

I saw a JIRA issue WW-1526 related to this, and even tried to pull the
patched "FilterDispatcher.java" file into my project, however, it still did
not work.  I also tried the patch with the ServletLauncher contained in the
Wiki and it did not work either.  I even got the latest WebSphere patch and
it is still the same.  

Has anyone run Struts2 Dojo example on Websphere 6.1, or know of a solution
to this?   I would like to avoid manually copying the static content into my
application if possible.

Thanks!

Alex

-- 
View this message in context: 
http://www.nabble.com/-S2--struts2-showcase-in-Websphere-6.1-not-picking-up-static-resources-tf3455643.html#a9640940
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] accessing servlet context from an action

2007-03-23 Thread Dave Newton
--- Chris Cheshire <[EMAIL PROTECTED]> wrote:
> I'm looking at the javadoc for this, it doesn't say
> much. Do I just create a class scope variable for
the
> session context and then set that from the argument 
> in the set method?

Yep.

> Is this set method called automagically by the
> framework when the action is first accessed or when 
> the web app is deployed? If I put this in the base 
> action class and extend that for my other actions,
> will this cause problems, or does each final action
> class need to implement this?

Actions are instantiated per-request.

d.



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

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



Re: Struts 2.0.6 Spring - Struts 2.0.1 work very well

2007-03-23 Thread Dave Newton
--- Daniel Felix <[EMAIL PROTECTED]> wrote:
> [ the two JAR files ]

I still think it's the double-JAR problem.

I personally don't know what to tell you except to
make sure you have Glassfish and your EAR properly
configured to avoid having the JAR file in two places.

Anyone else?

d.



 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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



Re: [s2] accessing servlet context from an action

2007-03-23 Thread Chris Cheshire

On 3/23/07, Piero Sartini <[EMAIL PROTECTED]> wrote:

> However, I am completely lost with Struts 2. Everything servlet
> dependent is abstracted away "somewhere". I've been looking at the
> tutorials and they don't cover this kind of thing at all.
>
> How do I go about putting the equivalent in an action with Struts 2?

An action class can implement ServletContextAware - you have to implement a
method setServletContext(ServletContext servletContext) then.

Another way is to use ServletActionContext.getServletContext();

Piero



Thanks Piero,

I'm looking at the javadoc for this, it doesn't say much. Do I just
create a class scope variable for the session context and then set
that from the argument in the set method?

Is this set method called automagically by the framework when the
action is first accessed or when the web app is deployed? If I put
this in the base action class and extend that for my other actions,
will this cause problems, or does each final action class need to
implement this?

Chris

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



Struts 2.0.6 Spring - Struts 2.0.1 work very well

2007-03-23 Thread Daniel Felix
Hi People

 

I'm migrating to 2.0.6 and it occurs this error.

I need very much .

 

Any idea ?

 

 

2007-03-23 15:24:54,754  INFO
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
Parsing configuration file [struts-default.xml]

2007-03-23 15:24:54,942  INFO
(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:141) -
Parsing configuration file [struts-plugin.xml]

WebModule[/acnsf-war]PWC1270: Exception starting filter struts

Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
32

at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(X
mlConfigurationProvider.java:209)

at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlC
onfigurationProvider.java:101)

at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:131)

at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:52)

at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
r.java:398)

at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)

at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
1)

at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:239)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:333)

at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
fig.java:89)

at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:43
49)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5138)

at com.sun.enterprise.web.WebModule.start(WebModule.java:307)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:9
60)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)

at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1572)

at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1217)

at
com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContain
er.java:1142)

at
com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLo
ader.java:128)

at
com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)

at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
Manager.java:323)

at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
Manager.java:197)

at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(Application
Manager.java:632)

at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeploy
EventListener(AdminEventMulticaster.java:905)

at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeploy
Event(AdminEventMulticaster.java:889)

at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEvent
Multicaster.java:445)

at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEve
ntMulticaster.java:160)

at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastE
vent(DeploymentNotificationHelper.java:295)

at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(
DeploymentServiceUtils.java:210)

at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(
ServerDeploymentTarget.java:285)

at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(Applica
tionStartPhase.java:119)

at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:95)

at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:892)

at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:263)

at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:281)

at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsC
onfigMBean.java:542)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at
com.sun.enterprise.admin.MBeanHelper.invo

Re: [s2] accessing servlet context from an action

2007-03-23 Thread Piero Sartini
> I will create a FAQ entry.

good idea.
maybe it makes sense to merge it with this one:
http://struts.apache.org/2.0.6/docs/how-can-we-access-the-httpservletrequest.html

Piero

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



dojo and struts2

2007-03-23 Thread Hartrich, James CTR USTRANSCOM J6
Has anyone experienced a problem with > name="object.property" Any suggestions? 


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



Re: [s2] accessing servlet context from an action

2007-03-23 Thread Dave Newton
--- Piero Sartini <[EMAIL PROTECTED]> wrote:
> An action class can implement ServletContextAware -
> you have to implement a method
setServletContext(ServletContext
> servletContext) then.
> 
> Another way is to use
ServletActionContext.getServletContext();

Definitely use these over what I suggested; I totally
spaced it.

I will create a FAQ entry.

d.



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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



Re: [s2] accessing servlet context from an action

2007-03-23 Thread Piero Sartini
> However, I am completely lost with Struts 2. Everything servlet
> dependent is abstracted away "somewhere". I've been looking at the
> tutorials and they don't cover this kind of thing at all.
>
> How do I go about putting the equivalent in an action with Struts 2?

An action class can implement ServletContextAware - you have to implement a 
method setServletContext(ServletContext servletContext) then.

Another way is to use ServletActionContext.getServletContext();

Piero

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



Re: [s2] accessing servlet context from an action

2007-03-23 Thread Dave Newton
--- Chris Cheshire <[EMAIL PROTECTED]> wrote:
> How do I go about putting the equivalent in an
> action with Struts 2?

I don't actually know if this is still valid, and I
can't test it at the moment, but:

http://struts.apache.org/2.x/docs/accessing-application-session-request-objects.html

I believe this issue has also been discussed in the
archives and is probably more up-to-date than that
page.

d.



 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

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



[s2] accessing servlet context from an action

2007-03-23 Thread Chris Cheshire

Hi,

I'm familiar with Struts 1, looking at Struts 2. The web app I am
working on needs to use data sources that are controlled by tomcat
connection pooling and accessed through JNDI. For this I need access
to the servlet context that the action is running under.

Previously I had a base action class that all actions extended and
provided a method :

   protected Connection getConnection() {
   Connection conn = null;
   try {
   String datasourceName = "jdbc/" +
getServlet().getServletContext().getInitParameter("database");
   Context initCtx = new InitialContext();
   Context envCtx = (Context)initCtx.lookup("java:comp/env");
   DataSource ds = (DataSource)envCtx.lookup(datasourceName);
   log.debug("retrieving database connection for " + datasourceName);
   conn = ds.getConnection();
   log.debug("done");
   conn.setAutoCommit(false);
   return conn;
   }
   catch (SQLException ex) {
   log.error("error getting a connection", ex);
   return null;
   }
   catch (NamingException ex) {
   log.error("error finding the datasource", ex);
   return null;
   }
   }


However, I am completely lost with Struts 2. Everything servlet
dependent is abstracted away "somewhere". I've been looking at the
tutorials and they don't cover this kind of thing at all.

How do I go about putting the equivalent in an action with Struts 2?

Thanks

Chris

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



Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> Are you suggesting that we *ARE* back to needing
> *DUMB* strings in our *RICH* domain models?  I 
> thought the tired old FormBean was a thing of the
> past!

That's backwards. You were testing an int with a
String test and it failed *because* it wasn't viewing
everything as a string.

So create a Zipcode datatype that allows for +4, use a
regex or type-specific validator and a converter, and
you have your "rich" domain model. Putting a zipcode
in an integer is not a good idea, even if it *is* just
for the US.

d.



 

Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

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



Re: Character encoding...

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Riffla,

riffla wrote:
> Sending a request form a JSP using ISO-8859-1 with POST method (no problem
> using GET method or UTF-8 on origin page) to either a Struts action or
> another JSP (with either UTF-8 or ISO-8859-1, tried both) replaces my å,ä
> and ö with '?'

Where do you see the '?'? In a web page? In a log file? In the results
of a database query from a command-line tool? It's possible that your
output isn't sensitive to the character encoding (for instance, a
terminal window or log file).

> even though I've set the Connector property (Tomcat as
> server) to UTF-8.

URIEncoding="UTF-8" only affects the interpretation of the URL string in
the request, not the body of the request. The body of the request is
interpreted using the content-type HTTP header.

> So the problem seems to happen with the POST data in the
> request when going from ISO to UTF using POST method...

If you are submitting data with a content-type of ISO-8859-1 and then
forcing the request's encoding to be UTF-8, then you are introducing the
problem yourself. ISO != UTF-8, so you shouldn't be doing that. If you
really need to use non-ASCII characters at all, then you should convert
everything to UTF-8. Make sure that all your pages use UTF-8 as the
response encoding, and all POST forms should then use UTF-8 as the
request body encoding.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGBAxn9CaO5/Lv0PARAoNRAJ94LWHNQdZbzTd5wXq6Z/nGfZAsCwCgrkAC
ZupLQFeCLlyi/kit/l9EDxo=
=Gwxy
-END PGP SIGNATURE-

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



Re: Validator Issue

2007-03-23 Thread Ted Husted

There's a different validator for numeric types.

*  http://struts.apache.org/2.x/docs/required-validator.html

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Oh!  It is an int.


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



Re: Validator Issue

2007-03-23 Thread stanlick

Are you suggesting that we *ARE* back to needing *DUMB* strings in our
*RICH* domain models?  I thought the tired old FormBean was a thing of the
past!

On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- [EMAIL PROTECTED] wrote:
> Oh!  It is an int.

That could cause a problem :)

Probably not a good idea anyway, since you may want to
enforce either Zip or Zip+4 and not let people enter
"145".

d.






8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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





--
Scott
[EMAIL PROTECTED]


Re: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> Oh!  It is an int.

That could cause a problem :)

Probably not a good idea anyway, since you may want to
enforce either Zip or Zip+4 and not let people enter
"145".

d.



 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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



Re: Validator Issue

2007-03-23 Thread stanlick

Oh!  It is an int.

Scott

On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- [EMAIL PROTECTED] wrote:
> What do you mean by target type?

What (Java) type is the value you are validating?

>
> On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > Is the target type a String?
> >
> > On 3/23/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > > Actually, I removed the js attributes and it
> behaved the same.
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> Scott
> [EMAIL PROTECTED]
>






Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

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





--
Scott
[EMAIL PROTECTED]


RES: Major performance issue while displaying data in tabbedPanel

2007-03-23 Thread Daniel Felix

What's the structure of directory web_root\template\ajax ?
web_root \template\xhtml 
 

Thanks.

 

-Mensagem original-
De: Gajbhe, Laxman (Contractor) [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 23 de março de 2007 12:41
Para: Struts Users Mailing List
Assunto: RE: Major performance issue while displaying data in tabbedPanel

That worked nicely!

Thanks Felipe.

Laxman

-Original Message-
From: Felipe Rodrigues [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 22, 2007 7:08 PM
To: user@struts.apache.org
Subject: Re: Major performance issue while displaying data in
tabbedPanel


Copy the template dir under the struts2-core...jar to your context root.
It will give you a great improvement in Performance.

Felipe


Gajbhe, Laxman (Contractor) wrote:
> 
> Hi,
> 
>  
> 
> I have following snippet of code:
> 
>  
> 
> <%@ taglib uri="/struts-tags" prefix="s" %>
> 
> 
> 
>   Home
> 
>   
> 
> 
> 
>  
> 
> 
> 
>   
> 
>  label="Activity" theme="ajax"
> 
>   href="home/home!recentActivity.action" />
> 
>   
> 
> 
> 
>  
> 
> Action returns about 500 records in the simple table. This takes about
> 14 seconds to render.
> 
>  
> 
> Same data gets rendered in about 6 seconds if I replace tabbedPanel
by:
> 
>  
> 
>  namespace="/home"/>
> 
>  
> 
> Or 
> 
>  
> 
> Directly invoke action from browser link.
> 
>  
> 
> We are using IE 6.0
> 
>  
> 
> I would appreciate your comments/feedback. 
> 
>  
> 
> Thanks,
> 
>  
> 
> Laxman
> 
>  
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Major-performance-issue-while-displaying-data-in-t
abbedPanel-tf3450811.html#a9626072
Sent from the Struts - User mailing list archive at Nabble.com.


-
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: Validator Issue

2007-03-23 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> What do you mean by target type?

What (Java) type is the value you are validating?

> 
> On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > Is the target type a String?
> >
> > On 3/23/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > > Actually, I removed the js attributes and it
> behaved the same.
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Scott
> [EMAIL PROTECTED]
> 



 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

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



Re: Akrogen plugin eclipse to generate Struts 2.x components

2007-03-23 Thread Angelo zerr

Sorry for my error, you can find WEB Site at
http://akrogen.sourceforge.net/1_0_2/index.html


2007/3/23, Angelo zerr <[EMAIL PROTECTED]>:


Hi,
I post my message in this forum, because perhaps somebody would be
interset with my project.
I'm developping plugin eclipse Akrogen http://akrogen.sourceforge.net/index.html
which is able to
generate code.

With Akrogen you can write your wizard page with XML.

But I'm developping new version of Akrogen to have capability to describes
the wizard page with XUL by using Wazzabi library
http://wiki.wazaabi.org/index.php/Main_Page
which is able to transform XUL description into SWT. You can see
screenshot at  
http://akrogen.sourceforge.net/1_0_2/index.html

Akrogen looks like EclipseWork, but with Akrogen you can :
* describes your wizard page with XUL (DONE).
* describe the wizard page with XML component (XUL) and after you can
write XML Wizard which call  XML component and synchronize parameters
between several components (TODO).
* customize template engine (add your own template engine). By default
Akrogen support Velocity Freemarker and XSLT (DONE).
* manage XML context (DONE), properties context (TODO) and JavaClass
context(TODO)
* generate Wizard page by using the selected file with loop marco (ex :
you select hibernate mapping and you can loop on property to display a combo
which display the property
with checkbox) (TODO).
* manage command (TODO). When you click into finsh button of the wizard,
it launch Ant target (It avoid to edit a properties file).
* manage listener (TODO) to update the value of the textbox with another
value of the textbox (ex : you type package name, it update the textbox
directory ou by replacing . with /)

Akrogen use Catalog (Templates, Components, Wizards,...) which is linked
with Eclipse project. So I would like
create Struts 2.x catalog which will contain all the component used into
Struts 2.x (Interceptor, Result, DOJO,...).

So I'm searching somebody to write the template, component,... for Struts
2.x.
If you have interest with my project you can install the current Akrogen
version (see http://akrogen.sourceforge.net/plugin_installation.html)
(You cannot describes the component with XUL with this version)

BUT this version will change soon, as soon as I have stable 1.0.2 version.
You can install it with local Site (Update manager)
that you can found here 
http://sourceforge.net/project/showfiles.php?group_id=164259


If you are interested to help me giving some idea, developping the Akrogen
plugin or writing templates, components for Struts 2.x, tell me.

I hope that somebody will be interest with my post.

Regards Angelo


Re: [S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Piero Sartini
Thank you Ted,

like Harring I also wondered what namespaces are all about and decided they 
arent that important to me - however, already tried to make action names 
like "foo/bar". Now I consider namespaces very useful.

Maybe this should be included in the wiki somewhere. (Tips & Tricks Corner?)

I would love to see more such posts :-)

Piero

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



Akrogen plugin eclipse to generate Struts 2.x components

2007-03-23 Thread Angelo zerr

Hi,
I post my message in this forum, because perhaps somebody would be interset
with my project.
I'm developping plugin eclipse Akrogen
http://akrogen.sourceforge.net/index.html
which is able to
generate code.

With Akrogen you can write your wizard page with XML.

But I'm developping new version of Akrogen to have capability to describes
the wizard page with XUL by using Wazzabi library
http://wiki.wazaabi.org/index.php/Main_Page
which is able to transform XUL description into SWT. You can see screenshot
at  
http://akrogen.sourceforge.net/1_0_2/index.html

Akrogen looks like EclipseWork, but with Akrogen you can :
* describes your wizard page with XUL (DONE).
* describe the wizard page with XML component (XUL) and after you can write
XML Wizard which call  XML component and synchronize parameters between
several components (TODO).
* customize template engine (add your own template engine). By default
Akrogen support Velocity Freemarker and XSLT (DONE).
* manage XML context (DONE), properties context (TODO) and JavaClass
context(TODO)
* generate Wizard page by using the selected file with loop marco (ex : you
select hibernate mapping and you can loop on property to display a combo
which display the property
with checkbox) (TODO).
* manage command (TODO). When you click into finsh button of the wizard, it
launch Ant target (It avoid to edit a properties file).
* manage listener (TODO) to update the value of the textbox with another
value of the textbox (ex : you type package name, it update the textbox
directory ou by replacing . with /)

Akrogen use Catalog (Templates, Components, Wizards,...) which is linked
with Eclipse project. So I would like
create Struts 2.x catalog which will contain all the component used into
Struts 2.x (Interceptor, Result, DOJO,...).

So I'm searching somebody to write the template, component,... for Struts
2.x.
If you have interest with my project you can install the current Akrogen
version (see http://akrogen.sourceforge.net/plugin_installation.html)
(You cannot describes the component with XUL with this version)

BUT this version will change soon, as soon as I have stable 1.0.2 version.
You can install it with local Site (Update manager)
that you can found here
http://sourceforge.net/project/showfiles.php?group_id=164259


If you are interested to help me giving some idea, developping the Akrogen
plugin or writing templates, components for Struts 2.x, tell me.

I hope that somebody will be interest with my post.

Regards Angelo


Re: [S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Vinny

yes, little tips like this are appreciated.

On 3/23/07, Harring Figueiredo <[EMAIL PROTECTED]> wrote:


Ted,

Thank you so much for sending this out. I was wandering what was the
difference between namespace and package. I guess this explain well.

Thanks !

hff

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> Many Struts applications contain hundreds of pages. To help organize
> large applications, the Struts configuration is designed around the
> notions of "packages" and "namespaces". Each package can set its own
> defaults, including a namespace setting.
>
> 
> 
>
> 
> /example/HelloWorld.jsp
> 
>
> 
> 
> 
>
> Use the namespace attribute to create logical modules or units of work
> within an application, each with its own identifying prefix. In an
> accounting application, the actions relating to "payables" might be in
> one namespace, and actions relating to "receivables" in another.
>
> Namespaces avoid conflicts between action names. Each namespace can
> have it's own "menu" or "help" action, each with its own
> implementation. While the prefix appears in the browser URI, the tags
> are "namespace aware", so the namespace prefix does not need to be
> embedded in forms and links.
>
> -HTH, Ted
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Ghetto Java: http://www.ghettojava.com


Re: Validator Issue

2007-03-23 Thread stanlick

What do you mean by target type?

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:


Is the target type a String?

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Actually, I removed the js attributes and it behaved the same.

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





--
Scott
[EMAIL PROTECTED]


Re: Validator Issue

2007-03-23 Thread Ted Husted

Is the target type a String?

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Actually, I removed the js attributes and it behaved the same.


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



Re: [S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Harring Figueiredo

Ted,

Thank you so much for sending this out. I was wandering what was the
difference between namespace and package. I guess this explain well.

Thanks !

hff

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:


Many Struts applications contain hundreds of pages. To help organize
large applications, the Struts configuration is designed around the
notions of "packages" and "namespaces". Each package can set its own
defaults, including a namespace setting.





/example/HelloWorld.jsp






Use the namespace attribute to create logical modules or units of work
within an application, each with its own identifying prefix. In an
accounting application, the actions relating to "payables" might be in
one namespace, and actions relating to "receivables" in another.

Namespaces avoid conflicts between action names. Each namespace can
have it's own "menu" or "help" action, each with its own
implementation. While the prefix appears in the browser URI, the tags
are "namespace aware", so the namespace prefix does not need to be
embedded in forms and links.

-HTH, Ted


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




Re: Validator Issue

2007-03-23 Thread stanlick

Actually, I removed the js attributes and it behaved the same.

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:


What happens if the custom JavaScripts are not used, but the
validation element is used?

If the JavaScript seems to be culprit, then I'd use FireBug or
something to watch the request, to see if there is something funky
going on there. The server-side can only handle what it receives.

-Ted.

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Server side.
>
> On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > Is it the server-side or client-side validation that is firing when it
> > should not?
> >
> > If it is the client-side, and the custom scripts are based on
> > Prototype, there could be DOM-related issues, since Prototype rewrites
> > the DOM.
> >
> > -Ted.
> >
> > On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > I have this field on a web page:
> > >
> > >  > > size="10" onblur="zipChanged(this.value
> > );"onfocus="clearCityAndStateFields();"
> > > />
> > >
> > > and this validator configured for it:
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > The only way I can pass the "Zip Code is required" validation is to
> > remove the
> > > validator entry.  All the other fields on the page work
> > > fine with their validators.  Is there some issue with
Javscript?  This
> > is
> > > the only field wired to script.
> > >
> > > --
> > > Scott
> > > [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Scott
> [EMAIL PROTECTED]
>


--
HTH, Ted 

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





--
Scott
[EMAIL PROTECTED]


RE: Major performance issue while displaying data in tabbedPanel

2007-03-23 Thread Gajbhe, Laxman \(Contractor\)
That worked nicely!

Thanks Felipe.

Laxman

-Original Message-
From: Felipe Rodrigues [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 22, 2007 7:08 PM
To: user@struts.apache.org
Subject: Re: Major performance issue while displaying data in
tabbedPanel


Copy the template dir under the struts2-core...jar to your context root.
It will give you a great improvement in Performance.

Felipe


Gajbhe, Laxman (Contractor) wrote:
> 
> Hi,
> 
>  
> 
> I have following snippet of code:
> 
>  
> 
> <%@ taglib uri="/struts-tags" prefix="s" %>
> 
> 
> 
>   Home
> 
>   
> 
> 
> 
>  
> 
> 
> 
>   
> 
>  label="Activity" theme="ajax"
> 
>   href="home/home!recentActivity.action" />
> 
>   
> 
> 
> 
>  
> 
> Action returns about 500 records in the simple table. This takes about
> 14 seconds to render.
> 
>  
> 
> Same data gets rendered in about 6 seconds if I replace tabbedPanel
by:
> 
>  
> 
>  namespace="/home"/>
> 
>  
> 
> Or 
> 
>  
> 
> Directly invoke action from browser link.
> 
>  
> 
> We are using IE 6.0
> 
>  
> 
> I would appreciate your comments/feedback. 
> 
>  
> 
> Thanks,
> 
>  
> 
> Laxman
> 
>  
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Major-performance-issue-while-displaying-data-in-t
abbedPanel-tf3450811.html#a9626072
Sent from the Struts - User mailing list archive at Nabble.com.


-
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: Validator Issue

2007-03-23 Thread Ted Husted

What happens if the custom JavaScripts are not used, but the
validation element is used?

If the JavaScript seems to be culprit, then I'd use FireBug or
something to watch the request, to see if there is something funky
going on there. The server-side can only handle what it receives.

-Ted.

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Server side.

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> Is it the server-side or client-side validation that is firing when it
> should not?
>
> If it is the client-side, and the custom scripts are based on
> Prototype, there could be DOM-related issues, since Prototype rewrites
> the DOM.
>
> -Ted.
>
> On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I have this field on a web page:
> >
> >  > size="10" onblur="zipChanged(this.value
> );"onfocus="clearCityAndStateFields();"
> > />
> >
> > and this validator configured for it:
> >
> > 
> > 
> > 
> > 
> > 
> >
> > The only way I can pass the "Zip Code is required" validation is to
> remove the
> > validator entry.  All the other fields on the page work
> > fine with their validators.  Is there some issue with Javscript?  This
> is
> > the only field wired to script.
> >
> > --
> > Scott
> > [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Scott
[EMAIL PROTECTED]




--
HTH, Ted 

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



[S2] - Strange error: "" tag not working for ""

2007-03-23 Thread Monttez
Hi!


The url tag:

<@s2.url id="urlMenu" namespace="/Menu" action="getTreeMenu">
  <@s2.param name="decorate" value="false" />



This tag works properly for a link.. as follows:

test
Result:
"http://localhost:8088/WebStageCMS_v2/Menu/getTreeMenu.action?decorate=false
"



But the same tag does not work for the "div" tag:

  <@s2.div id="menu" theme="ajax" href="${urlMenu}">
Loading content...
  



Here I'm getting this error:

Struts Problem Report
Struts has detected an unhandled exception:
Messages:   There is no Action mapped for namespace / and action name
ebStageCMS_v2/Menu/getTreeMenu.


Note that "ebStageCMS_v2"  without the first letter "W" (WebStage..)


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



Re: Validator Issue

2007-03-23 Thread stanlick

Server side.

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:


Is it the server-side or client-side validation that is firing when it
should not?

If it is the client-side, and the custom scripts are based on
Prototype, there could be DOM-related issues, since Prototype rewrites
the DOM.

-Ted.

On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have this field on a web page:
>
>  size="10" onblur="zipChanged(this.value
);"onfocus="clearCityAndStateFields();"
> />
>
> and this validator configured for it:
>
> 
> 
> 
> 
> 
>
> The only way I can pass the "Zip Code is required" validation is to
remove the
> validator entry.  All the other fields on the page work
> fine with their validators.  Is there some issue with Javscript?  This
is
> the only field wired to script.
>
> --
> Scott
> [EMAIL PROTECTED]

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





--
Scott
[EMAIL PROTECTED]


Re: Java-JSP data sharing mechanisms

2007-03-23 Thread Ted Husted

On 3/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Is there a one-stop grid that identifies what each of these symbols
represent and if/when they are even necessary?


If there were, I believe it would be here

* http://struts.apache.org/2.x/docs/ognl.html

I checked WebWork in Action, and there doesn't seem to be one there either.

So, it is something a volunteer could compile and add to the documentation.

I'm sure that once it was available, many of the old WW hands would
peer-review it.

-Ted.

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



Re: Model getter misfiring

2007-03-23 Thread stanlick

This looks like a much better form!  I'll try it once I get booted up and
let you know.

Scott

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:


What happens if the new (and preferred) key form is used instead?



-T.


On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I discovered something strange today after adding logging to my domain
> classes.  If I have the following text field on my web page:
>
> 
>
> the Zip is being requested from User twice!  If I change my field to:
>
>  readonly="true" />
>
> it is called once!  Of course I get no text from the property file
> either!!!  Why would getText() need to consult with the domain
object?  This
> might explain some of the performance issues.
>
> --
> Scott
> [EMAIL PROTECTED]

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





--
Scott
[EMAIL PROTECTED]


Re: Validator Issue

2007-03-23 Thread Ted Husted

Is it the server-side or client-side validation that is firing when it
should not?

If it is the client-side, and the custom scripts are based on
Prototype, there could be DOM-related issues, since Prototype rewrites
the DOM.

-Ted.

On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I have this field on a web page:



and this validator configured for it:







The only way I can pass the "Zip Code is required" validation is to remove the
validator entry.  All the other fields on the page work
fine with their validators.  Is there some issue with Javscript?  This is
the only field wired to script.

--
Scott
[EMAIL PROTECTED]


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



Re: Model getter misfiring

2007-03-23 Thread Ted Husted

What happens if the new (and preferred) key form is used instead?



-T.


On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I discovered something strange today after adding logging to my domain
classes.  If I have the following text field on my web page:



the Zip is being requested from User twice!  If I change my field to:



it is called once!  Of course I get no text from the property file
either!!!  Why would getText() need to consult with the domain object?  This
might explain some of the performance issues.

--
Scott
[EMAIL PROTECTED]


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



[JOB] Full-time Struts 2.0 Position in NYC

2007-03-23 Thread wumic

We are looking for a full-time Java web programmer who is familiar with
WebWork/Struts 2.0.  Actual WebWork/Struts 2.0 is less important as long as
you are smart in Java and are curious about JRuby.

If you are interested, drop me an email (michael-a.wu at db dot com) for
more details.

Thanks,

Michael
-- 
View this message in context: 
http://www.nabble.com/-JOB--Full-time-Struts-2.0-Position-in-NYC-tf3453927.html#a9635062
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: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't work

2007-03-23 Thread Martin Gainty
I would work with the Websphere DOJO Toolkit by D/Ling Ajax for IBM Websphere 
Program 
https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/ibmajaxw/

M--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "Tapio Holopainen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Friday, March 23, 2007 9:15 AM
Subject: Re: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't 
work


Not in showcase.

- Tapio

On Fri, 23 Mar 2007 14:16:53 +0200, Musachy Barroso <[EMAIL PROTECTED]>  
wrote:

> Did you try enabling the dojo debug? ( />)
>
> musachy
>
> On 3/23/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I deployed struts2-showcase-2.0.6.war to Tomcat 5.5. AJAX samples worked
>> just fine. Then I deployed the same .war to Websphere 6.1. None of the
>> AJAX samples worked. Other samples seems to work normally. Could it be
>> that Websphere doesn't handle baseRelativePath in djConfig the same way
>> than Tomcat does? There is no exceptions in Websphere log.
>>
>> 
>>  // Dojo configuration
>>  djConfig = {
>>  baseRelativePath: "/S2Show/struts/dojo",
>>  isDebug: false,
>>  bindEncoding: "UTF-8",
>>  debugAtAllCosts: true // not needed, but allows the Venkman
>> debugger to work with the includes
>>  };
>> 
>> >  src="/S2Show/struts/dojo/dojo.js">
>> >  src="/S2Show/struts/simple/dojoRequire.js">
>> >  src="/S2Show/struts/ajax/dojoRequire.js">
>> >  src="/S2Show/struts/CommonFunctions.js">
>>
>> Has anyone else had same problems? Any suggestion for solution?
>>
>> Regards,
>>
>> - Tapio
>>
>>
>>
>> -
>> 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]



RES: Struts 2.0.6 and Spring

2007-03-23 Thread Daniel Felix
Hi, 

Do you know what I can do to resolve this problem ?

I already clean the project and I saw my classpath, but it doesn´t work yet.

Any idea ? 


-Mensagem original-
De: Don Brown [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 22 de março de 2007 19:36
Para: Struts Users Mailing List
Assunto: Re: Struts 2.0.6 and Spring

Just glancing at the error, looks like you have two copies of the
plugin in the classpath:

jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/stru
ts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:132
jar:file:/C:/Sun/glassfish/domains/domain1/applications/j2ee-apps/acnsf/acns
f-war_war/WEB-INF/lib/struts2-spring-plugin-2.0.6.jar!/struts-plugin.xml:8:1
32

Don

On 3/22/07, Daniel Felix <[EMAIL PROTECTED]> wrote:
> I cleaned before run to deploy.
> I already saw the same problem on net with others people.
>
> Any idea ?
>
>
> -Mensagem original-
> De: Dave Newton [mailto:[EMAIL PROTECTED]
> Enviada em: quinta-feira, 22 de março de 2007 18:57
> Para: Struts Users Mailing List
> Assunto: Re: Struts 2.0.6 and Spring
>
> --- Daniel Felix <[EMAIL PROTECTED]> wrote:
> > After it, I'm migrating from Struts 2.0.1 to Struts
> > 2.0.6 to improve my web application, but when I
> > start, it occurs an error and stop the server.
>
> I would first check and make sure everything is
> cleaned up from the old 2.0.1 version deployment; I'm
> not sure what else could cause that kind of error but
> I haven't used Glassfish, either.
>
> d.
>
>
>
>
>

> 
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
> http://videogames.yahoo.com/platform?platform=120121
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: treenode.ftl not found

2007-03-23 Thread Martin Gainty
ajax control freemarker template file 

specified in default.properties
struts.ui.theme=ajax

-OR-

in jsp


HTH,
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "manoelp" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 23, 2007 8:18 AM
Subject: treenode.ftl not found



Hi folks!

I have this code below :

 
  


  


But, when i execute my application, it happens this exception below :


java.io.FileNotFoundException: Template /template/xhtml/treenode.ftl not
found.
at freemarker.template.Configuration.getTemplate(Configuration.java:489)
at freemarker.template.Configuration.getTemplate(Configuration.java:452)
at
org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:96)
at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
at org.apache.struts2.components.ClosingUIBean.start(ClosingUIBean.java:58)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspx_meth_s_treenode_2(RelatoriosIndice_jsp.java:206)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspx_meth_s_treenode_0(RelatoriosIndice_jsp.java:157)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspx_meth_s_tree_0(RelatoriosIndice_jsp.java:113)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspService(RelatoriosIndice_jsp.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)


Please, somebody can help me?


Manoel Pimentel
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/treenode.ftl-not-found-tf3453432.html#a9633563
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: Character encoding...

2007-03-23 Thread riffla

Thanks for the reply

Actually, we do use a filter setting the encoding to UTF-8, though I'm not
sure if my problem is exactly the same as above.

Sending a request form a JSP using ISO-8859-1 with POST method (no problem
using GET method or UTF-8 on origin page) to either a Struts action or
another JSP (with either UTF-8 or ISO-8859-1, tried both) replaces my å,ä
and ö with '?', even though I've set the Connector property (Tomcat as
server) to UTF-8. So the problem seems to happen with the POST data in the
request when going from ISO to UTF using POST method... having ran my head
against this encoding wall too long now, I'm hoping to get some clues from
you guys...

/Riffla


Christopher Schultz-2 wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Riffla,
> 
> riffla wrote:
>> And I guess that the form bean attributes is set prior to any code in the
>> form class, so that you can't set the characterEncoding in the form class
>> (at, for example, the beginning of initialize() method), or...?
> 
> Correct. You have to use a Filter to do this. Search the archives for
> "character encoding filter" and you should find a lot of information,
> including the code for the filter itself (or at least a link to the code).
> 
> - -chris
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGA8QY9CaO5/Lv0PARAn7AAJ4vklzBFWc2/m2Go6EHv68eGoe6LQCgrNcX
> peNhqvneyvg8Fsmbn99nwEI=
> =LZZ+
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Character-encoding...-tf297678.html#a9634418
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: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't work

2007-03-23 Thread Tapio Holopainen

Not in showcase.

- Tapio

On Fri, 23 Mar 2007 14:16:53 +0200, Musachy Barroso <[EMAIL PROTECTED]>  
wrote:


Did you try enabling the dojo debug? (/>)


musachy

On 3/23/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote:


Hi,

I deployed struts2-showcase-2.0.6.war to Tomcat 5.5. AJAX samples worked
just fine. Then I deployed the same .war to Websphere 6.1. None of the
AJAX samples worked. Other samples seems to work normally. Could it be
that Websphere doesn't handle baseRelativePath in djConfig the same way
than Tomcat does? There is no exceptions in Websphere log.


 // Dojo configuration
 djConfig = {
 baseRelativePath: "/S2Show/struts/dojo",
 isDebug: false,
 bindEncoding: "UTF-8",
 debugAtAllCosts: true // not needed, but allows the Venkman
debugger to work with the includes
 };






Has anyone else had same problems? Any suggestion for solution?

Regards,

- Tapio



-
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: auto-refreshing stock price

2007-03-23 Thread Musachy Barroso

That would be the same thing as the timee on the div tag,  DWR has a polling
mode, which uses a timer, and another mode(comet? not sure about the name)
that keeps an open connection with the client, and "pushes" the data.

musachy

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


How about using Prototype.js?  It has a class specifically designed for
AJAX
"timer" behavior.

On 3/23/07, YagNesh <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> We have been trying to create a trading portfolio page which lists about
> 20
> stocks with prices.
> We need that stock price to be refreshed every 20-30 seconds after
> fetching
> the price from server, indirectly from database.
>
> I had tried to use Struts2 tag one per stock data, but it
overload
> the server with lots of requests and fails.
>
> Please provide some guideline with AJAX approach to refresh.
>
> Thank you
> --
> View this message in context:
>
http://www.nabble.com/auto-refreshing-stock-price-tf3451963.html#a9629081
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Scott
[EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


[S2 Tip] Use namespaces to organize your application into logical "modules"

2007-03-23 Thread Ted Husted

Many Struts applications contain hundreds of pages. To help organize
large applications, the Struts configuration is designed around the
notions of "packages" and "namespaces". Each package can set its own
defaults, including a namespace setting.


   

   
   /example/HelloWorld.jsp
   

   
   


Use the namespace attribute to create logical modules or units of work
within an application, each with its own identifying prefix. In an
accounting application, the actions relating to "payables" might be in
one namespace, and actions relating to "receivables" in another.

Namespaces avoid conflicts between action names. Each namespace can
have it's own "menu" or "help" action, each with its own
implementation. While the prefix appears in the browser URI, the tags
are "namespace aware", so the namespace prefix does not need to be
embedded in forms and links.

-HTH, Ted


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



Re: auto-refreshing stock price

2007-03-23 Thread stanlick

How about using Prototype.js?  It has a class specifically designed for AJAX
"timer" behavior.

On 3/23/07, YagNesh <[EMAIL PROTECTED]> wrote:



Hi,

We have been trying to create a trading portfolio page which lists about
20
stocks with prices.
We need that stock price to be refreshed every 20-30 seconds after
fetching
the price from server, indirectly from database.

I had tried to use Struts2 tag one per stock data, but it overload
the server with lots of requests and fails.

Please provide some guideline with AJAX approach to refresh.

Thank you
--
View this message in context:
http://www.nabble.com/auto-refreshing-stock-price-tf3451963.html#a9629081
Sent from the Struts - User mailing list archive at Nabble.com.


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





--
Scott
[EMAIL PROTECTED]


treenode.ftl not found

2007-03-23 Thread manoelp

Hi folks!

I have this code below :

 
  


  


But, when i execute my application, it happens this exception below :


java.io.FileNotFoundException: Template /template/xhtml/treenode.ftl not
found.
at freemarker.template.Configuration.getTemplate(Configuration.java:489)
at freemarker.template.Configuration.getTemplate(Configuration.java:452)
at
org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:96)
at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
at 
org.apache.struts2.components.ClosingUIBean.start(ClosingUIBean.java:58)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspx_meth_s_treenode_2(RelatoriosIndice_jsp.java:206)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspx_meth_s_treenode_0(RelatoriosIndice_jsp.java:157)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspx_meth_s_tree_0(RelatoriosIndice_jsp.java:113)
at
org.apache.jsp.AGR.report.RelatoriosIndice_jsp._jspService(RelatoriosIndice_jsp.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)


Please, somebody can help me?


Manoel Pimentel
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/treenode.ftl-not-found-tf3453432.html#a9633563
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: Websphere 6.1: Ajax samples in struts2-showcase-2.0.6.war doesn't work

2007-03-23 Thread Musachy Barroso

Did you try enabling the dojo debug? ()

musachy

On 3/23/07, Tapio Holopainen <[EMAIL PROTECTED]> wrote:


Hi,

I deployed struts2-showcase-2.0.6.war to Tomcat 5.5. AJAX samples worked
just fine. Then I deployed the same .war to Websphere 6.1. None of the
AJAX samples worked. Other samples seems to work normally. Could it be
that Websphere doesn't handle baseRelativePath in djConfig the same way
than Tomcat does? There is no exceptions in Websphere log.


 // Dojo configuration
 djConfig = {
 baseRelativePath: "/S2Show/struts/dojo",
 isDebug: false,
 bindEncoding: "UTF-8",
 debugAtAllCosts: true // not needed, but allows the Venkman
debugger to work with the includes
 };






Has anyone else had same problems? Any suggestion for solution?

Regards,

- Tapio



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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: Character encoding...

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Riffla,

riffla wrote:
> And I guess that the form bean attributes is set prior to any code in the
> form class, so that you can't set the characterEncoding in the form class
> (at, for example, the beginning of initialize() method), or...?

Correct. You have to use a Filter to do this. Search the archives for
"character encoding filter" and you should find a lot of information,
including the code for the filter itself (or at least a link to the code).

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGA8QY9CaO5/Lv0PARAn7AAJ4vklzBFWc2/m2Go6EHv68eGoe6LQCgrNcX
peNhqvneyvg8Fsmbn99nwEI=
=LZZ+
-END PGP SIGNATURE-

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



Re: [JSP] drag drop capability in a jsp is this possible ?

2007-03-23 Thread Angelo zerr

No problem.
I'm happy that JSControlsTags please you.

Regards Angelo

2007/3/23, temp temp <[EMAIL PROTECTED]>:


It works Thank you very much.Sorry for  the complain It  was  my mistake i
just downloaded src after ur reply i downloaded use  cases   i was able
to  run the jsp it works.
  Once again tahnk you very much.
  Thanks & Regards

  Angelo zerr <[EMAIL PROTECTED]> wrote:  There is not another
documentation (it's my project).
have you try to deploy the war jscontrolstags-usecases-1.0-b1.war? You
sample with swap.
I'm agree with you documentation is poor, I will try write it.

See swap3.jsp. You have an sample. have you insert javascript and css in
your page?



src="../js/scriptaculous/prototype.js">

src="../js/scriptaculous/effects.js">

src="../js/scriptaculous/dragdrop.js">


src="../js/selectable/selectable.js">

src="../js/selectable/subsdraggable.js">

src="../js/jscontrolstags-swap.js">



type="text/css" />

Angelo


2007/3/22, temp temp :
>
> I downloaded  all the required files  but they donot have a  sample
> application with which I can play  make changes test  results   they
have
> jsp code   which is not complete and  no tutorial on  how to get
> started  are there any other   providers with good documentation and
> examples ?
>   Thanks & Regards
>
>
> Angelo zerr  wrote:  Have you download usecase
> jscontrolstags-usecases-1.0-b1? You can found it
> http://sourceforge.net/project/showfiles.php?group_id=175409
>
> Swap document is here
> http://jscontrolstags.sourceforge.net/controls/swap/swap.html
>
> Angelo
>
> 2007/3/22, temp temp :
> >
> > I tried  swap control  in my application but it does not work  the
site
> > has no documentation, no complte examples can  I get
> more  assistance  with
> > this ?
> >   Thanks & Regards
> >
> >
> >
> >
> > Angelo zerr  wrote:  Hi,
> > you can see JSControlsTags project at
> > http://jscontrolstags.sourceforge.net/
> > .
> > There is Swap control (see at
> > http://jscontrolstags.sourceforge.net/controls/swap/swap.html)
> > which is enable to swap items select to another select with drag/drop.
> > it is based on Scriptaculous and Proototype.
> >
> > You can see demo at
> > http://jscontrolstags.sourceforge.net/demo/swap/swap.html
> >
> > Regards Angelo
> >
> > 2007/3/22, temp temp :
> > >
> > > I want  a jsp page which should have the capability to  drag and
> > > drop   in the sense suppose I have a two list
> > >
> > >
> > >
> > > California -- CAColorado -- COConneticut -- CN
> > >
> > >
> > > C -- CAC -- CO Conneticut -- CN
> > >
> > >
> > >I want to shuffle the  contents  of the lists using  mouse
drag
> > > and  drop  is it possible   ?   and  any hints of achieving this ?
> > >Thanks & Regards
> > >
> > >
> > >
> > >
> > > -
> > > No need to miss a message. Get email on-the-go
> > > with Yahoo! Mail for Mobile. Get started.
> >
> >
> >
> > -
> > TV dinner still cooling?
> > Check out "Tonight's Picks" on Yahoo! TV.
>
>
>
> -
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.



-
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo!
Games.


Re: auto-refreshing stock price

2007-03-23 Thread Lance
You could use DWR's reverse ajax which allows the server to push data to 
clients rather than the clients polling which can be inefficient.


http://getahead.org/dwr/changelog/dwr20m1
http://getahead.org/dwr/download

YagNesh wrote:

Hi,

We have been trying to create a trading portfolio page which lists about 20
stocks with prices.
We need that stock price to be refreshed every 20-30 seconds after fetching
the price from server, indirectly from database.

I had tried to use Struts2 tag one per stock data, but it overload
the server with lots of requests and fails.

Please provide some guideline with AJAX approach to refresh.

Thank you
  



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



Re: Character encoding...

2007-03-23 Thread riffla

And I guess that the form bean attributes is set prior to any code in the
form class, so that you can't set the characterEncoding in the form class
(at, for example, the beginning of initialize() method), or...?

Joe Germuska wrote:
> 
>>I had problem with character encoding in my web application. I was trying
to
>>display Polish characters using UTF-8 but data from forms was not getting
in
>>proper format to the business layer. I managed to solve this by setting
>>filter  which does request.setCharacterEncoding(encoding); But the
question
>>is: WHY it didn't work when I was using request.setCharacterEncoding() in
>>Action's execute() method??
> 
> The request's character encoding can only be set before the input 
> values are read.  By the time the Action executes, the ActionForm has 
> already been populated, which means that the request has already 
> deserialized the request parameters from bytes on the wire into Java 
> Strings.  Thus, a ServletFilter is the best way to make sure that 
> this value is set at the earliest possible time.
> 
> Hope this helps,
>   Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]  
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Character-encoding...-tf297678.html#a9630453
Sent from the Struts - User mailing list archive at Nabble.com.


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



struts2+spring+hibernate multiple datasources

2007-03-23 Thread Philippe Le Gal
Hi,

I'm looking for an example for the access of multiple datasources (mysql) on 
different mysql servers.

Is the solution to put many declarations of  in 
applicationcontext.xml?

Thx in advance

Philippe

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



MySQL under App server 9 with NetBeans 5.5

2007-03-23 Thread Balazs Michnay
Hi,

I've been trying to get MySQL working in my Struts app with NetBeans 5.5 and 
Sun Java System Application Server 9. I think I'm almost there, because 
NetBeans can succsesfully connect to MySQL, but my app can't. I read tons of 
posts in the mailing list archive but I couldn't solve the problem.
Please take a look at what I'd done so far:

- MySQL 5 is downloaded and installed
- MySQL Driver (MySQL Connector/J) was downloaded 
(mysql-connector-java-5.0.5-bin.jar) and copied to the application server's lib 
directory (for me it's C:\Sun\SDK\lib\)
- the following lines are present in my struts-config.xml file:









Each time I deploy and launch my app, I get an error: "HTTP Status 404 - 
Servlet action is not available".
The interesting part is that if I try to connect to the built-in "derby" 
datasource, the error message won't come up.
What am I missing?
The other thing I don't understand is why do I need to specify a database name 
in the

line of the datasource tag? Does it mean that one data-source tag can connect 
to one database? So if I have let's say 5 databases, do I need to have 5 
data-source tags in my struts-config.xml?

Thanks for your replies.

Regards,

  Michnay


 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

Re: UTF-8 encoding problems

2007-03-23 Thread riffla

Hi

I'm having the same problem, seems like putting the strings in a POST
request is transforming the characters (in my case the swedish ä, and
son forth, is erroneous).
I use Struts, Tomcat and Tiles (and Ant to build and distribute) and I have
also set the encoding in both JSP's, request object in Action class, and
besides that, I've set the connector property to UTF-8, but nothing seems to
help

Noticed a couple of things:
- Using ISO-8859-1 and POST method in calling JSP (sending the request),
makes the characters mis transformes, but using GET or UTF-8 in calling JSP
works fine...

any other suggestions???

/Rickard


Christopher Schultz-2 wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Elilia,
> 
> Emilia Ipate wrote:
>> You also have to enable your server to accept UTF-8, for WSAS I had to
>> use: -D client.encoding.override=UTF-8
> 
> For Apache Tomcat, this is done by adding URIEncoding="UTF-8" to your
>  element in server.xml.
> 
> - -chris
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGAqHH9CaO5/Lv0PARAqwUAKCKG606HcWItx95IfJGgtUxKsOWPACdGuqe
> eR4cbMGuc40Af5RHFBr/mcM=
> =UdA1
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/UTF-8-encoding-problems-tf3447563.html#a9630451
Sent from the Struts - User mailing list archive at Nabble.com.


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