Re: [OT] Recommend a hosting company

2009-09-22 Thread erikweber
Maybe when I become rich and famous. HAHAHAHAHA :)

-Original Message-
>From: Musachy Barroso 
>Sent: Sep 22, 2009 8:58 PM
>To: Struts Users Mailing List 
>Subject: Re: [OT] Recommend a hosting company
>
>> don't get it for $20-$40 per month :)
>
>true story :)
>
>On Tue, Sep 22, 2009 at 5:56 PM, Greg Lindholm  wrote:
>> I would also recommend EC2, we use it for our production servers, but you
>> don't get it for $20-$40 per month :)
>>
>> On Tue, Sep 22, 2009 at 5:47 PM, Musachy Barroso  wrote:
>>
>>> I would recommend you to look into Amazon EC2(biased opinion)
>>>
>>> musachy
>>>


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



Re: [OT] Recommend a hosting company

2009-09-22 Thread Musachy Barroso
> don't get it for $20-$40 per month :)

true story :)

On Tue, Sep 22, 2009 at 5:56 PM, Greg Lindholm  wrote:
> I would also recommend EC2, we use it for our production servers, but you
> don't get it for $20-$40 per month :)
>
> On Tue, Sep 22, 2009 at 5:47 PM, Musachy Barroso  wrote:
>
>> I would recommend you to look into Amazon EC2(biased opinion)
>>
>> musachy
>>
>> On Tue, Sep 22, 2009 at 11:01 AM,   wrote:
>> > Hello. I have been inactive on this list for years but used to post a lot
>> before I moved primarily into Swing development.
>> >
>> > I need a good place to set up a web application. I have modest needs but
>> also some special needs perhaps:
>> >
>> > 1) Tomcat.
>> > 2) JDBC database (MySQL would be great but it could be something else).
>> > 3) Modest bandwidth consumption -- we're talking maybe a couple hundred
>> users, maybe 20 simultaneous users, maybe a few MB of upload/download per
>> day per user.
>> > 4) Modest drive space -- lots of text files but no large files. 100-200
>> MB should do fine for starters.
>> > 5) And this might be the atypical requirement, and is the most important
>> -- I need a host that offers me nice management of the file system. What I
>> am really wanting to do is use a terminal to SSH in, and use something like
>> bash to set up users and groups, create directories and manage file and
>> directory permissions with chmod and chown, etc., and also read and write to
>> the filesystem with objects running in Tomcat. What I don't want is some GUI
>> over FTP. I am hoping this doesn't necessarily mean I need a dedicated
>> hosting plan ($$$).
>> > 6) I can't afford more than $20-$40 per month.
>> > 7) An XMPP server would be awesome but is not required.
>> >
>> > If any of you are using a hosting company that offers something like
>> this, please post up with your recommendation or feel free to e-mail me
>> directly.
>> >
>> > Thanks in advance and have a nice day,
>> > Erik
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



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

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



Re: [OT] Recommend a hosting company

2009-09-22 Thread Greg Lindholm
I would also recommend EC2, we use it for our production servers, but you
don't get it for $20-$40 per month :)

On Tue, Sep 22, 2009 at 5:47 PM, Musachy Barroso  wrote:

> I would recommend you to look into Amazon EC2(biased opinion)
>
> musachy
>
> On Tue, Sep 22, 2009 at 11:01 AM,   wrote:
> > Hello. I have been inactive on this list for years but used to post a lot
> before I moved primarily into Swing development.
> >
> > I need a good place to set up a web application. I have modest needs but
> also some special needs perhaps:
> >
> > 1) Tomcat.
> > 2) JDBC database (MySQL would be great but it could be something else).
> > 3) Modest bandwidth consumption -- we're talking maybe a couple hundred
> users, maybe 20 simultaneous users, maybe a few MB of upload/download per
> day per user.
> > 4) Modest drive space -- lots of text files but no large files. 100-200
> MB should do fine for starters.
> > 5) And this might be the atypical requirement, and is the most important
> -- I need a host that offers me nice management of the file system. What I
> am really wanting to do is use a terminal to SSH in, and use something like
> bash to set up users and groups, create directories and manage file and
> directory permissions with chmod and chown, etc., and also read and write to
> the filesystem with objects running in Tomcat. What I don't want is some GUI
> over FTP. I am hoping this doesn't necessarily mean I need a dedicated
> hosting plan ($$$).
> > 6) I can't afford more than $20-$40 per month.
> > 7) An XMPP server would be awesome but is not required.
> >
> > If any of you are using a hosting company that offers something like
> this, please post up with your recommendation or feel free to e-mail me
> directly.
> >
> > Thanks in advance and have a nice day,
> > Erik
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-22 Thread Musachy Barroso
can you debug it and see what is actually null? It seems like a bug.
That being said, I am building 2.1.8 as we speak, so if you are
planning to upgrade, it might be worth waiting a bit.

musachy

On Tue, Sep 22, 2009 at 3:44 PM, Anandkris  wrote:
> OgnlValueStack



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

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



Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-22 Thread Anandkris

Hi,
I recently upgraded struts from 2.0.11 to 2.1.6 for our App. Almost
everything works. But I recently got a nullPointerException on the select
tag though it was working fine for 2.0.11. "children" is a list and I am
trying to set name and age for each element in the children list.

In the following code s:textfield tag works fine but the s:select tag throws
a nullpointer exception. 

  
  
 /// 
children[%{#stat.index}] works great here   
  
 
children[%{#stat.index}].beginAge throws null pointer  
 
   
 



And the exception is : 

SEVERE: Servlet.service() for servlet jsp threw exception  
java.lang.NullPointerException  
   at
com.opensymphony.xwork2.ognl.OgnlValueStack.checkForInvalidProperties(OgnlValueStack.java:298)
  
at
com.opensymphony.xwork2.ognl.OgnlValueStack.findValue(OgnlValueStack.java:237)  
 at
org.apache.struts2.components.Component.findValue(Component.java:248)  
   at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:773)  
   at org.apache.struts2.components.UIBean.end(UIBean.java:510)  
 at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
  
 at
org.apache.jsp.WEB_002dINF.pages.app.individualChildcareExperience_jsp._jspx_meth_s_005fselect_005f0(individualChildcareExperience_jsp.java:1257)
  
 at
org.apache.jsp.WEB_002dINF.pages.app.individualChildcareExperience_jsp._jspx_meth_s_005fiterator_005f0(individualChildcareExperience_jsp.java:962)
  
 at
org.apache.jsp.WEB_002dINF.pages.app.individualChildcareExperience_jsp._jspx_meth_s_005fform_005f0(individualChildcareExperience_jsp.java:315)
  
at
org.apache.jsp.WEB_002dINF.pages.app.individualChildcareExperience_jsp._jspService(individualChildcareExperience_jsp.java:132)
  
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)  
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) 
 
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)




If I change children[#stat.index].beginAge.id to
children(#stat.index).beginAge.id the page loads fine .
it renders  it as children(0).beginAge.id  and obviously it didn't set the
selected value. :(
Its clearly seen that select tag doesn't like "[ ]" anymore.



Anybody has any clue about what I am missing here. Or what would be the
workaround??
Thanks,
Anand. 

-- 
View this message in context: 
http://www.nabble.com/Nullpointerexception-s%3Aselect-tag-on-name%3D%22alist--status.index-.something%22-tp25530928p25530928.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: [OT] Recommend a hosting company

2009-09-22 Thread Musachy Barroso
I would recommend you to look into Amazon EC2(biased opinion)

musachy

On Tue, Sep 22, 2009 at 11:01 AM,   wrote:
> Hello. I have been inactive on this list for years but used to post a lot 
> before I moved primarily into Swing development.
>
> I need a good place to set up a web application. I have modest needs but also 
> some special needs perhaps:
>
> 1) Tomcat.
> 2) JDBC database (MySQL would be great but it could be something else).
> 3) Modest bandwidth consumption -- we're talking maybe a couple hundred 
> users, maybe 20 simultaneous users, maybe a few MB of upload/download per day 
> per user.
> 4) Modest drive space -- lots of text files but no large files. 100-200 MB 
> should do fine for starters.
> 5) And this might be the atypical requirement, and is the most important -- I 
> need a host that offers me nice management of the file system. What I am 
> really wanting to do is use a terminal to SSH in, and use something like bash 
> to set up users and groups, create directories and manage file and directory 
> permissions with chmod and chown, etc., and also read and write to the 
> filesystem with objects running in Tomcat. What I don't want is some GUI over 
> FTP. I am hoping this doesn't necessarily mean I need a dedicated hosting 
> plan ($$$).
> 6) I can't afford more than $20-$40 per month.
> 7) An XMPP server would be awesome but is not required.
>
> If any of you are using a hosting company that offers something like this, 
> please post up with your recommendation or feel free to e-mail me directly.
>
> Thanks in advance and have a nice day,
> Erik
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



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

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



Re: [OT] Recommend a hosting company

2009-09-22 Thread Paweł Wielgus
Hi all,
i'm using server pronto and rose hosting,
one of the cheapest solutions.

Best greetings,
Paweł Wielgus.


2009/9/22  :
> Thanks for all the replies folks!
>
>
> -Original Message-
>>From: erikwe...@mindspring.com
>>Sent: Sep 22, 2009 2:01 PM
>>To: user@struts.apache.org
>>Subject: [OT] Recommend a hosting company
>>
>>>
>>I need a good place to set up a web application.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: [OT] Recommend a hosting company

2009-09-22 Thread erikweber
Thanks for all the replies folks!


-Original Message-
>From: erikwe...@mindspring.com
>Sent: Sep 22, 2009 2:01 PM
>To: user@struts.apache.org
>Subject: [OT] Recommend a hosting company
>
>>
>I need a good place to set up a web application.

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



Missing configuration resource for path /org/apache/struts/tiles/chain-config.xml when deploying on jboss using struts 1.3.8

2009-09-22 Thread David Sharp
I'm hoping someone here can help me figure out what is going on with
my project.  I have an ear structured as follows (apologies for the
ASCII art tree diagrams):

edalrs.ear
|-lib
|  |-struts-core.jar
|  |-struts-extras.jar
|-edalrs-web.war

The war file has the following structure:

edalrs-web.war
|-WEB-INF
|  |-lib
| |-struts-taglib.jar
| |-struts-tiles.jar
|-META-INF
  |-MANIFEST.MF

The  MANIFEST.MF has the following classpath entries:
lib/struts-core.jar lib/struts-extras.jar

When deployed on websphere, the application runs fine.  When deployed
on jboss, I get the message:  "Missing configuration resource for path
/org/apache/struts/tiles/chain-config.xml".

I've modified the ActionServlet class to spit out some debugging data
and here is what I got:
14:23:12,019 INFO splitting and resolving paths:
'/org/apache/struts/tiles/chain-config.xml'
14:23:12,019 INFO Unable to locate
/org/apache/struts/tiles/chain-config.xml in the servlet context,
trying classloader.
14:23:12,019 INFO calling internal.getMessage()
14:23:12,035 WARN  Resource
org/apache/struts/action/ActionResources_en_US.properties Not Found.
14:23:12,051 WARN  Resource
org/apache/struts/action/ActionResources_en.properties Not Found.
14:23:12,051 INFO ClassLoader =
org.jboss.web.tomcat.service.webctxloader$encloa...@35543554
14:23:12,051 INFO this.getClass().getClassLoader() =
org.jboss.mx.loading.unifiedclassload...@65126512{
url=file:/C:/softwaredistribution/jboss-4.2.3.GA/server/default/tmp/deploy/tmp49506eDalrs-ear-0.0.1-SNAPSHOT.ear
,addedOrder=47}
14:23:12,051 INFO Path = /org/apache/struts/tiles/chain-config.xml
14:23:12,051 INFO Msg = 'Missing configuration resource for path
/org/apache/struts/tiles/chain-config.xml'

I have specified a  in my jboss-app.xml to turn on
parent-delegation as follows:


   
com.acme.edalrs:loader=eDalrs-ear.ear
   
java2ParentDelegation=true
   


If I'm not mistaken, the web classloader should delegate to its parent
(the EAR classloader) to try and load the resources.  The parent
should fail, and then the web classloader should load the file out of
the WEB-INF/lib/struts-tiles.jar.

This isn't happening, and it's driving me crazy.  I appreciate any
help anyone can shed.  The only reason we have the taglib and tiles
jars in the war is so that the .tld files for the tag libraries can be
found.  I've tried extracting the TLDs from the jar, and placing them
in WEB-INF, and then placing the taglib and tiles jars into the ear
with the rest of struts, but the behavior is the same.

Thanks,
Dave
---
There are 10 types of people in the world, those that understand
binary, and those that don't.

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



Re: ActionMapper Wiki doc error

2009-09-22 Thread Wes Wannemacher
We had renamed the redirectAction result a while back but a lot of
that logic was hard-coded into the default action mapper. I had it
open to fix some bug (https://issues.apache.org/struts/browse/WW-3129)
so I went ahead and updated it to use the camelCase as well. This
changed happened after 2.1.6 and it will be in the release notes of
2.1.8 (if 2.1.8 is the next GA version).

-Wes

On Tue, Sep 22, 2009 at 2:58 PM, Greg Lindholm  wrote:
> Nope. I'm running 2.1.6 and looking at the 2.1.6 DefaultActionMapper source
> code and it says "redirect-action".
>
> There were other changes like the "redirectAction" result name that happened
> as part of the 2.1.6 release.
>
> On Tue, Sep 22, 2009 at 1:56 PM, Musachy Barroso  wrote:
>
>> wasn't that changed before 2.1.6?
>>
>> On Tue, Sep 22, 2009 at 10:25 AM, Greg Lindholm 
>> wrote:
>> > OK so this is a change.  Since the wiki isn't versioned I suggest it
>> needs a
>> > note explaining in 2.1.6 and earlier the prefix is "redirect-action".
>> (I
>> > also hope this change gets noted in the release notes when it is released
>> > since it will break existing code.)
>> >
>> >
>> > On Tue, Sep 22, 2009 at 12:50 PM, Wes Wannemacher 
>> wrote:
>> >
>> >> This changed between 2.1.6 and now... I updated DefaultActionMapper to
>> >> use redirectAction (since everywhere else refers to it that way). The
>> >> docs are wrong because it is a snippet that points to the source.
>> >>
>> >> -Wes
>> >>
>> >> On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso 
>> >> wrote:
>> >> > Hi Greg, I could edit it, but I want to get this permission problem
>> >> > sorted out, can you try again and let me know if you can edit?
>> >> >
>> >> > thanks
>> >> > musachy
>> >> >
>> >> > On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm <
>> greg.lindh...@gmail.com>
>> >> wrote:
>> >> >> The wiki doc for ActionMapper [1] appears to have an error: the
>> Redirect
>> >> >> Action prefix is documented as "redirectAction" where the 2.1.6
>> >> >> DefaultActionMapper source code and javadoc [2] has it as
>> >> "redirect-action".
>> >> >>
>> >> >> I tried to edit and fix the wiki but permission was denied.
>> >> >> Can someone with permission fix the wiki please.
>> >> >>
>> >> >>
>> >> >> [1] http://cwiki.apache.org/WW/actionmapper.html
>> >> >> [2]
>> >> >>
>> >>
>> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> > For additional commands, e-mail: user-h...@struts.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Wes Wannemacher
>> >>
>> >> Head Engineer, WanTii, Inc.
>> >> Need Training? Struts, Spring, Maven, Tomcat...
>> >> Ask me for a quote!
>> >>
>> >> -
>> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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



Re: [OT] Recommend a hosting company

2009-09-22 Thread Greg Lindholm
Take a look at slicehost http://www.slicehost.com/ I'm using it for a small
side project and it's been rock solid.

On Tue, Sep 22, 2009 at 2:01 PM,  wrote:

> Hello. I have been inactive on this list for years but used to post a lot
> before I moved primarily into Swing development.
>
> I need a good place to set up a web application. I have modest needs but
> also some special needs perhaps:
>
> 1) Tomcat.
> 2) JDBC database (MySQL would be great but it could be something else).
> 3) Modest bandwidth consumption -- we're talking maybe a couple hundred
> users, maybe 20 simultaneous users, maybe a few MB of upload/download per
> day per user.
> 4) Modest drive space -- lots of text files but no large files. 100-200 MB
> should do fine for starters.
> 5) And this might be the atypical requirement, and is the most important --
> I need a host that offers me nice management of the file system. What I am
> really wanting to do is use a terminal to SSH in, and use something like
> bash to set up users and groups, create directories and manage file and
> directory permissions with chmod and chown, etc., and also read and write to
> the filesystem with objects running in Tomcat. What I don't want is some GUI
> over FTP. I am hoping this doesn't necessarily mean I need a dedicated
> hosting plan ($$$).
> 6) I can't afford more than $20-$40 per month.
> 7) An XMPP server would be awesome but is not required.
>
> If any of you are using a hosting company that offers something like this,
> please post up with your recommendation or feel free to e-mail me directly.
>
> Thanks in advance and have a nice day,
> Erik
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: ActionMapper Wiki doc error

2009-09-22 Thread Greg Lindholm
Nope. I'm running 2.1.6 and looking at the 2.1.6 DefaultActionMapper source
code and it says "redirect-action".

There were other changes like the "redirectAction" result name that happened
as part of the 2.1.6 release.

On Tue, Sep 22, 2009 at 1:56 PM, Musachy Barroso  wrote:

> wasn't that changed before 2.1.6?
>
> On Tue, Sep 22, 2009 at 10:25 AM, Greg Lindholm 
> wrote:
> > OK so this is a change.  Since the wiki isn't versioned I suggest it
> needs a
> > note explaining in 2.1.6 and earlier the prefix is "redirect-action".
> (I
> > also hope this change gets noted in the release notes when it is released
> > since it will break existing code.)
> >
> >
> > On Tue, Sep 22, 2009 at 12:50 PM, Wes Wannemacher 
> wrote:
> >
> >> This changed between 2.1.6 and now... I updated DefaultActionMapper to
> >> use redirectAction (since everywhere else refers to it that way). The
> >> docs are wrong because it is a snippet that points to the source.
> >>
> >> -Wes
> >>
> >> On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso 
> >> wrote:
> >> > Hi Greg, I could edit it, but I want to get this permission problem
> >> > sorted out, can you try again and let me know if you can edit?
> >> >
> >> > thanks
> >> > musachy
> >> >
> >> > On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm <
> greg.lindh...@gmail.com>
> >> wrote:
> >> >> The wiki doc for ActionMapper [1] appears to have an error: the
> Redirect
> >> >> Action prefix is documented as "redirectAction" where the 2.1.6
> >> >> DefaultActionMapper source code and javadoc [2] has it as
> >> "redirect-action".
> >> >>
> >> >> I tried to edit and fix the wiki but permission was denied.
> >> >> Can someone with permission fix the wiki please.
> >> >>
> >> >>
> >> >> [1] http://cwiki.apache.org/WW/actionmapper.html
> >> >> [2]
> >> >>
> >>
> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >> >
> >> > -
> >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> > For additional commands, e-mail: user-h...@struts.apache.org
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Wes Wannemacher
> >>
> >> Head Engineer, WanTii, Inc.
> >> Need Training? Struts, Spring, Maven, Tomcat...
> >> Ask me for a quote!
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


[OT] Recommend a hosting company

2009-09-22 Thread erikweber
Hello. I have been inactive on this list for years but used to post a lot 
before I moved primarily into Swing development.

I need a good place to set up a web application. I have modest needs but also 
some special needs perhaps:

1) Tomcat.
2) JDBC database (MySQL would be great but it could be something else).
3) Modest bandwidth consumption -- we're talking maybe a couple hundred users, 
maybe 20 simultaneous users, maybe a few MB of upload/download per day per user.
4) Modest drive space -- lots of text files but no large files. 100-200 MB 
should do fine for starters.
5) And this might be the atypical requirement, and is the most important -- I 
need a host that offers me nice management of the file system. What I am really 
wanting to do is use a terminal to SSH in, and use something like bash to set 
up users and groups, create directories and manage file and directory 
permissions with chmod and chown, etc., and also read and write to the 
filesystem with objects running in Tomcat. What I don't want is some GUI over 
FTP. I am hoping this doesn't necessarily mean I need a dedicated hosting plan 
($$$).
6) I can't afford more than $20-$40 per month.
7) An XMPP server would be awesome but is not required.

If any of you are using a hosting company that offers something like this, 
please post up with your recommendation or feel free to e-mail me directly.

Thanks in advance and have a nice day,
Erik

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



Re: ActionMapper Wiki doc error

2009-09-22 Thread Musachy Barroso
O_o

On Tue, Sep 22, 2009 at 10:57 AM, McDowell, Paula
 wrote:
> Figures it came directly from LS. . . I want to send an email too.
>
> -Original Message-
> From: Musachy Barroso [mailto:musa...@gmail.com]
> Sent: Tuesday, September 22, 2009 12:57 PM
> To: Struts Users Mailing List
> Subject: Re: ActionMapper Wiki doc error
>
> wasn't that changed before 2.1.6?
>
> On Tue, Sep 22, 2009 at 10:25 AM, Greg Lindholm  
> wrote:
>> OK so this is a change.  Since the wiki isn't versioned I suggest it needs a
>> note explaining in 2.1.6 and earlier the prefix is "redirect-action".   (I
>> also hope this change gets noted in the release notes when it is released
>> since it will break existing code.)
>>
>>
>> On Tue, Sep 22, 2009 at 12:50 PM, Wes Wannemacher  wrote:
>>
>>> This changed between 2.1.6 and now... I updated DefaultActionMapper to
>>> use redirectAction (since everywhere else refers to it that way). The
>>> docs are wrong because it is a snippet that points to the source.
>>>
>>> -Wes
>>>
>>> On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso 
>>> wrote:
>>> > Hi Greg, I could edit it, but I want to get this permission problem
>>> > sorted out, can you try again and let me know if you can edit?
>>> >
>>> > thanks
>>> > musachy
>>> >
>>> > On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm 
>>> wrote:
>>> >> The wiki doc for ActionMapper [1] appears to have an error: the Redirect
>>> >> Action prefix is documented as "redirectAction" where the 2.1.6
>>> >> DefaultActionMapper source code and javadoc [2] has it as
>>> "redirect-action".
>>> >>
>>> >> I tried to edit and fix the wiki but permission was denied.
>>> >> Can someone with permission fix the wiki please.
>>> >>
>>> >>
>>> >> [1] http://cwiki.apache.org/WW/actionmapper.html
>>> >> [2]
>>> >>
>>> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>>> >
>>> > -
>>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> > For additional commands, e-mail: user-h...@struts.apache.org
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Wes Wannemacher
>>>
>>> Head Engineer, WanTii, Inc.
>>> Need Training? Struts, Spring, Maven, Tomcat...
>>> Ask me for a quote!
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
> Private and confidential as detailed here: 
> http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the 
> link, please e-mail sender.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



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

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



RE: ActionMapper Wiki doc error

2009-09-22 Thread McDowell, Paula
Figures it came directly from LS. . . I want to send an email too.

-Original Message-
From: Musachy Barroso [mailto:musa...@gmail.com]
Sent: Tuesday, September 22, 2009 12:57 PM
To: Struts Users Mailing List
Subject: Re: ActionMapper Wiki doc error

wasn't that changed before 2.1.6?

On Tue, Sep 22, 2009 at 10:25 AM, Greg Lindholm  wrote:
> OK so this is a change.  Since the wiki isn't versioned I suggest it needs a
> note explaining in 2.1.6 and earlier the prefix is "redirect-action".   (I
> also hope this change gets noted in the release notes when it is released
> since it will break existing code.)
>
>
> On Tue, Sep 22, 2009 at 12:50 PM, Wes Wannemacher  wrote:
>
>> This changed between 2.1.6 and now... I updated DefaultActionMapper to
>> use redirectAction (since everywhere else refers to it that way). The
>> docs are wrong because it is a snippet that points to the source.
>>
>> -Wes
>>
>> On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso 
>> wrote:
>> > Hi Greg, I could edit it, but I want to get this permission problem
>> > sorted out, can you try again and let me know if you can edit?
>> >
>> > thanks
>> > musachy
>> >
>> > On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm 
>> wrote:
>> >> The wiki doc for ActionMapper [1] appears to have an error: the Redirect
>> >> Action prefix is documented as "redirectAction" where the 2.1.6
>> >> DefaultActionMapper source code and javadoc [2] has it as
>> "redirect-action".
>> >>
>> >> I tried to edit and fix the wiki but permission was denied.
>> >> Can someone with permission fix the wiki please.
>> >>
>> >>
>> >> [1] http://cwiki.apache.org/WW/actionmapper.html
>> >> [2]
>> >>
>> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
>> >>
>> >
>> >
>> >
>> > --
>> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



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

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


Private and confidential as detailed here: 
http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the 
link, please e-mail sender.

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



Re: ActionMapper Wiki doc error

2009-09-22 Thread Musachy Barroso
wasn't that changed before 2.1.6?

On Tue, Sep 22, 2009 at 10:25 AM, Greg Lindholm  wrote:
> OK so this is a change.  Since the wiki isn't versioned I suggest it needs a
> note explaining in 2.1.6 and earlier the prefix is "redirect-action".   (I
> also hope this change gets noted in the release notes when it is released
> since it will break existing code.)
>
>
> On Tue, Sep 22, 2009 at 12:50 PM, Wes Wannemacher  wrote:
>
>> This changed between 2.1.6 and now... I updated DefaultActionMapper to
>> use redirectAction (since everywhere else refers to it that way). The
>> docs are wrong because it is a snippet that points to the source.
>>
>> -Wes
>>
>> On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso 
>> wrote:
>> > Hi Greg, I could edit it, but I want to get this permission problem
>> > sorted out, can you try again and let me know if you can edit?
>> >
>> > thanks
>> > musachy
>> >
>> > On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm 
>> wrote:
>> >> The wiki doc for ActionMapper [1] appears to have an error: the Redirect
>> >> Action prefix is documented as "redirectAction" where the 2.1.6
>> >> DefaultActionMapper source code and javadoc [2] has it as
>> "redirect-action".
>> >>
>> >> I tried to edit and fix the wiki but permission was denied.
>> >> Can someone with permission fix the wiki please.
>> >>
>> >>
>> >> [1] http://cwiki.apache.org/WW/actionmapper.html
>> >> [2]
>> >>
>> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
>> >>
>> >
>> >
>> >
>> > --
>> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



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

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



Re: How to prevent validations from running?

2009-09-22 Thread Dennis Atkinson
Greg,

Thanks for the reply.  In going through the tag reference, I find I can also 
say "action=SomeOther" and that will also redirect to that action class without 
hitting the execute() method.  I didn't know about putting a redirect-action in 
the "name" field so I'm going to try a few different things to see how 
everything reacts.

Thanks again.
Dennis







From: Greg Lindholm 
To: Struts Users Mailing List 
Sent: Tuesday, September 22, 2009 11:30:29 AM
Subject: Re: How to prevent validations from running?

If you want to avoid going the the "execute" method then you can use a
feature of DefaultActionMapper [1] and the submit button like this:



This will cause a redirect to another action, in this example "CodeList".

Or you can specify an alternate "execute" Method or Action on the submit
button [2]





[1]
http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
[2] http://struts.apache.org/2.1.6/docs/submit.html


On Tue, Sep 22, 2009 at 11:10 AM, Dennis Atkinson <
dennisatkinson...@yahoo.com> wrote:

> Hi Greg.
>
> I am running Struts2; sorry I did not include that.
>
> The button is not causing a redirect; tt is invoking the "execute" method
> in the action class, and then the action class determines that  button was
> pressed, and then returns the string "list", which the struts.xml file then
> uses to redirect to another action class.  Except that never happens because
> the validation is done first.
>
>
>
>
>
> 
> From: Greg Lindholm 
> To: Struts Users Mailing List 
> Sent: Tuesday, September 22, 2009 10:49:06 AM
> Subject: Re: How to prevent validations from running?
>
> Are you running Struts 1 or 2?
>
> How is your button causing a redirect?
>
> On Tue, Sep 22, 2009 at 10:00 AM, Dennis Atkinson <
> dennisatkinson...@yahoo.com> wrote:
>
> > Hi all.
> >
> > I have a data entry page with a button to redirect to another page.
> >  Problem is, pressing that button causes all validations to run on every
> > field in the page.  I want to immediately get away from that page without
> > having to enter data.
> >
> > I know that if I redirect to the "input" method, the validations don't
> run.
> >  But whatever other method I call, the validations are always run.  Could
> > someone tell me how to do this?  Are there other methods I could call?
>  Or
> > is there a parameter I can set that I haven't found yet?
> >
> > Thanks in advance,
> > Dennis
> >
> >
> >
>
>
>
>
>



  

Re: ActionMapper Wiki doc error

2009-09-22 Thread Greg Lindholm
OK so this is a change.  Since the wiki isn't versioned I suggest it needs a
note explaining in 2.1.6 and earlier the prefix is "redirect-action".   (I
also hope this change gets noted in the release notes when it is released
since it will break existing code.)


On Tue, Sep 22, 2009 at 12:50 PM, Wes Wannemacher  wrote:

> This changed between 2.1.6 and now... I updated DefaultActionMapper to
> use redirectAction (since everywhere else refers to it that way). The
> docs are wrong because it is a snippet that points to the source.
>
> -Wes
>
> On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso 
> wrote:
> > Hi Greg, I could edit it, but I want to get this permission problem
> > sorted out, can you try again and let me know if you can edit?
> >
> > thanks
> > musachy
> >
> > On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm 
> wrote:
> >> The wiki doc for ActionMapper [1] appears to have an error: the Redirect
> >> Action prefix is documented as "redirectAction" where the 2.1.6
> >> DefaultActionMapper source code and javadoc [2] has it as
> "redirect-action".
> >>
> >> I tried to edit and fix the wiki but permission was denied.
> >> Can someone with permission fix the wiki please.
> >>
> >>
> >> [1] http://cwiki.apache.org/WW/actionmapper.html
> >> [2]
> >>
> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
> >>
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: ActionMapper Wiki doc error

2009-09-22 Thread Greg Lindholm
Ok, it appears I can edit now. Thanks.

On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso  wrote:

> Hi Greg, I could edit it, but I want to get this permission problem
> sorted out, can you try again and let me know if you can edit?
>
> thanks
> musachy
>
> On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm 
> wrote:
> > The wiki doc for ActionMapper [1] appears to have an error: the Redirect
> > Action prefix is documented as "redirectAction" where the 2.1.6
> > DefaultActionMapper source code and javadoc [2] has it as
> "redirect-action".
> >
> > I tried to edit and fix the wiki but permission was denied.
> > Can someone with permission fix the wiki please.
> >
> >
> > [1] http://cwiki.apache.org/WW/actionmapper.html
> > [2]
> >
> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: ActionMapper Wiki doc error

2009-09-22 Thread Wes Wannemacher
This changed between 2.1.6 and now... I updated DefaultActionMapper to
use redirectAction (since everywhere else refers to it that way). The
docs are wrong because it is a snippet that points to the source.

-Wes

On Tue, Sep 22, 2009 at 12:10 PM, Musachy Barroso  wrote:
> Hi Greg, I could edit it, but I want to get this permission problem
> sorted out, can you try again and let me know if you can edit?
>
> thanks
> musachy
>
> On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm  
> wrote:
>> The wiki doc for ActionMapper [1] appears to have an error: the Redirect
>> Action prefix is documented as "redirectAction" where the 2.1.6
>> DefaultActionMapper source code and javadoc [2] has it as "redirect-action".
>>
>> I tried to edit and fix the wiki but permission was denied.
>> Can someone with permission fix the wiki please.
>>
>>
>> [1] http://cwiki.apache.org/WW/actionmapper.html
>> [2]
>> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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



RE: FreeMarker Tags Help - setup

2009-09-22 Thread Martin Gainty

Greg

Matt is a intelligent resource (and quite friendly too) i would try to get 
ahold of Matt directly
m...@raibledesigns.com

feel free to pingback for any questions/comments

thanks,
Martin Gainty 
__ 
Please do not alter/modify or disrupt this transmission. Thank You



> Subject: RE: FreeMarker Tags Help - setup
> Date: Tue, 22 Sep 2009 10:11:07 -0400
> From: greg.slo...@usdoj.gov
> To: user@struts.apache.org
> 
> MMM... no, the result is a jsp, not ftl. I suppose I cannot mix and
> match, can I now? i.e. use jsp page and <@ tags on it?
> 
> 
> On a separate note, I suppose my biggest problem is that I am using the
> "app-fuse'd" version of Struts upgraded to 2.1.6 and somewhere along the
> customization line that Matt did, the tags get lost. I am changing a
> subject a bit, but does anyone has a successful how-to to completely
> change Struts version in Appfuse? We did it, but still cannot use the
> new struts-prepare and struts-execute filters. 
> 
> Thank you
> Greg
> 
> 
> -Original Message-
> From: j alex [mailto:strutstwou...@gmail.com] 
> Sent: Monday, September 21, 2009 1:06 PM
> To: Struts Users Mailing List
> Subject: Re: FreeMarker Tags Help - setup
> 
> I assume you are using  >your-ftl-file.ftl
> ..i had no problems passing an extra param to the tag and accessing it
> in
> the custom theme FTL
> 
> 
> On Fri, Sep 18, 2009 at 10:39 PM, Slonim, Greg (USAEO) <
> greg.slo...@usdoj.gov> wrote:
> 
> > Hello,
> >
> > Setup: struts2 (2.1.6) with Spring (2.5)
> >
> > I Refer to the article in the docs
> >
> > http://struts.apache.org/2.1.6/docs/freemarker-tags.html
> >
> > We are trying to use FreeMarker tags with a custom theme in order to
> > pass extra parameters to the tag which the tag does not define
> (section
> > of the above doc "Using inline attributes with templates")
> >
> > When I attempt to use the markup
> >
> > <@s.form action="updatePerson">
> ><@s.textfield label="First name" name="firstName"
> > extraParamName="blah"/>
> ><@s.submit value="Update"/>
> > 
> >
> > The JSP does not recognize this as a tag at all; all of the above is
> > printed to HTML verbatim. Is there anything I need to do, namespace
> > definition, etc. to make the engine understand that I use tags and not
> > literals? I understand that FreeMarker tags are extensions that are
> > shipped with default Struts distro, right?
> >
> > Thank you very much
> >
> > Greg
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Bing brings you health info from trusted sources.
http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1

Re: ActionMapper Wiki doc error

2009-09-22 Thread Musachy Barroso
Hi Greg, I could edit it, but I want to get this permission problem
sorted out, can you try again and let me know if you can edit?

thanks
musachy

On Tue, Sep 22, 2009 at 8:50 AM, Greg Lindholm  wrote:
> The wiki doc for ActionMapper [1] appears to have an error: the Redirect
> Action prefix is documented as "redirectAction" where the 2.1.6
> DefaultActionMapper source code and javadoc [2] has it as "redirect-action".
>
> I tried to edit and fix the wiki but permission was denied.
> Can someone with permission fix the wiki please.
>
>
> [1] http://cwiki.apache.org/WW/actionmapper.html
> [2]
> http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
>



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

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



ActionMapper Wiki doc error

2009-09-22 Thread Greg Lindholm
The wiki doc for ActionMapper [1] appears to have an error: the Redirect
Action prefix is documented as "redirectAction" where the 2.1.6
DefaultActionMapper source code and javadoc [2] has it as "redirect-action".

I tried to edit and fix the wiki but permission was denied.
Can someone with permission fix the wiki please.


[1] http://cwiki.apache.org/WW/actionmapper.html
[2]
http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html


Re: How to prevent validations from running?

2009-09-22 Thread Greg Lindholm
If you want to avoid going the the "execute" method then you can use a
feature of DefaultActionMapper [1] and the submit button like this:



This will cause a redirect to another action, in this example "CodeList".

Or you can specify an alternate "execute" Method or Action on the submit
button [2]





[1]
http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
[2] http://struts.apache.org/2.1.6/docs/submit.html


On Tue, Sep 22, 2009 at 11:10 AM, Dennis Atkinson <
dennisatkinson...@yahoo.com> wrote:

> Hi Greg.
>
> I am running Struts2; sorry I did not include that.
>
> The button is not causing a redirect; tt is invoking the "execute" method
> in the action class, and then the action class determines that  button was
> pressed, and then returns the string "list", which the struts.xml file then
> uses to redirect to another action class.  Except that never happens because
> the validation is done first.
>
>
>
>
>
> 
> From: Greg Lindholm 
> To: Struts Users Mailing List 
> Sent: Tuesday, September 22, 2009 10:49:06 AM
> Subject: Re: How to prevent validations from running?
>
> Are you running Struts 1 or 2?
>
> How is your button causing a redirect?
>
> On Tue, Sep 22, 2009 at 10:00 AM, Dennis Atkinson <
> dennisatkinson...@yahoo.com> wrote:
>
> > Hi all.
> >
> > I have a data entry page with a button to redirect to another page.
> >  Problem is, pressing that button causes all validations to run on every
> > field in the page.  I want to immediately get away from that page without
> > having to enter data.
> >
> > I know that if I redirect to the "input" method, the validations don't
> run.
> >  But whatever other method I call, the validations are always run.  Could
> > someone tell me how to do this?  Are there other methods I could call?
>  Or
> > is there a parameter I can set that I haven't found yet?
> >
> > Thanks in advance,
> > Dennis
> >
> >
> >
>
>
>
>
>


Re: How to prevent validations from running?

2009-09-22 Thread Dennis Atkinson
Hi Greg.

I am running Struts2; sorry I did not include that.

The button is not causing a redirect; tt is invoking the "execute" method in 
the action class, and then the action class determines that  button was 
pressed, and then returns the string "list", which the struts.xml file then 
uses to redirect to another action class.  Except that never happens because 
the validation is done first.






From: Greg Lindholm 
To: Struts Users Mailing List 
Sent: Tuesday, September 22, 2009 10:49:06 AM
Subject: Re: How to prevent validations from running?

Are you running Struts 1 or 2?

How is your button causing a redirect?

On Tue, Sep 22, 2009 at 10:00 AM, Dennis Atkinson <
dennisatkinson...@yahoo.com> wrote:

> Hi all.
>
> I have a data entry page with a button to redirect to another page.
>  Problem is, pressing that button causes all validations to run on every
> field in the page.  I want to immediately get away from that page without
> having to enter data.
>
> I know that if I redirect to the "input" method, the validations don't run.
>  But whatever other method I call, the validations are always run.  Could
> someone tell me how to do this?  Are there other methods I could call?  Or
> is there a parameter I can set that I haven't found yet?
>
> Thanks in advance,
> Dennis
>
>
>



  

Re: How to prevent validations from running?

2009-09-22 Thread Greg Lindholm
Are you running Struts 1 or 2?

How is your button causing a redirect?

On Tue, Sep 22, 2009 at 10:00 AM, Dennis Atkinson <
dennisatkinson...@yahoo.com> wrote:

> Hi all.
>
> I have a data entry page with a button to redirect to another page.
>  Problem is, pressing that button causes all validations to run on every
> field in the page.  I want to immediately get away from that page without
> having to enter data.
>
> I know that if I redirect to the "input" method, the validations don't run.
>  But whatever other method I call, the validations are always run.  Could
> someone tell me how to do this?  Are there other methods I could call?  Or
> is there a parameter I can set that I haven't found yet?
>
> Thanks in advance,
> Dennis
>
>
>


RE: FreeMarker Tags Help - setup

2009-09-22 Thread Slonim, Greg (USAEO)
MMM... no, the result is a jsp, not ftl. I suppose I cannot mix and
match, can I now? i.e. use jsp page and <@ tags on it?


On a separate note, I suppose my biggest problem is that I am using the
"app-fuse'd" version of Struts upgraded to 2.1.6 and somewhere along the
customization line that Matt did, the tags get lost. I am changing a
subject a bit, but does anyone has a successful how-to to completely
change Struts version in Appfuse? We did it, but still cannot use the
new struts-prepare and struts-execute filters. 

Thank you
Greg


-Original Message-
From: j alex [mailto:strutstwou...@gmail.com] 
Sent: Monday, September 21, 2009 1:06 PM
To: Struts Users Mailing List
Subject: Re: FreeMarker Tags Help - setup

I assume you are using your-ftl-file.ftl
..i had no problems passing an extra param to the tag and accessing it
in
the custom theme FTL


On Fri, Sep 18, 2009 at 10:39 PM, Slonim, Greg (USAEO) <
greg.slo...@usdoj.gov> wrote:

> Hello,
>
> Setup: struts2 (2.1.6) with Spring (2.5)
>
> I Refer to the article in the docs
>
> http://struts.apache.org/2.1.6/docs/freemarker-tags.html
>
> We are trying to use FreeMarker tags with a custom theme in order to
> pass extra parameters to the tag which the tag does not define
(section
> of the above doc "Using inline attributes with templates")
>
> When I attempt to use the markup
>
> <@s.form action="updatePerson">
><@s.textfield label="First name" name="firstName"
> extraParamName="blah"/>
><@s.submit value="Update"/>
> 
>
> The JSP does not recognize this as a tag at all; all of the above is
> printed to HTML verbatim. Is there anything I need to do, namespace
> definition, etc. to make the engine understand that I use tags and not
> literals? I understand that FreeMarker tags are extensions that are
> shipped with default Struts distro, right?
>
> Thank you very much
>
> Greg
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



How to prevent validations from running?

2009-09-22 Thread Dennis Atkinson
Hi all.

I have a data entry page with a button to redirect to another page.  Problem 
is, pressing that button causes all validations to run on every field in the 
page.  I want to immediately get away from that page without having to enter 
data.

I know that if I redirect to the "input" method, the validations don't run.  
But whatever other method I call, the validations are always run.  Could 
someone tell me how to do this?  Are there other methods I could call?  Or is 
there a parameter I can set that I haven't found yet?

Thanks in advance,
Dennis


  

RE: FreeMarker Tags Help - setup

2009-09-22 Thread Slonim, Greg (USAEO)
Hello and thank you for help. FYI for everyone

Struts 2.1.6 uses a new set of filters (see showcase app) instead of old
FilterDispatcher and cleanup. According to this
(http://www.nabble.com/Struts-2.1.6%2C-Sitemesh---FreeMarkerPageFilter-t
o21739507.html#a21789128)

Mushachy recommends using new filters. I did try that, but it seem to
conflict to my Conversation Scope interceptor (something that sits
between session and request and keeps conversation going). I have not
yet been able to use FreeMarker tags inside the JSP.

Thank you again

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Friday, September 18, 2009 3:38 PM
To: Struts Users Mailing List
Subject: RE: FreeMarker Tags Help - setup


Good Afternoon Greg

here is an example of forms using freemarker templates in
chat\chatLogin.ftl


Showcase - Chat - Login
<@s.head />


<@s.actionerror />
<@s.actionmessage />
<@s.fielderror />
<@s.form action="login" namespace="/chat" method="POST">
<@s.textfield name="name" label="Name" required="true" />
<@s.submit/>




//in order for the container to render this script one needs to define
the FreemarkerPageFilter in web.xml
//here is mine (transcribed from showcase/WEB-INF/web.xml)



//BTW my non-xhtml (simple theme) ftl files are located in
//struts2-showcase-2.1.6\WEB-INF\classes\template\simple

//my xhtml ftl files are located on 
//struts2-showcase-2.1.6\WEB-INF\classes\template\xhtml

//the location of this folder are resolved by 3 parameters defined in
/org/apache/struts2/default.properties
### Standard UI theme
### Change this to reflect which path should be used for JSP control tag
templates by default
struts.ui.theme=simple

location of template dir
struts.ui.templateDir=template

#sets the default template type. Either ftl, vm, or jsp
struts.ui.templateSuffix=ftlthis is one solution and I am sure there
other available solutions from the group monitoring this list

Does this help?
Martin Gainty 
__ 
Disclaimer and Confidentiality Notice
Please be respectful of the rights of transmitter and recipient and do
not alter/modify or obstruct this transmission. Thank You




> Subject: FreeMarker Tags Help - setup
> Date: Fri, 18 Sep 2009 13:09:31 -0400
> From: greg.slo...@usdoj.gov
> To: user@struts.apache.org
> 
> Hello,
> 
> Setup: struts2 (2.1.6) with Spring (2.5)
> 
> I Refer to the article in the docs 
> 
> http://struts.apache.org/2.1.6/docs/freemarker-tags.html
> 
> We are trying to use FreeMarker tags with a custom theme in order to
> pass extra parameters to the tag which the tag does not define
(section
> of the above doc "Using inline attributes with templates")
> 
> When I attempt to use the markup 
> 
> <@s.form action="updatePerson">
> <@s.textfield label="First name" name="firstName"
> extraParamName="blah"/>
> <@s.submit value="Update"/>
> 
> 
> The JSP does not recognize this as a tag at all; all of the above is
> printed to HTML verbatim. Is there anything I need to do, namespace
> definition, etc. to make the engine understand that I use tags and not
> literals? I understand that FreeMarker tags are extensions that are
> shipped with default Struts distro, right?
> 
> Thank you very much
> 
> Greg
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/

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



RE: Struts2 - OGNL - access bean property in model object

2009-09-22 Thread Raghuveer.V
 

Hi Chris,

I am able to resolve the issue by initializing the Bean object in Model when
page loads.

 

Action class

//-- baen initialize --//

this.cBookingFactorsModel.setCBookingFactorsBean(new CBookingFactorsBean());

 

JSP Page:

 



 

But the error on server console is still seen.

 

WARNING: Error setting value

ognl.OgnlException: target is null for setProperty(null,
"salesAfterDiscount", [Ljava.lang.String;@e6235d)

at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)

 

 

Any idea

  _  

From: Raghuveer.V [mailto:raghuve...@infotechsw.com] 
Sent: Tuesday, September 22, 2009 12:10 PM
To: 'musom...@aol.com'; 'user@struts.apache.org'
Subject: RE: Struts2 - OGNL - access bean property in model object

 

Hi Chris,

 

I tested it even in similar way still the data is not set when clicked saved
button and I get following error in console.

 

WARNING: Error setting value

ognl.OgnlException: target is null for setProperty(null,
"salesAfterDiscount", [Ljava.lang.String;@e6235d)

at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)

 

 

 

 

 

 

JSP Page:



 

Struts.xml:

 



  

  

  

  

session

cBookingFactorsModel



  com.test.model.CBookingFactorsModel



  

  

  

  

  

  /jsp/eacModelInputFactors.jsp

  /jsp/eacModelInputFactors.jsp

  /jsp/eacModelInputFactors.jsp  

 

Error:

Sep 22, 2009 11:51:05 AM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn

WARNING: Error setting value

ognl.OgnlException: target is null for setProperty(null,
"salesAfterDiscount", [Ljava.lang.String;@e6235d)

at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)

at ognl.ASTProperty.setValueBody(ASTProperty.java:101)

at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)

at ognl.SimpleNode.setValue(SimpleNode.java:246)

at ognl.ASTChain.setValueBody(ASTChain.java:172)

at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)

at ognl.SimpleNode.setValue(SimpleNode.java:246)

at ognl.Ognl.setValue(Ognl.java:476)

at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)

at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155
)

at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143
)

at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(Para
metersInterceptor.java:273)

at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame
tersInterceptor.java:187)

at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:87)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame
tersInterceptor.java:195)

at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:87)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(St
aticParametersInterceptor.java:148)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterce
ptor.java:93)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInt
erceptor.java:235)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDr
ivenInterceptor.java:89)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(S
copedModelDrivenInterceptor.java:128)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(Prof
ilingActivationInterceptor.java:104)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(Debu
ggingInterceptor.java:267)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingIn
terceptor.java:126)

at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

   

Struts2 - Custom listner class/plugin during application startup

2009-09-22 Thread Raghuveer.V
I have a struts1 application calls a custom plugin during application
startup.

 

I am migrating struts1 to struts2.1.6.

How and what are the possible ways struts1 custom plugin code can be
implemented in struts2

 



Re: Problem with the jetty-maven plugin - error on hot redeployoment

2009-09-22 Thread wild_oscar

6.x worked well. By speaking with one of the Jetty developers I understood
(sort of) what the issue was: there is/was an error in their Maven
repository that identified a dead branch (beta3) as the latest version of
the plugin (and the latest gets picked by default). After identifying the
*actual* latest 7.0.0 plugin version, the problem vanished.

Nevertheless, thank you for the input dusty!


dusty wrote:
> 
> That is strange.  I use the older 6.x jetty maven plugin and the restarts
> work well.  The stacktrace is not very helpful in this case.  You may have
> more luck on a maven/jetty mailing list.
> 
> 
> 
> wild_oscar wrote:
>> 
>> Hi,
>> 
>> I'm developing using a Maven modular project (one module for the
>> persistence layer, another for the webapp) and using the maven-jetty
>> plugin in development.
>> 
>> However, I'm getting a strange error: when I make a change to the code
>> jetty (version 7.0.0) automatically restarts (as it should). However, it
>> throws the following error:
>> 
>> 2009-09-21 10:04:13.555::WARN:  EXCEPTION 
>> java.lang.ClassNotFoundException:
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>  at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>  at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadRealmClass(ClassRealm.java:174)
>>  at
>> org.codehaus.plexus.classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java:67)
>>  at
>> org.codehaus.plexus.classworlds.strategy.ForeignStrategy.loadClass(ForeignStrategy.java:39)
>>  at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
>>  at
>> org.codehaus.plexus.classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java:73)
>>  at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
>>  at
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:347)
>>  at
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:300)
>>  at org.eclipse.jetty.util.Loader.loadClass(Loader.java:90)
>>  at org.eclipse.jetty.util.Loader.loadClass(Loader.java:70)
>>  at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:75)
>>  at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:58)
>>  at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>  at
>> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
>>  at
>> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
>>  at
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:923)
>>  at
>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
>>  at
>> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:345)
>>  at
>> org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:89)
>>  at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>  at
>> org.mortbay.jetty.plugin.JettyRunMojo.restartWebApp(JettyRunMojo.java:410)
>>  at
>> org.mortbay.jetty.plugin.JettyRunMojo$1.filesChanged(JettyRunMojo.java:373)
>>  at org.eclipse.jetty.util.Scanner.reportBulkChanges(Scanner.java:485)
>>  at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:351)
>>  at org.eclipse.jetty.util.Scanner.scan(Scanner.java:279)
>>  at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:231)
>>  at java.util.TimerThread.mainLoop(Timer.java:512)
>>  at java.util.TimerThread.run(Timer.java:462)
>> 2009-09-21 10:04:13.557::WARN:  Failed startup of context
>> jettywebappcont...@49b09282@49b09282/,file:/home/malmeida/workspaceGestaoDoc/gs-information/webinterface/src/main/webapp/,/home/malmeida/workspaceGestaoDoc/gs-information/webinterface/src/main/webapp
>> javax.servlet.UnavailableException:
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>>  at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:81)
>>  at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:58)
>>  at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>  at
>> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
>>  at
>> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
>>  at
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:923)
>>  at
>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
>>  at
>> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java: