Re: synchronization problem

2016-04-09 Thread Yaragalla Muralidhar
thank you Doug Erickson. I will look into other areas and will check where
the problem is. Thank you so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Sun, Apr 10, 2016 at 11:02 AM, Doug Erickson <erick...@part.net> wrote:

> The code you've shown won't allow simultaneous executions of the DAO
> method. Either you've left some important details out of the sample, or you
> have other code accessing the DAO.
>
> This has nothing to do with Struts. The synchronization is implemented in
> lower layers.
>
> > On Apr 9, 2016, at 8:11 PM, Yaragalla Muralidhar <
> yaragallamur...@gmail.com> wrote:
> >
> > hi,
> >  if you look at my code in the service class i have written a
> synchronized
> > block. what i am asking is, whether my code does the synchronization
> > properly or does it have to be changed?
> >
> > I know that struts2 creates a new action class per thread. so there is
> > every possibility that two threads can execute the same service layer
> > method at a time. I want to avoid that so i have written synchronized
> block
> > in my service class as shown in my first post.
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >
> > On Sat, Apr 9, 2016 at 11:18 PM, Sreekanth S. Nair <
> > sreekanth.n...@egovernments.org> wrote:
> >
> >> Struts2 won't make your custom class threadsafe unless your code is
> >> threadsafe, synchronized(this) or synchronized method can be used in
> your
> >> service implementation if you think your service class is not
> threadsafe.
> >> Usually Service or DAO layer should be written threadsafe, don't know
> about
> >> your DAO or Service is threadsafe to make a clear comment on it. Action
> >> classes are thread safe since it creates new instance per request.
> >>
> >>
> >> 
> >>
> >> On Sat, Apr 9, 2016 at 10:06 PM, Yaragalla Muralidhar <
> >> yaragallamur...@gmail.com> wrote:
> >>
> >>> Hi,
> >>>
> >>> I have developed a web application using struts 2. In my struts 2
> >>> action class i am calling the service layer and written the
> >> synchronization
> >>> code as below in the service layer. Does this really gets synchronized?
> >> Is
> >>> there any problem in my synchronization code?
> >>>
> >>>
> >>>
> >>> *The following is my action class:-*
> >>>
> >>>
> >>>
> >>> public class AbcAction extends ActionSupport{
> >>>
> >>> private AbcService ser=new AbcServiceImpl(); //AbcService is an
> >>> Interface
> >>>
> >>>
> >>>
> >>> public String execute(){
> >>>
> >>> ser.createNewRegistration();
> >>>
> >>> return "SUCCESS";
> >>>
> >>> }
> >>>
> >>>
> >>>
> >>> }
> >>>
> >>>
> >>>
> >>> *The following is my service Impl class:-*
> >>>
> >>>
> >>>
> >>> public class AbcServiceImpl implements AbcService{
> >>>
> >>> private AbcDao dao=new AbcDaoImpl();
> >>>
> >>>
> >>>
> >>> public void  .createNewRegistration(){
> >>>
> >>> synchronized(AbcServiceImpl.class){
> >>>
> >>> dao.createTheRegistration();
> >>>
> >>> }
> >>>
> >>> }
> >>>
> >>> }
> >>>
> >>>
> >>>
> >>> by writing the above code i assume that no two threads can run the
> >>> "dao.createTheRegistration()"
> >>> method at the same time. but when we analyze the logs i observed this
> is
> >>> not happening. Two threads are able to execute the method at the same
> >> time.
> >>> What is the problem in my code?
> >>>
> >>>
> >>>
> >>> *Thanks and Regards,*
> >>> Muralidhar Yaragalla.
> >>>
> >>> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: synchronization problem

2016-04-09 Thread Yaragalla Muralidhar
hi,
  if you look at my code in the service class i have written a synchronized
block. what i am asking is, whether my code does the synchronization
properly or does it have to be changed?

I know that struts2 creates a new action class per thread. so there is
every possibility that two threads can execute the same service layer
method at a time. I want to avoid that so i have written synchronized block
in my service class as shown in my first post.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Sat, Apr 9, 2016 at 11:18 PM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:

> Struts2 won't make your custom class threadsafe unless your code is
> threadsafe, synchronized(this) or synchronized method can be used in your
> service implementation if you think your service class is not threadsafe.
> Usually Service or DAO layer should be written threadsafe, don't know about
> your DAO or Service is threadsafe to make a clear comment on it. Action
> classes are thread safe since it creates new instance per request.
>
>
> ----
>
> On Sat, Apr 9, 2016 at 10:06 PM, Yaragalla Muralidhar <
> yaragallamur...@gmail.com> wrote:
>
> > Hi,
> >
> >  I have developed a web application using struts 2. In my struts 2
> > action class i am calling the service layer and written the
> synchronization
> > code as below in the service layer. Does this really gets synchronized?
> Is
> > there any problem in my synchronization code?
> >
> >
> >
> > *The following is my action class:-*
> >
> >
> >
> > public class AbcAction extends ActionSupport{
> >
> >  private AbcService ser=new AbcServiceImpl(); //AbcService is an
> > Interface
> >
> >
> >
> >  public String execute(){
> >
> >  ser.createNewRegistration();
> >
> >  return "SUCCESS";
> >
> >  }
> >
> >
> >
> > }
> >
> >
> >
> > *The following is my service Impl class:-*
> >
> >
> >
> > public class AbcServiceImpl implements AbcService{
> >
> > private AbcDao dao=new AbcDaoImpl();
> >
> >
> >
> > public void  .createNewRegistration(){
> >
> > synchronized(AbcServiceImpl.class){
> >
> > dao.createTheRegistration();
> >
> > }
> >
> > }
> >
> > }
> >
> >
> >
> > by writing the above code i assume that no two threads can run the
> > "dao.createTheRegistration()"
> > method at the same time. but when we analyze the logs i observed this is
> > not happening. Two threads are able to execute the method at the same
> time.
> > What is the problem in my code?
> >
> >
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >
>


synchronization problem

2016-04-09 Thread Yaragalla Muralidhar
Hi,

 I have developed a web application using struts 2. In my struts 2
action class i am calling the service layer and written the synchronization
code as below in the service layer. Does this really gets synchronized? Is
there any problem in my synchronization code?



*The following is my action class:-*



public class AbcAction extends ActionSupport{

 private AbcService ser=new AbcServiceImpl(); //AbcService is an
Interface



 public String execute(){

 ser.createNewRegistration();

 return "SUCCESS";

 }



}



*The following is my service Impl class:-*



public class AbcServiceImpl implements AbcService{

private AbcDao dao=new AbcDaoImpl();



public void  .createNewRegistration(){

synchronized(AbcServiceImpl.class){

dao.createTheRegistration();

}

}

}



by writing the above code i assume that no two threads can run the
"dao.createTheRegistration()"
method at the same time. but when we analyze the logs i observed this is
not happening. Two threads are able to execute the method at the same time.
What is the problem in my code?



*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *


Re: Error with chekboxlist

2015-10-17 Thread Yaragalla Muralidhar
Hi,
  Any help on this will be appreciated. Thanks in advance.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Fri, Oct 16, 2015 at 2:58 PM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:

> Hi ,
> the following is the code in jsp.
>
> 
>
> samples is an arraylist of strings.
>
> when i put the above tag i am getting the following error. Please help me
> to rectify this.
>
>
> Error on line 30, column 13 in template/simple/checkboxlist.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
> The problematic instruction:
> --
> ==> assignment: itemKey=stack.findValue('top') [on line 30, column 13 in
> template/simple/checkboxlist.ftl]
>  in user-directive s.iterator [on line 25, column 1 in
> template/simple/checkboxlist.ftl]
>  in include "/${parameters.templateDir}/simple/checkboxlist.ftl" [on line
> 24, column 1 in template/xhtml/checkboxlist.ftl]
> --
>
> Java backtrace for programmers:
> --
> freemarker.core.InvalidReferenceException: Error on line 30, column 13 in
> template/simple/checkboxlist.ftl
> stack.findValue('top') is undefined.
> It cannot be assigned to itemKey
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
>
>
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
>


Re: Error with chekboxlist

2015-10-17 Thread Yaragalla Muralidhar
Hi Lukasz,
   I am using struts 2.3.2.  I am not using outside action.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Sat, Oct 17, 2015 at 8:12 PM, Lukasz Lenart 
wrote:

> 2015-10-17 16:39 GMT+02:00 Jasper Rosenberg
> :
> > I’ve seen this behavior a couple of times over the years, and I’m sorry
> that I can’t recall the exact issue when I’ve tracked it down, but
> basically something is null, probably either the “samples” list, or an
> element in that list.
>
> Maybe it is related to that issue
> https://issues.apache.org/jira/browse/WW-3010
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Error with chekboxlist

2015-10-16 Thread Yaragalla Muralidhar
Hi ,
the following is the code in jsp.



samples is an arraylist of strings.

when i put the above tag i am getting the following error. Please help me
to rectify this.


Error on line 30, column 13 in template/simple/checkboxlist.ftl
stack.findValue('top') is undefined.
It cannot be assigned to itemKey
The problematic instruction:
--
==> assignment: itemKey=stack.findValue('top') [on line 30, column 13 in
template/simple/checkboxlist.ftl]
 in user-directive s.iterator [on line 25, column 1 in
template/simple/checkboxlist.ftl]
 in include "/${parameters.templateDir}/simple/checkboxlist.ftl" [on line
24, column 1 in template/xhtml/checkboxlist.ftl]
--

Java backtrace for programmers:
--
freemarker.core.InvalidReferenceException: Error on line 30, column 13 in
template/simple/checkboxlist.ftl
stack.findValue('top') is undefined.
It cannot be assigned to itemKey
at freemarker.core.Assignment.accept(Assignment.java:111)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.visit(Environment.java:310)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:221)




*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *


Re: [S2] Trouble getting started

2015-09-27 Thread Yaragalla Muralidhar
Hi Chris,
  I have not checked the DTD. But i got this idea from sample struts2 apps.
I dont think there will be a default value for the "name" attribute.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Sun, Sep 27, 2015 at 9:35 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Lucasz,
>
> On 9/27/15 12:02 PM, Christopher Schultz wrote:
> > On 9/27/15 10:08 AM, Lukasz Lenart wrote:
> >> 2015-09-26 23:30 GMT+02:00 Christopher Schultz
> >> :
> >>> I'm working on a fresh project and using Struts 2 for the
> >>> first time. I've been using Struts 1 for more than 10 years and
> >>> I generally know my way around web applications.
> >>>
> >>> I just can't seem to get a fairly simple setup working. I'm
> >>> intending to use XML-based configuration and not
> >>> annotation-based configuration.
> >
> >> The best option is to use one of Maven's archetypes
> >
> >> http://struts.apache.org/docs/struts-2-maven-archetypes.html#Struts2M
> a
> >
> >>
> venArchetypes-Quickstart
> >
> > Yeah...
> >
> > I was trying to avoid using Maven, which to me has too much opaque
> > hand-waving that I neither understand nor control.
> >
> > I have what I believe is a fairly simple test app at this point. I
> > should be able to get it to work without resorting to drastic
> > measures : )
> >
> >>> Here's what I've got:
> >>>
> >>> * Struts 2.3.24.1 * Tomcat 8.0.24 * A simple web app
> >>>
> >>> My web.xml looks like this:   Struts 2
> >>> action filter. 
> >>> struts2
> >>>
> >>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareA
> n
> >
> >>>
> dEx
> >>>
> >>>
> > ecuteFilter
> >>>  actionPackages
> >>> my.package.business 
> >
> >> Not needed, it is useful only when using the Convention plugin
> >
> >>>  
> >>>
> >>>  struts2
> >>> /* 
> >>>
> >>> My struts.xml looks like this:
> >>>
> >>>   >>> PUBLIC "-//Apache Software Foundation//DTD Struts
> >>> Configuration 2.0//EN"
> >>> "http://struts.apache.org/dtds/struts-2.0.dtd;>
> >
> >> Wrong DTD, please use the latest one
> >
> >>  >> Struts Configuration 2.3//EN"
> >> "http://struts.apache.org/dtds/struts-2.3.dtd;>
> >
> > Yep, I updated to this one this morning, after trying to find out
> > the default value for the  "name" attribute. Still no
> > change.
> >
> >>>  
> >>>
> >>> 
> >>>  
> >>> /WEB-INF/list.jsp  
> >>> 
> >>>
> >>> I have a class, my.package.business.ListAction which has a
> >>>
> >>> public String execute()
> >>>
> >>> method. I return "success" from this method (unless an
> >>> exception is thrown). During startup, I can see that
> >>> Struts/XWork is being initialize d:
> >>>
> >>> 26-Sep-2015 17:19:32.613 FINE [localhost-startStop-1]
> >>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.de
> b
> >
> >>>
> ug
> >>>
> >>>
> > Loaded
> >>> list in 'default' package:{ActionConfig //list
> >>> (my.package.business.ListAction) - action -
> >>> file:/path/to/deploy/webapps/ROOT/WEB-INF/classes/struts.xml:
> >>> 9:68}
> >>>
> >>> When I try to access http://localhost:8080/list.action, I get
> >>> a 404 response with nothing in the logs (except the access
> >>> log: request to /list.action resulted in a 404).
> >>>
> >>> I'm sure I'm missing something super simple, here. Can anyone
> >>> offer a suggestion?
> >
> >> Are you sure that you have deployed your app as ROOT.war to
> >> $TOMCAT_HOME/webapps ?
> >
> > It's not deployed as a WAR, but as webapps/ROOT (exploded WAR
> > directory).
>
> For completeness, this is what is contained in my ROOT directory
> ("deploy" is my CATALINA_BASE for Tomcat):
>
> deploy/webapps/ROOT
> deploy/webapps/ROOT/WEB-INF
> deploy/webapps/ROOT/WEB-INF/classes
> deploy/webapps/ROOT/WEB-INF/classes/com
> deploy/webapps/ROOT/WEB-INF/classes/my/project
> deploy/webapps/ROOT/WEB-INF/classes/my/project/business
> deploy/webapps/ROOT/WEB-INF/classes/my/project/business/BaseAction.class
> deploy/webapps/ROOT/WEB-INF/classes/my/project/business/ListAction.class
> deploy/webapps/ROOT/WEB-INF/classes/struts.xml
> deploy/webapps/ROOT/WEB-INF/lib
> deploy/webapps/ROOT/WEB-INF/lib/commons-fileupload-1.3.1.jar
> deploy/webapps/ROOT/WEB-INF/lib/commons-io-2.2.jar
> deploy/webapps/ROOT/WEB-INF/lib/commons-lang3-3.2.jar
> deploy/webapps/ROOT/WEB-INF/lib/commons-logging-1.1.3.jar
> deploy/webapps/ROOT/WEB-INF/lib/commons-logging-api-1.1.jar
> deploy/webapps/ROOT/WEB-INF/lib/freemarker-2.3.22.jar
> deploy/webapps/ROOT/WEB-INF/lib/javassist-3.11.0.GA.jar
> deploy/webapps/ROOT/WEB-INF/lib/ognl-3.0.6.jar
> deploy/webapps/ROOT/WEB-INF/lib/struts2-core-2.3.24.1.jar
> deploy/webapps/ROOT/WEB-INF/lib/xwork-core-2.3.24.1.jar
> deploy/webapps/ROOT/WEB-INF/list.jsp
> deploy/webapps/ROOT/WEB-INF/web.xml
>
> Thanks,
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJWCBPJAAoJEBzwKT+lPKRYeJsP/AlAP3VoL16o2MTV3qau+zNQ
> 

Re: [S2] Trouble getting started

2015-09-26 Thread Yaragalla Muralidhar
Hi Chris,

   Try the following.

 

  /WEB-INF/list.jsp

  

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *

On Sun, Sep 27, 2015 at 3:00 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> All,
>
> I'm working on a fresh project and using Struts 2 for the first time.
> I've been using Struts 1 for more than 10 years and I generally know
> my way around web applications.
>
> I just can't seem to get a fairly simple setup working. I'm intending
> to use XML-based configuration and not annotation-based configuration.
>
> Here's what I've got:
>
> * Struts 2.3.24.1
> * Tomcat 8.0.24
> * A simple web app
>
> My web.xml looks like this:
>   
> 
>   Struts 2 action filter.
> 
> struts2
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx
> ecuteFilter
> 
>   actionPackages
>   my.package.business
> 
> 
>   
>
>   
> struts2
> /*
>   
>
> My struts.xml looks like this:
>
> 
>  Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd;>
>
> 
>   
>
>   
> 
>   /WEB-INF/list.jsp
> 
>   
> 
>
> I have a class, my.package.business.ListAction which has a
>
>   public String execute()
>
> method. I return "success" from this method (unless an exception is
> thrown). During startup, I can see that Struts/XWork is being initialize
> d:
>
> 26-Sep-2015 17:19:32.613 FINE [localhost-startStop-1]
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.debug
> Loaded
> list in 'default' package:{ActionConfig //list
> (my.package.business.ListAction) - action -
> file:/path/to/deploy/webapps/ROOT/WEB-INF/classes/struts.xml:
> 9:68}
>
> When I try to access http://localhost:8080/list.action, I get a 404
> response with nothing in the logs (except the access log: request to
> /list.action resulted in a 404).
>
> I'm sure I'm missing something super simple, here. Can anyone offer a
> suggestion?
>
> Thanks,
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJWBw6LAAoJEBzwKT+lPKRYKAoP/jgtaBdgRYCAKvXlEagne5OM
> RHF+M5jqdzfmpCnEe1071DEAD7Q4wcVtKvkjaYKIczvnfx0ppPShhyE8514Ez+yB
> L7nDw+YunCeZzhAk5KlaDb1piL27r1VrYQ30W9FQTrG2FQc56XW9CEAYz1rOJbZA
> YlzCDWiQPgac/68NLVn2YAO5d+Mf6FBHk20EnMMxp5disRpBSsIiPvpxZQmS0c/k
> eXAJMNFhHeVoUcTWHJGGnM1efV8dKvOXrLgHRPTf3Nts+cIpwRVD2iu70AwjGhdI
> PeNYPb3QMfPJz0PjTTeK418mOa1CMAdUm1O9NqG2dYxdL+/5tlyCC1GsooHtroTp
> gTn8mrQH9FWw87sgw4IL6nEP5x5zFEZJq1NOMOvSQY12in08AAdVFO1XJeAZzhS/
> c1IVrW+zGYGWSra6njGS3uZUDiYOhomSsAkjjNz5G3yjerz6MSCr/rg8cHGnXBdN
> e5eiZhmjfMTewhEsH5IuZKGmtJWPaTwMl9lYtrOMpPX5c4ela0tMluhRocttDKgk
> jlegJsJeaetfMNY66g6kfKCB4DHLeQrghjPWh7Ue5gL611bXYSPZAG58jYzPF+cq
> cR43Qluc1ukaOq/VdnqpYAMQ3pL1kUQDIuYVPOLN6C1YpEFb4o7WiFJbgzoQzJEl
> cQi/KlhVmXmRCFA1qkXH
> =SyBg
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: problem with file upload

2015-09-11 Thread Yaragalla Muralidhar
That is what i am saying. The docs shows how to upload files to action
class but my requirement is different. Please read the problem carefully.
and do help me.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Fri, Sep 11, 2015 at 3:03 PM, Johannes Geppert <jo...@apache.org> wrote:

> Have you already checked the docs?
> https://struts.apache.org/docs/file-upload.html
>
>
> Best Regards
>
> Johannes
>
> #
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
>
> 2015-09-11 11:31 GMT+02:00 Yaragalla Muralidhar <yaragallamur...@gmail.com
> >:
>
> > Hi ,
> >   I know how to upload a file into the action class but my requirement is
> > different. I have a list of pojos where each pojo contains a field called
> > file.
> >
> > for example:-
> >
> > public class Pojo{
> >
> > private int pk;
> > private File file;
> >
> >//setters and getters
> > }
> >
> > In my action class:-
> >
> > public class MyAction{
> >
> >private List pojos;
> >//setter getter
> > }
> >
> > from my jsp when i select a file and say upload it has to set to the Pojo
> > "file" property. how do i do that? I have complete idea of how to upload
> > directly to the action class but now it is different. the file has to go
> > and sit in the Pojo class file property. How can i do this? Please help
> me?
> >
> >
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >
>


problem with file upload

2015-09-11 Thread Yaragalla Muralidhar
Hi ,
  I know how to upload a file into the action class but my requirement is
different. I have a list of pojos where each pojo contains a field called
file.

for example:-

public class Pojo{

private int pk;
private File file;

   //setters and getters
}

In my action class:-

public class MyAction{

   private List pojos;
   //setter getter
}

from my jsp when i select a file and say upload it has to set to the Pojo
"file" property. how do i do that? I have complete idea of how to upload
directly to the action class but now it is different. the file has to go
and sit in the Pojo class file property. How can i do this? Please help me?



*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ *


Re: problem with file upload

2015-09-11 Thread Yaragalla Muralidhar
Hi Johannes,
 it worked. thank u so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Fri, Sep 11, 2015 at 3:12 PM, Johannes Geppert <jo...@apache.org> wrote:

> Does it not work with the point notation? Not sur if this works when you
> are working with list of object.
>
> 
>
> Best Regards
>
> Johannes
>
> #
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
>
> 2015-09-11 11:38 GMT+02:00 Yaragalla Muralidhar <yaragallamur...@gmail.com
> >:
>
> > That is what i am saying. The docs shows how to upload files to action
> > class but my requirement is different. Please read the problem carefully.
> > and do help me.
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> >
> > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> >
> > On Fri, Sep 11, 2015 at 3:03 PM, Johannes Geppert <jo...@apache.org>
> > wrote:
> >
> > > Have you already checked the docs?
> > > https://struts.apache.org/docs/file-upload.html
> > >
> > >
> > > Best Regards
> > >
> > > Johannes
> > >
> > > #
> > > web: http://www.jgeppert.com
> > > twitter: http://twitter.com/jogep
> > >
> > >
> > > 2015-09-11 11:31 GMT+02:00 Yaragalla Muralidhar <
> > yaragallamur...@gmail.com
> > > >:
> > >
> > > > Hi ,
> > > >   I know how to upload a file into the action class but my
> requirement
> > is
> > > > different. I have a list of pojos where each pojo contains a field
> > called
> > > > file.
> > > >
> > > > for example:-
> > > >
> > > > public class Pojo{
> > > >
> > > > private int pk;
> > > > private File file;
> > > >
> > > >//setters and getters
> > > > }
> > > >
> > > > In my action class:-
> > > >
> > > > public class MyAction{
> > > >
> > > >private List pojos;
> > > >//setter getter
> > > > }
> > > >
> > > > from my jsp when i select a file and say upload it has to set to the
> > Pojo
> > > > "file" property. how do i do that? I have complete idea of how to
> > upload
> > > > directly to the action class but now it is different. the file has to
> > go
> > > > and sit in the Pojo class file property. How can i do this? Please
> help
> > > me?
> > > >
> > > >
> > > >
> > > > *Thanks and Regards,*
> > > > Muralidhar Yaragalla.
> > > >
> > > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
> > > >
> > >
> >
>


Re: How to access a map in jsp

2015-08-27 Thread Yaragalla Muralidhar
i have added methods to get the primitive integers as strings in dto. that
solved my problem. thanks Christoph.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Aug 27, 2015 at 2:56 PM, Christoph Nenning 
christoph.nenn...@lex-com.net wrote:

 What are the types of antibioticId and organismTypeId ?
 Are they primitive integers/longs?
 I would add methods to DTOs to get them as Strings.


 I suggest to store the list in a pageScope variable, to make the
 expression better readable.
 There should be no dot before the bracket. You wrote oaMap.[, it should
 be oaMap[



 s:set var=_oaList value=oaMap[antibioticId] /
 s:if test=_oaList.contains(organismTypeId)





 Regards,
 Christoph






 Yaragalla Muralidhar yaragallamur...@gmail.com schrieb am 27.08.2015
 11:17:06:

  From: Yaragalla Muralidhar yaragallamur...@gmail.com
  To: Struts Users Mailing List user@struts.apache.org,
  Date: 27.08.2015 11:17
  Subject: How to access a map in jsp
 
  Hi,
   the following is the code in action class
 
  //_
  private ListAntibioticDto antibiotics;
  private ListOrganismType organismTypes;
  private MapString, ListString oaMap;
  @Override
  public String execute() throws Exception {
  try{
  antibiotics=dtService.getAllAntibioticsList();
  organismTypes=dtService.getAllOrganisumTypes();
  oaMap=dtService.getAllSelectedOrganismTypeAntibiotics();
  }catch(Exception e){
  log.error(e.getMessage(), e);
  return error;
  }
  return SUCCESS;
  }
  //_
 
  The following is the code in jsp
 
  s:iterator  value=antibiotics status=status
  trtds:property value=antibioticName//td
  s:iterator  value=organismTypes
  td style=width:100pxinput type=checkbox s:if
 test=%{oaMap.[((new
  Integer(antibioticId).toString()))].contains((new
  Integer(organismTypeId).toString()))}checked/s:if value='s:property
  value=antibioticId/' style=line-height: 35px; //td
  /s:iterator
  /tr
  /s:iterator
 
  //__
 
  i am trying to get the arrylist from the map and trying to check whether
 it
  contains a particular string but this is not working? is this the right
 way
  to do this? If not how to do this?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 This Email was scanned by Sophos Anti Virus



How to access a map in jsp

2015-08-27 Thread Yaragalla Muralidhar
Hi,
 the following is the code in action class

//_
private ListAntibioticDto antibiotics;
private ListOrganismType organismTypes;
private MapString, ListString oaMap;
@Override
public String execute() throws Exception {
try{
antibiotics=dtService.getAllAntibioticsList();
organismTypes=dtService.getAllOrganisumTypes();
oaMap=dtService.getAllSelectedOrganismTypeAntibiotics();
}catch(Exception e){
log.error(e.getMessage(), e);
return error;
}
return SUCCESS;
}
//_

The following is the code in jsp

s:iterator  value=antibiotics status=status
trtds:property value=antibioticName//td
s:iterator  value=organismTypes
td style=width:100pxinput type=checkbox s:if test=%{oaMap.[((new
Integer(antibioticId).toString()))].contains((new
Integer(organismTypeId).toString()))}checked/s:if  value='s:property
value=antibioticId/' style=line-height: 35px; //td
/s:iterator
/tr
/s:iterator

//__

i am trying to get the arrylist from the map and trying to check whether it
contains a particular string but this is not working? is this the right way
to do this? If not how to do this?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


printing mathematical special characters

2015-07-30 Thread Yaragalla Muralidhar
I have mathematical symbols e.g. *alfa*, *beta*,*mu* . When I copy these
symbols in text area they are getting copied. I am copying them from word
document. When I insert them into the database using prepared statement the
symbols are getting inserted as code. for example the *alfa* is getting
stored as#946;. This is fine I guess. But when I retrieve them from the
database using java.sq.Statement and displaying them in the html page they
are getting displayed as code instead of symbol. I mean #946; is
displayed in html instead displaying alfa symbol. So how to deal with this
situation? how can I store symbols and display them properly in html?

I am using mysql database, java1.7,struts2.0 and tomcat7.
*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: printing mathematical special characters

2015-07-30 Thread Yaragalla Muralidhar
Ok Christoph. Thanks for your response. I found that struts is doing it.
s:property value=name escape=false / helped me to an extent.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Jul 30, 2015 at 2:01 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:



 I have mathematical symbols e.g. *alfa*, *beta*,*mu* . When I copy these
 symbols in text area they are getting copied. I am copying them from word
 document. When I insert them into the database using prepared statement the
 symbols are getting inserted as code. for example the *alfa* is getting
 stored as#946;. This is fine I guess. But when I retrieve them from the
 database using java.sq.Statement and displaying them in the html page they
 are getting displayed as code instead of symbol. I mean #946; is
 displayed in html instead displaying alfa symbol. So how to deal with this
 situation? how can I store symbols and display them properly in html?

 I am using mysql database, java1.7,struts2.0 and tomcat7.
 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



how to redirect to an action with parameter

2015-04-23 Thread Yaragalla Muralidhar
Hi my action class contains a property studentId

on success i need to redirect to another action but need to pass
studentid parameter to that action. is it possible to do that.




*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: how to redirect to an action with parameter

2015-04-23 Thread Yaragalla Muralidhar
I got the answer in the documentation. thanks.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Fri, Apr 24, 2015 at 5:29 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi my action class contains a property studentId

 on success i need to redirect to another action but need to pass
 studentid parameter to that action. is it possible to do that.




 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



Re: is there any method that executes only when validation fails

2015-04-22 Thread Yaragalla Muralidhar
Thank you. will try this.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Wed, Apr 22, 2015 at 9:43 PM, Felipe Lorenz 
felipe.lor...@idealogic.com.br wrote:



 Hi,

 No by default! But I believe you can extend and change this
 behavior. Or you can create an global result for INPUT redirecting to a
 specific Action/Method.

 Hope it can helps you.
 ---

 FELIPE
 LORENZ
 Gerente de Projetos
 Idealogic Software
 Fone: (51) 3715 5523 -
 (51) 3715 5548
 www.idealogic.com.br

 On 22/04/2015 12:46, Yaragalla
 Muralidhar wrote:

  Thank you.
 
  *Thanks and Regards,*
  Muralidhar
 Yaragalla.
 
  *http://yaragalla.blogspot.in/ [1]
 http://yaragalla.blogspot.in/ [1]*
 
  On Wed, Apr 22, 2015 at 9:15
 PM, Dave Newton davelnew...@gmail.com wrote:
 
  No. On Wed, Apr 22,
 2015 at 11:43 AM, Yaragalla Muralidhar  yaragallamur...@gmail.com
 wrote:
 
  Hi, In struts Action class is there any method that gets
 executed only
  when
 
  validation fails? *Thanks and Regards,*
 Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ [1]
 http://yaragalla.blogspot.in/ [1]*
  -- e: davelnew...@gmail.com m:
 908-380-8699 s: davelnewton_skype t: @dave_newton
 https://twitter.com/dave_newton [2] b: Bucky Bits
 http://buckybits.blogspot.com/ [3] g: davelnewton
 https://github.com/davelnewton [4] so: Dave Newton
 http://stackoverflow.com/users/438992/dave-newton [5]



 Links:
 --
 [1] http://yaragalla.blogspot.in/
 [2]
 https://twitter.com/dave_newton
 [3] http://buckybits.blogspot.com/
 [4]
 https://github.com/davelnewton
 [5]
 http://stackoverflow.com/users/438992/dave-newton



Re: is there any method that executes only when validation fails

2015-04-22 Thread Yaragalla Muralidhar
Thank you.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Wed, Apr 22, 2015 at 9:15 PM, Dave Newton davelnew...@gmail.com wrote:

 No.

 On Wed, Apr 22, 2015 at 11:43 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi,
 In struts Action class is there any method that gets executed only
 when
  validation fails?
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton



is there any method that executes only when validation fails

2015-04-22 Thread Yaragalla Muralidhar
Hi,
   In struts Action class is there any method that gets executed only when
validation fails?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


dynamically generating user input fields

2015-02-25 Thread Yaragalla Muralidhar
Hi i have a jsp page with a button capture student details. when that
button is pressed it has to display few user input fields on the same page
like student Name, student id and few other fields . now user enters the
details of the student and when he press the button again the same set of
fields have to appear again in order to capture the 2nd student details.
how to achieve this?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: dynamically generating user input fields

2015-02-25 Thread Yaragalla Muralidhar
ok. thank you.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Wed, Feb 25, 2015 at 7:13 PM, Dave Newton davelnew...@gmail.com wrote:

 Increment a counter?
 On Feb 25, 2015 7:42 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  Actually i have a ListStudent students   in my action class. but
 when i
  am dynamically genaerating fields in html page how to change the names of
  the fields that are dynamically getting generated?   for the first field
 i
  gave students[0].name but for the second field that is dynamically
 getting
  generated how can i change the name of the field like students[1].name?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Wed, Feb 25, 2015 at 5:51 PM, Christoph Nenning 
  christoph.nenn...@lex-com.net wrote:
 
Hi i have a jsp page with a button capture student details. when
 that
button is pressed it has to display few user input fields on the same
   page
like student Name, student id and few other fields . now user
 enters
   the
details of the student and when he press the button again the same
 set
   of
fields have to appear again in order to capture the 2nd student
  details.
how to achieve this?
   
   
  
  
   As member of your action you can use a MapString, String. The Map-Key
  is
   the dynamic field name. You need some JS to generate a new input-field
 in
   the browser. As html-input-name you can use an OGNL expression like
   map['fieldName']. That way struts can set the keys and values in your
   action's map.
  
  
  
   Regards,
   Christoph
  
   This Email was scanned by Sophos Anti Virus
  
 



Re: dynamically generating user input fields

2015-02-25 Thread Yaragalla Muralidhar
Actually i have a ListStudent students   in my action class. but when i
am dynamically genaerating fields in html page how to change the names of
the fields that are dynamically getting generated?   for the first field i
gave students[0].name but for the second field that is dynamically getting
generated how can i change the name of the field like students[1].name?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Wed, Feb 25, 2015 at 5:51 PM, Christoph Nenning 
christoph.nenn...@lex-com.net wrote:

  Hi i have a jsp page with a button capture student details. when that
  button is pressed it has to display few user input fields on the same
 page
  like student Name, student id and few other fields . now user enters
 the
  details of the student and when he press the button again the same set
 of
  fields have to appear again in order to capture the 2nd student details.
  how to achieve this?
 
 


 As member of your action you can use a MapString, String. The Map-Key is
 the dynamic field name. You need some JS to generate a new input-field in
 the browser. As html-input-name you can use an OGNL expression like
 map['fieldName']. That way struts can set the keys and values in your
 action's map.



 Regards,
 Christoph

 This Email was scanned by Sophos Anti Virus



Re: Select multiple values from a dropdown

2015-02-20 Thread Yaragalla Muralidhar
the below is the select tag where you can choose multiple values

s:select label=Pets
   name=petIds
   list=petDao.pets
   listKey=id
   listValue=name
   multiple=true
   size=3
   required=true
   value=%{petDao.pets.{id}}
/

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Feb 21, 2015 at 2:44 AM, lilylove2shop 
lilylove2s...@yahoo.com.invalid wrote:

 Hi all,

 How do I select and display more than one value from a dropdown and
 display them in jsp using struts2?

 Thanks






how to make bigdecimal field mandatory

2015-02-18 Thread Yaragalla Muralidhar
Hi ,
   is there any validator to make a bigdecimal field mandatory? in detail i
have a textfiled which is mapped to a bigdecimal. I want to make this
textfield as a mandatory field. how to do this?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: how to make bigdecimal field mandatory

2015-02-18 Thread Yaragalla Muralidhar
It worked. thanks Christoph.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Wed, Feb 18, 2015 at 1:52 PM, Christoph Nenning 
christoph.nenn...@lex-com.net wrote:

  Hi ,
 is there any validator to make a bigdecimal field mandatory? in
 detail i
  have a textfiled which is mapped to a bigdecimal. I want to make this
  textfield as a mandatory field. how to do this?
 
 


 Have a lookt at RequiredFieldValidator.


 regards,
 Christoph


 This Email was scanned by Sophos Anti Virus



problem in xml validation

2015-02-17 Thread Yaragalla Muralidhar
Hi,
I have written AddTestAction.class and placed
AddTestAction-validation.xml file in the same package. but the field
validations are not happening. i have written int validators. Instead
showing validation errors the browser is displaying page not found.  if i
remove validation xml file everthing is working fine. what could be the
problem?

do i need to paste the code?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem in xml validation

2015-02-17 Thread Yaragalla Muralidhar
No dave. It is because in the same Action class i have a validate method.
So in this method if validation fails it is showing inpu jsp with the
errors.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Tue, Feb 17, 2015 at 9:03 PM, Dave Newton davelnew...@gmail.com wrote:

 ... If you want any help, you need to provide actionable information.

 My first guesses are that you're either missing an `input` definition, or
 its JSP page isn't where you think it is.

 On Tue, Feb 17, 2015 at 10:05 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi,
  I have written AddTestAction.class and placed
  AddTestAction-validation.xml file in the same package. but the field
  validations are not happening. i have written int validators. Instead
  showing validation errors the browser is displaying page not found.  if i
  remove validation xml file everthing is working fine. what could be the
  problem?
 
  do i need to paste the code?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton



Re: how to display a default value in s:textField

2015-02-09 Thread Yaragalla Muralidhar
ok. thank you so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Mon, Feb 9, 2015 at 7:29 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2015-02-09 13:54 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
  Hi i need to display a default value in the text filed. I have put
  value=default value but problem with this is it always shows the
 default
  value even after the user had entered the custom value. So is there a way
  to display a default value in s:textfield?

 Setting it in action?


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




how to display a default value in s:textField

2015-02-09 Thread Yaragalla Muralidhar
Hi i need to display a default value in the text filed. I have put
value=default value but problem with this is it always shows the default
value even after the user had entered the custom value. So is there a way
to display a default value in s:textfield?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: Header and Footer file include struts 2

2015-01-09 Thread Yaragalla Muralidhar
you have written

 result name=SUCCESS/WEB-INF/views/header/header.jspf


i think it is not header.jspf it is header.jsp


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Jan 10, 2015 at 10:42 AM, Kiran Badi ki...@poonam.org wrote:

 I already have that in page but still getting error

 On Friday, January 9, 2015, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
 wrote:

  if you are using struts tags add this to your jsp
 
  %@ taglib prefix=s uri=/struts-tags %
 
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Sat, Jan 10, 2015 at 9:49 AM, Kiran Badi ki...@poonam.org
  javascript:; wrote:
 
   Hi
  
   I need some help and I have to include header and footer file in Index
   jsp...
  
   For some reason its not working and showing up source code in browser.
  
  
  
 
 http://stackoverflow.com/questions/27220192/struts-2-sinclude-tag-not-working-for-header-jspf-file?noredirect=1#comment42946997_27220192
  
   Appreciate if some one can take a look.
  
   - Kiran
  
 



Re: Header and Footer file include struts 2

2015-01-09 Thread Yaragalla Muralidhar
if you are using struts tags add this to your jsp

%@ taglib prefix=s uri=/struts-tags %



*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Jan 10, 2015 at 9:49 AM, Kiran Badi ki...@poonam.org wrote:

 Hi

 I need some help and I have to include header and footer file in Index
 jsp...

 For some reason its not working and showing up source code in browser.


 http://stackoverflow.com/questions/27220192/struts-2-sinclude-tag-not-working-for-header-jspf-file?noredirect=1#comment42946997_27220192

 Appreciate if some one can take a look.

 - Kiran



Re: css_xhtml theme issue

2014-12-27 Thread Yaragalla Muralidhar
Thank you so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 27, 2014 at 3:39 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-27 5:32 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
  Hi I am using css_xhtml theme. in this when there is validation error it
 is
  displaying on top of the field so the alignment of the html components
 are
  going bad. I dont want that to happen. i want to display all the eerrors
 on
  top of the page. Is it possible?

 That's how this theme is build - you can try overriding just the
 controlheader-core.ftl (it's where the errors are displayed) or
 creating your own theme based on css_xhtml. You can also use CSS to
 force move the labels to top.

 http://struts.apache.org/docs/extending-themes.html


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
i have a select box. by defualt it submits -1. I want to write a
validation using regex tosay the selection is mandatory. I have written the
validator in the following way but it is not working. Please help.

field-validator type=regex
  param name=regex![CDATA[[1-9]{1,3}]]/param
  message key=error.branch.required cannot find
error.branch.required/message
  /field-validator


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Number is fine Dev. But regex validator has to work right. i worked with it
before. Now it is not working. I want to make it work.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 27, 2014 at 6:37 PM, Dave Newton davelnew...@gmail.com wrote:

 Why use a regex for what appears to be a number?
 On Dec 27, 2014 5:36 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  i have a select box. by defualt it submits -1. I want to write a
  validation using regex tosay the selection is mandatory. I have written
 the
  validator in the following way but it is not working. Please help.
 
  field-validator type=regex
param name=regex![CDATA[[1-9]{1,3}]]/param
message key=error.branch.required cannot find
  error.branch.required/message
/field-validator
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



Re: regex validator problem

2014-12-27 Thread Yaragalla Muralidhar
Hi Dave,
  when -1 is getting submited it has to display error msg which is
not getting displayed. successfully moving to the next page. It is not
moving to the input page even.
Now i have changed the validator to int  so everything is working fine.
but i need regex validator to work even for further validations.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 27, 2014 at 7:33 PM, Dave Newton davelnew...@gmail.com wrote:

 On Sat, Dec 27, 2014 at 7:23 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
   validator in the following way but it is not working. Please help.

 Define not working.

 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton
 b: Bucky Bits
 g: davelnewton
 so: Dave Newton

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




after changing validator stranze problem

2014-12-26 Thread Yaragalla Muralidhar
i have changed my validator from required to requiredstring and i am
getting the following error. before changing everything is working fine.
what could be the problem?


Dec 26, 2014 2:22:05 PM org.apache.catalina.core.ApplicationDispatcher
invoke
SEVERE: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'primaryDetails.branchId': The requested
list key 'branches' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
at org.apache.struts2.components.Component.fieldError(Component.java:257)
at org.apache.struts2.components.Component.findValue(Component.java:350)
at
org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java:82)


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
Hi Sreekanth,
   sorry to say this. I tried everything stated in the example that u gave.
but it did not work for me. I am doing something wrong but could not find
out what. Thank u for all your help.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Fri, Dec 26, 2014 at 12:24 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 I couldn't make your sample war run at all, please find the attached
 sample war which is working for me in tomcat 7 (struts2 jars and other dep
 not included). You can follow the directory structure and naming convention
 and try to do the same in your project. Do not add @SkipValidation
 annotation in your save or submit method (@SkipValidation will in fact
 ignore validation for it)

 --
 Thanks  Regards

 Sreekanth S Nair
 Java Developer
 ---
 eGovernments Foundation http://www.egovernments.org
 Ph : 9980078913
 ---
 http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
 https://github.com/sreekanthsnair   sreekanthsn...@hotmail.co.uk
 sreekanths...@gmail.com
 ---

 On Fri, Dec 26, 2014 at 11:32 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

 Ok let me try and will get back to you...


 On Fri, Dec 26, 2014 at 11:26 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 Hi Sreekanth,
   I think i cannot send attachements to the mailing list so i have
 uploaded the project to my drive and sharing the link


 https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing


 i am using tomcat 7.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Fri, Dec 26, 2014 at 9:32 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Can you share a sample project which is not working, and just let me
 know
  which server you are trying..?
 
  --
  Thanks  Regards
 
  Sreekanth S Nair
  Java Developer
  ---
  eGovernments Foundation http://www.egovernments.org
  Ph : 9980078913
  ---
  http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
  https://github.com/sreekanthsnair   sreekanthsn...@hotmail.co.uk
  sreekanths...@gmail.com
  ---
 
  On Fri, Dec 26, 2014 at 9:10 AM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
   Hi sreekanth,
  I have changed the names as u suggested but it did not
 work. i
   have read the link u posted and i did everything that the link says.
 i
  have
   debugged as well. it is not throwing any error.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
As Dave said, kindly show some patience.
   
First of validation is nothing to do with theme so just leave the
 theme
alone.
   
1) Can you try renaming the action class name from SampleRegOne to
SampleRegOneAction
and same in struts.xml
   
2) If you give action alias name like below,
 action name=sampleRegOne
class=com.zedlabs.samplereg.action.SampleRegOne 
   
as far as i understood you need to use the alias name suffixed
 along
  with
the action class name so in essence your validator xml name should
 be
   some
thing like below
   
SampleRegOne-sampleRegOne-validation.xml
   
Since i don't have much knowledge in xml based validation i
 recommend
  you
to read upon struts2 xml based validation from the below link
   
   
  
 
 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml
   
If the above solution is not working then try and figure out the
  problem
   by
debugging through struts2 source.
   
If the above solutions couldn't resolve your problem then get some
  debug
level log of struts2 while accessing that particular action and
 post it
over here.
   
   
   
   
On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton 
 davelnew...@gmail.com
wrote:
   
 Unrelated to the technical issue: bear in mind the mailing list
 is a
 volunteer-staffed resource. Nobody is deliberately delaying a
 response. We already know you need help. In the US, at least,
 it's a
 fairly major holiday, and people are doing things besides trying
 to
 reproduce your environment and code to help out.

 With that in mind, please be patient.


 On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  kindly help me solve this issue
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/
 *
 
  On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
I will do that. Thank you so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Fri, Dec 26, 2014 at 3:14 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 There is nothing about sorry, i guess your action package structure or
 something is wrong, i recommend you to run the sample war i have attached
 in tomcat 7 and see the result (make sure to include strust2 latest lib to
 its WEB-INF/lib). Try adding your action class one by one to that sample
 and try again.




 On Fri, Dec 26, 2014 at 3:07 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi Sreekanth,
 sorry to say this. I tried everything stated in the example that u
 gave.
  but it did not work for me. I am doing something wrong but could not find
  out what. Thank u for all your help.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Fri, Dec 26, 2014 at 12:24 PM, Sreekanth S. Nair 
  sreekanth.n...@egovernments.org wrote:
 
   I couldn't make your sample war run at all, please find the attached
   sample war which is working for me in tomcat 7 (struts2 jars and other
  dep
   not included). You can follow the directory structure and naming
  convention
   and try to do the same in your project. Do not add @SkipValidation
   annotation in your save or submit method (@SkipValidation will in fact
   ignore validation for it)
  
   --
   Thanks  Regards
  
   Sreekanth S Nair
   Java Developer
   ---
   eGovernments Foundation http://www.egovernments.org
   Ph : 9980078913
   ---
   http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
   https://github.com/sreekanthsnair   sreekanthsn...@hotmail.co.uk
   sreekanths...@gmail.com
   ---
  
   On Fri, Dec 26, 2014 at 11:32 AM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
   Ok let me try and will get back to you...
  
  
   On Fri, Dec 26, 2014 at 11:26 AM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
   Hi Sreekanth,
 I think i cannot send attachements to the mailing list so i
 have
   uploaded the project to my drive and sharing the link
  
  
  
 
 https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing
  
  
   i am using tomcat 7.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Fri, Dec 26, 2014 at 9:32 AM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
Can you share a sample project which is not working, and just let
 me
   know
which server you are trying..?
   
--
Thanks  Regards
   
Sreekanth S Nair
Java Developer
---
eGovernments Foundation http://www.egovernments.org
Ph : 9980078913
---
http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
https://github.com/sreekanthsnair   
 sreekanthsn...@hotmail.co.uk
sreekanths...@gmail.com
---
   
On Fri, Dec 26, 2014 at 9:10 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:
   
 Hi sreekanth,
I have changed the names as u suggested but it did not
   work. i
 have read the link u posted and i did everything that the link
  says.
   i
have
 debugged as well. it is not throwing any error.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  As Dave said, kindly show some patience.
 
  First of validation is nothing to do with theme so just leave
 the
   theme
  alone.
 
  1) Can you try renaming the action class name from SampleRegOne
  to
  SampleRegOneAction
  and same in struts.xml
 
  2) If you give action alias name like below,
   action name=sampleRegOne
  class=com.zedlabs.samplereg.action.SampleRegOne 
 
  as far as i understood you need to use the alias name suffixed
   along
with
  the action class name so in essence your validator xml name
  should
   be
 some
  thing like below
 
  SampleRegOne-sampleRegOne-validation.xml
 
  Since i don't have much knowledge in xml based validation i
   recommend
you
  to read upon struts2 xml based validation from the below link
 
 

   
  
 
 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml
 
  If the above solution is not working then try and figure out
 the
problem
 by
  debugging through struts2 source.
 
  If the above solutions couldn't resolve your problem then get

Re: validation problem

2014-12-26 Thread Yaragalla Muralidhar
Thank you Lukasz. I have rectified all the mistakes that u listed.
Validations are working. I also have done some simple mistakes. I have
rectified all the mistakes. Everything is working fine now. Thanks to all
of you.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Fri, Dec 26, 2014 at 8:09 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-26 15:19 GMT+01:00 Lukasz Lenart lukaszlen...@apache.org:
  2014-12-26 6:56 GMT+01:00 Yaragalla Muralidhar 
 yaragallamur...@gmail.com:
  Hi Sreekanth,
I think i cannot send attachements to the mailing list so i have
  uploaded the project to my drive and sharing the link
 
 
 https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing

 Can you start that app? I've noticed include
 file=mailreader-default.xml/ in sample-reg.xml but such file
 doesn't exist which means Struts will blow up with some error in the
 logs.

 Another thing, even empty text field means something - an empty string
 - if you read the docs [1] it will clearly says:
 RequiredFieldValidator checks if the specified field is not null.
 where empty string != null

 I think you want to specify min length of the String so you should use
 stringlength [2] instead. One more remark: you don't have to put
 validators.xml - it's only needed when you define your own validators.
 And I kindly suggest, please re-read the docs about how to setup
 validation and what each of the validators do [3].

 [1] http://struts.apache.org/docs/required-validator.html
 [2] http://struts.apache.org/docs/stringlength-validator.html
 [3] http://struts.apache.org/docs/validation.html


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




problem with select boxes

2014-12-26 Thread Yaragalla Muralidhar
Hi
If i have 5 select boxes on the first page which is mapped to lists.
this lists should be populated in the action class that launches the page
and also in the action class that we are submitting. So we have to write
the same code in two places. Is there a way that we can avoid this?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem with select boxes

2014-12-26 Thread Yaragalla Muralidhar
ok. thank u so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 27, 2014 at 12:52 AM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-26 18:42 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
  Hi
  If i have 5 select boxes on the first page which is mapped to lists.
  this lists should be populated in the action class that launches the page
  and also in the action class that we are submitting. So we have to write
  the same code in two places. Is there a way that we can avoid this?

 You can use inheritance or different methods in the same action class
 ie. input() and save() - then you can use the same list for populating
 the form and storing the values.


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




css_xhtml theme issue

2014-12-26 Thread Yaragalla Muralidhar
Hi I am using css_xhtml theme. in this when there is validation error it is
displaying on top of the field so the alignment of the html components are
going bad. I dont want that to happen. i want to display all the eerrors on
top of the page. Is it possible?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


validation problem

2014-12-25 Thread Yaragalla Muralidhar
Hi i am having problem in turning on validations. I have written
actionClass-validation.xml file in the same package as action class.  but
the validations are not working. the following is my validation xml file.

!DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN
http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
validators

field name=primaryDetails.branchId
 field-validator type=required
   message key=error.additional.details.passport.noCould not find
error.additional.details.passport.no!/message
 /field-validator
 field-validator type=regex
  param name=regex![CDATA[[1-9]{0,40}]]/param
   message key=error.additional.details.pancard.noCould not find
error.additional.details.pancard.no/message
 /field-validator
/field
 field name=primaryDetails.patientName
 field-validator type=required
   message key=error.additional.details.passport.noCould not find
error.additional.details.passport.no!/message
 /field-validator

/field

/validators

do i have to do something else to turn on validations?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
I am using struts2.3.20 and using simple theme.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi i am having problem in turning on validations. I have written
 actionClass-validation.xml file in the same package as action class.  but
 the validations are not working. the following is my validation xml file.

 !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator 1.0.3//EN
 http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
 validators

 field name=primaryDetails.branchId
  field-validator type=required
message key=error.additional.details.passport.noCould not find
 error.additional.details.passport.no!/message
  /field-validator
  field-validator type=regex
   param name=regex![CDATA[[1-9]{0,40}]]/param
message key=error.additional.details.pancard.noCould not find
 error.additional.details.pancard.no/message
  /field-validator
 /field
  field name=primaryDetails.patientName
  field-validator type=required
message key=error.additional.details.passport.noCould not find
 error.additional.details.passport.no!/message
  /field-validator

 /field

 /validators

 do i have to do something else to turn on validations?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
is it because of the simple theam? In simple theam validations dont happen
is it? if i dont use simple theme view components are generating their own
decoration. Our custom alignment is going wrong.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com wrote:

 Simple theme is simpler than you think.
 On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  I am using struts2.3.20 and using simple theme.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
   Hi i am having problem in turning on validations. I have written
   actionClass-validation.xml file in the same package as action class.
  but
   the validations are not working. the following is my validation xml
 file.
  
   !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
 1.0.3//EN
   http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
   validators
  
   field name=primaryDetails.branchId
field-validator type=required
  message key=error.additional.details.passport.noCould not
  find
   error.additional.details.passport.no!/message
/field-validator
field-validator type=regex
 param name=regex![CDATA[[1-9]{0,40}]]/param
  message key=error.additional.details.pancard.noCould not
 find
   error.additional.details.pancard.no/message
/field-validator
   /field
field name=primaryDetails.patientName
field-validator type=required
  message key=error.additional.details.passport.noCould not
  find
   error.additional.details.passport.no!/message
/field-validator
  
   /field
  
   /validators
  
   do i have to do something else to turn on validations?
  
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
 



Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
in my case validations are not happenening . Even though validation fails
it is moving to succeess rather than input jsp.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com wrote:

 Please read up on the themes.

 Nutshell: validation happens (this is trivially provable), validation
 message display does not.

 On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  is it because of the simple theam? In simple theam validations dont
 happen
  is it? if i dont use simple theme view components are generating their
 own
  decoration. Our custom alignment is going wrong.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Simple theme is simpler than you think.
  On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
  
  wrote:
 
   I am using struts2.3.20 and using simple theme.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
Hi i am having problem in turning on validations. I have written
actionClass-validation.xml file in the same package as action
 class.
   but
the validations are not working. the following is my validation xml
  file.
   
!DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
  1.0.3//EN
http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
validators
   
field name=primaryDetails.branchId
 field-validator type=required
   message key=error.additional.details.passport.noCould
 not
   find
error.additional.details.passport.no!/message
 /field-validator
 field-validator type=regex
  param name=regex![CDATA[[1-9]{0,40}]]/param
   message key=error.additional.details.pancard.noCould not
  find
error.additional.details.pancard.no/message
 /field-validator
/field
 field name=primaryDetails.patientName
 field-validator type=required
   message key=error.additional.details.passport.noCould
 not
   find
error.additional.details.passport.no!/message
 /field-validator
   
/field
   
/validators
   
do i have to do something else to turn on validations?
   
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
  
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton
 b: Bucky Bits
 g: davelnewton
 so: Dave Newton

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




Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
if the validation works then i can think about messages

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 I have changed the theme to css_xhtml   so it should display right?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton davelnew...@gmail.com
 wrote:

 Then you're doing something else wrong; never mind.

 You still won't see the messages unless you display them manually.

 On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  in my case validations are not happenening . Even though validation
 fails
  it is moving to succeess rather than input jsp.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Please read up on the themes.
 
  Nutshell: validation happens (this is trivially provable), validation
  message display does not.
 
  On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
  yaragallamur...@gmail.com wrote:
   is it because of the simple theam? In simple theam validations dont
  happen
   is it? if i dont use simple theme view components are generating
 their
  own
   decoration. Our custom alignment is going wrong.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com
  wrote:
  
   Simple theme is simpler than you think.
   On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com
   
   wrote:
  
I am using struts2.3.20 and using simple theme.
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:
   
 Hi i am having problem in turning on validations. I have written
 actionClass-validation.xml file in the same package as action
  class.
but
 the validations are not working. the following is my validation
 xml
   file.

 !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
   1.0.3//EN
 
 http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
 validators

 field name=primaryDetails.branchId
  field-validator type=required
message key=error.additional.details.passport.no
 Could
  not
find
 error.additional.details.passport.no!/message
  /field-validator
  field-validator type=regex
   param name=regex![CDATA[[1-9]{0,40}]]/param
message key=error.additional.details.pancard.noCould
 not
   find
 error.additional.details.pancard.no/message
  /field-validator
 /field
  field name=primaryDetails.patientName
  field-validator type=required
message key=error.additional.details.passport.no
 Could
  not
find
 error.additional.details.passport.no!/message
  /field-validator

 /field

 /validators

 do i have to do something else to turn on validations?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

   
  
 
 
 
  --
  e: davelnew...@gmail.com
  m: 908-380-8699
  s: davelnewton_skype
  t: @dave_newton
  b: Bucky Bits
  g: davelnewton
  so: Dave Newton
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton
 b: Bucky Bits
 g: davelnewton
 so: Dave Newton

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





Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
I have changed the theme to css_xhtml   so it should display right?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton davelnew...@gmail.com wrote:

 Then you're doing something else wrong; never mind.

 You still won't see the messages unless you display them manually.

 On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  in my case validations are not happenening . Even though validation fails
  it is moving to succeess rather than input jsp.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Please read up on the themes.
 
  Nutshell: validation happens (this is trivially provable), validation
  message display does not.
 
  On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
  yaragallamur...@gmail.com wrote:
   is it because of the simple theam? In simple theam validations dont
  happen
   is it? if i dont use simple theme view components are generating their
  own
   decoration. Our custom alignment is going wrong.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com
  wrote:
  
   Simple theme is simpler than you think.
   On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com
   
   wrote:
  
I am using struts2.3.20 and using simple theme.
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:
   
 Hi i am having problem in turning on validations. I have written
 actionClass-validation.xml file in the same package as action
  class.
but
 the validations are not working. the following is my validation
 xml
   file.

 !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
   1.0.3//EN
 http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd
 
 validators

 field name=primaryDetails.branchId
  field-validator type=required
message key=error.additional.details.passport.noCould
  not
find
 error.additional.details.passport.no!/message
  /field-validator
  field-validator type=regex
   param name=regex![CDATA[[1-9]{0,40}]]/param
message key=error.additional.details.pancard.noCould
 not
   find
 error.additional.details.pancard.no/message
  /field-validator
 /field
  field name=primaryDetails.patientName
  field-validator type=required
message key=error.additional.details.passport.noCould
  not
find
 error.additional.details.passport.no!/message
  /field-validator

 /field

 /validators

 do i have to do something else to turn on validations?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

   
  
 
 
 
  --
  e: davelnew...@gmail.com
  m: 908-380-8699
  s: davelnewton_skype
  t: @dave_newton
  b: Bucky Bits
  g: davelnewton
  so: Dave Newton
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton
 b: Bucky Bits
 g: davelnewton
 so: Dave Newton

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




Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
The following is my action class

package com.zedlabs.samplereg.action;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.zedlabs.action.ZedActionSupport;
import com.zedlabs.samplereg.dto.PDDto;
import com.zedlabs.samplereg.service.SampleRegService;
import com.zedlabs.samplereg.service.SampleRegServiceImpl;

public class SampleRegOne extends ZedActionSupport {

private static final long serialVersionUID = -8621676046564513353L;
private Log log=LogFactory.getLog(SampleRegOne.class);
private SampleRegService sampleReg=new SampleRegServiceImpl();
 private MapString,String sampledrawnBy=new HashMapString,String();
private PDDto primaryDetails=new PDDto();
 @Override
public String execute() {
try{
sampledrawnBy.put(zedlabs, Zedlabs);
sampleReg.savePrimaryDetails(primaryDetails);
 }catch(Exception e){
log.error(e.getMessage(), e);
}
return SUCCESS;
}

public MapString, String getSampledrawnBy() {
return sampledrawnBy;
}

public void setSampledrawnBy(MapString, String sampledrawnBy) {
this.sampledrawnBy = sampledrawnBy;
}

public PDDto getPrimaryDetails() {
return primaryDetails;
}

public void setPrimaryDetails(PDDto primaryDetails) {
this.primaryDetails = primaryDetails;
}


}


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 if the validation works then i can think about messages

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 I have changed the theme to css_xhtml   so it should display right?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton davelnew...@gmail.com
 wrote:

 Then you're doing something else wrong; never mind.

 You still won't see the messages unless you display them manually.

 On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  in my case validations are not happenening . Even though validation
 fails
  it is moving to succeess rather than input jsp.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Please read up on the themes.
 
  Nutshell: validation happens (this is trivially provable), validation
  message display does not.
 
  On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
  yaragallamur...@gmail.com wrote:
   is it because of the simple theam? In simple theam validations dont
  happen
   is it? if i dont use simple theme view components are generating
 their
  own
   decoration. Our custom alignment is going wrong.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton davelnew...@gmail.com
 
  wrote:
  
   Simple theme is simpler than you think.
   On Dec 25, 2014 4:46 AM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com
   
   wrote:
  
I am using struts2.3.20 and using simple theme.
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:
   
 Hi i am having problem in turning on validations. I have
 written
 actionClass-validation.xml file in the same package as action
  class.
but
 the validations are not working. the following is my
 validation xml
   file.

 !DOCTYPE validators PUBLIC -//Apache Struts//XWork Validator
   1.0.3//EN
 
 http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd;
 validators

 field name=primaryDetails.branchId
  field-validator type=required
message key=error.additional.details.passport.no
 Could
  not
find
 error.additional.details.passport.no!/message
  /field-validator
  field-validator type=regex
   param name=regex![CDATA[[1-9]{0,40}]]/param
message key=error.additional.details.pancard.noCould
 not
   find
 error.additional.details.pancard.no/message
  /field-validator
 /field
  field name=primaryDetails.patientName
  field-validator type=required
message key=error.additional.details.passport.no
 Could
  not
find
 error.additional.details.passport.no!/message
  /field-validator

 /field

 /validators

 do i have to do something else to turn on validations?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
my struts config.xml is as below.kindly help me in solving this.

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
http://struts.apache.org/dtds/struts-2.3.dtd;

struts

constant name=struts.enable.DynamicMethodInvocation value=false /
constant name=struts.devMode value=true /



package name=sr namespace=/ extends=struts-default

 interceptors
interceptor-stack name=appDefault
  interceptor-ref name=defaultStack /
/interceptor-stack
/interceptors

default-interceptor-ref name=appDefault /

global-results
result name=error/error.jsp/result
/global-results

global-exception-mappings
exception-mapping exception=java.lang.Exception
result=error/
/global-exception-mappings

  action name=start class=com.zedlabs.samplereg.action.InitialAction 
result name=success /sampleReg/jsp/sampleRegTemplate.jsp/result

  /action

  action name=sampleRegOne
class=com.zedlabs.samplereg.action.SampleRegOne 
result name=success
/sampleReg/jsp/sampleRegTwoTemplate.jsp/result
result name=input /sampleReg/jsp/sampleRegTemplate.jsp/result
  /action
  action name=sampleRegTwo
class=com.zedlabs.samplereg.action.SampleRegTwoAction 
result name=success
/sampleReg/jsp/sampleRegThreeTemplate.jsp/result
  /action
  action name=sampleRegThree
class=com.zedlabs.samplereg.action.SampleRegThreeAction 
result name=success
/sampleReg/jsp/sampleRegFourTemplate.jsp/result
  /action

/package

include file=mailreader-default.xml/

/struts


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 7:47 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 The following is my action class

 package com.zedlabs.samplereg.action;

 import java.util.HashMap;
 import java.util.Map;

 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;

 import com.zedlabs.action.ZedActionSupport;
 import com.zedlabs.samplereg.dto.PDDto;
 import com.zedlabs.samplereg.service.SampleRegService;
 import com.zedlabs.samplereg.service.SampleRegServiceImpl;

 public class SampleRegOne extends ZedActionSupport {

 private static final long serialVersionUID = -8621676046564513353L;
 private Log log=LogFactory.getLog(SampleRegOne.class);
 private SampleRegService sampleReg=new SampleRegServiceImpl();
  private MapString,String sampledrawnBy=new HashMapString,String();
 private PDDto primaryDetails=new PDDto();
  @Override
 public String execute() {
 try{
 sampledrawnBy.put(zedlabs, Zedlabs);
 sampleReg.savePrimaryDetails(primaryDetails);
  }catch(Exception e){
 log.error(e.getMessage(), e);
 }
 return SUCCESS;
 }

 public MapString, String getSampledrawnBy() {
 return sampledrawnBy;
 }

 public void setSampledrawnBy(MapString, String sampledrawnBy) {
 this.sampledrawnBy = sampledrawnBy;
 }

 public PDDto getPrimaryDetails() {
 return primaryDetails;
 }

 public void setPrimaryDetails(PDDto primaryDetails) {
 this.primaryDetails = primaryDetails;
 }


 }


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 if the validation works then i can think about messages

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 I have changed the theme to css_xhtml   so it should display right?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton davelnew...@gmail.com
 wrote:

 Then you're doing something else wrong; never mind.

 You still won't see the messages unless you display them manually.

 On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  in my case validations are not happenening . Even though validation
 fails
  it is moving to succeess rather than input jsp.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Please read up on the themes.
 
  Nutshell: validation happens (this is trivially provable), validation
  message display does not.
 
  On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
  yaragallamur...@gmail.com wrote:
   is it because of the simple theam? In simple theam validations dont
  happen
   is it? if i dont use simple theme view components are generating
 their
  own
   decoration. Our custom alignment is going wrong.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
kindly help me solve this issue

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 my struts config.xml is as below.kindly help me in solving this.

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.3//EN
 http://struts.apache.org/dtds/struts-2.3.dtd;

 struts

 constant name=struts.enable.DynamicMethodInvocation value=false /
 constant name=struts.devMode value=true /



 package name=sr namespace=/ extends=struts-default

  interceptors
 interceptor-stack name=appDefault
   interceptor-ref name=defaultStack /
 /interceptor-stack
 /interceptors

 default-interceptor-ref name=appDefault /

 global-results
 result name=error/error.jsp/result
 /global-results

 global-exception-mappings
 exception-mapping exception=java.lang.Exception
 result=error/
 /global-exception-mappings

   action name=start class=com.zedlabs.samplereg.action.InitialAction
 
 result name=success /sampleReg/jsp/sampleRegTemplate.jsp/result

   /action

   action name=sampleRegOne
 class=com.zedlabs.samplereg.action.SampleRegOne 
 result name=success
 /sampleReg/jsp/sampleRegTwoTemplate.jsp/result
 result name=input /sampleReg/jsp/sampleRegTemplate.jsp/result

   /action
   action name=sampleRegTwo
 class=com.zedlabs.samplereg.action.SampleRegTwoAction 
 result name=success
 /sampleReg/jsp/sampleRegThreeTemplate.jsp/result
   /action
   action name=sampleRegThree
 class=com.zedlabs.samplereg.action.SampleRegThreeAction 
 result name=success
 /sampleReg/jsp/sampleRegFourTemplate.jsp/result
   /action

 /package

 include file=mailreader-default.xml/

 /struts


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 7:47 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 The following is my action class

 package com.zedlabs.samplereg.action;

 import java.util.HashMap;
 import java.util.Map;

 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;

 import com.zedlabs.action.ZedActionSupport;
 import com.zedlabs.samplereg.dto.PDDto;
 import com.zedlabs.samplereg.service.SampleRegService;
 import com.zedlabs.samplereg.service.SampleRegServiceImpl;

 public class SampleRegOne extends ZedActionSupport {

 private static final long serialVersionUID = -8621676046564513353L;
 private Log log=LogFactory.getLog(SampleRegOne.class);
 private SampleRegService sampleReg=new SampleRegServiceImpl();
  private MapString,String sampledrawnBy=new HashMapString,String();
 private PDDto primaryDetails=new PDDto();
  @Override
 public String execute() {
 try{
 sampledrawnBy.put(zedlabs, Zedlabs);
 sampleReg.savePrimaryDetails(primaryDetails);
  }catch(Exception e){
 log.error(e.getMessage(), e);
 }
 return SUCCESS;
 }

 public MapString, String getSampledrawnBy() {
 return sampledrawnBy;
 }

 public void setSampledrawnBy(MapString, String sampledrawnBy) {
 this.sampledrawnBy = sampledrawnBy;
 }

 public PDDto getPrimaryDetails() {
 return primaryDetails;
 }

 public void setPrimaryDetails(PDDto primaryDetails) {
 this.primaryDetails = primaryDetails;
 }


 }


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 if the validation works then i can think about messages

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 I have changed the theme to css_xhtml   so it should display right?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton davelnew...@gmail.com
 wrote:

 Then you're doing something else wrong; never mind.

 You still won't see the messages unless you display them manually.

 On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  in my case validations are not happenening . Even though validation
 fails
  it is moving to succeess rather than input jsp.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
  Please read up on the themes.
 
  Nutshell: validation happens (this is trivially provable),
 validation
  message display does not.
 
  On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar
  yaragallamur...@gmail.com wrote:
   is it because of the simple theam? In simple theam validations
 dont

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
Hi sreekanth,
   I have changed the names as u suggested but it did not work. i
have read the link u posted and i did everything that the link says. i have
debugged as well. it is not throwing any error.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 As Dave said, kindly show some patience.

 First of validation is nothing to do with theme so just leave the theme
 alone.

 1) Can you try renaming the action class name from SampleRegOne to
 SampleRegOneAction
 and same in struts.xml

 2) If you give action alias name like below,
  action name=sampleRegOne
 class=com.zedlabs.samplereg.action.SampleRegOne 

 as far as i understood you need to use the alias name suffixed along with
 the action class name so in essence your validator xml name should be some
 thing like below

 SampleRegOne-sampleRegOne-validation.xml

 Since i don't have much knowledge in xml based validation i recommend you
 to read upon struts2 xml based validation from the below link

 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml

 If the above solution is not working then try and figure out the problem by
 debugging through struts2 source.

 If the above solutions couldn't resolve your problem then get some debug
 level log of struts2 while accessing that particular action and post it
 over here.




 On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton davelnew...@gmail.com
 wrote:

  Unrelated to the technical issue: bear in mind the mailing list is a
  volunteer-staffed resource. Nobody is deliberately delaying a
  response. We already know you need help. In the US, at least, it's a
  fairly major holiday, and people are doing things besides trying to
  reproduce your environment and code to help out.
 
  With that in mind, please be patient.
 
 
  On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
  yaragallamur...@gmail.com wrote:
   kindly help me solve this issue
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
   my struts config.xml is as below.kindly help me in solving this.
  
   ?xml version=1.0 encoding=UTF-8 ?
   !DOCTYPE struts PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration 2.3//EN
   http://struts.apache.org/dtds/struts-2.3.dtd;
  
   struts
  
   constant name=struts.enable.DynamicMethodInvocation
  value=false /
   constant name=struts.devMode value=true /
  
  
  
   package name=sr namespace=/ extends=struts-default
  
interceptors
   interceptor-stack name=appDefault
 interceptor-ref name=defaultStack /
   /interceptor-stack
   /interceptors
  
   default-interceptor-ref name=appDefault /
  
   global-results
   result name=error/error.jsp/result
   /global-results
  
   global-exception-mappings
   exception-mapping exception=java.lang.Exception
   result=error/
   /global-exception-mappings
  
 action name=start
  class=com.zedlabs.samplereg.action.InitialAction
   
   result name=success
  /sampleReg/jsp/sampleRegTemplate.jsp/result
  
 /action
  
 action name=sampleRegOne
   class=com.zedlabs.samplereg.action.SampleRegOne 
   result name=success
   /sampleReg/jsp/sampleRegTwoTemplate.jsp/result
   result name=input
 /sampleReg/jsp/sampleRegTemplate.jsp/result
  
 /action
 action name=sampleRegTwo
   class=com.zedlabs.samplereg.action.SampleRegTwoAction 
   result name=success
   /sampleReg/jsp/sampleRegThreeTemplate.jsp/result
 /action
 action name=sampleRegThree
   class=com.zedlabs.samplereg.action.SampleRegThreeAction 
   result name=success
   /sampleReg/jsp/sampleRegFourTemplate.jsp/result
 /action
  
   /package
  
   include file=mailreader-default.xml/
  
   /struts
  
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 7:47 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
   The following is my action class
  
   package com.zedlabs.samplereg.action;
  
   import java.util.HashMap;
   import java.util.Map;
  
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  
   import com.zedlabs.action.ZedActionSupport;
   import com.zedlabs.samplereg.dto.PDDto;
   import com.zedlabs.samplereg.service.SampleRegService;
   import com.zedlabs.samplereg.service.SampleRegServiceImpl;
  
   public class SampleRegOne extends ZedActionSupport {
  
   private static final long serialVersionUID = -8621676046564513353L;
   private Log log=LogFactory.getLog(SampleRegOne.class);
   private SampleRegService sampleReg=new

Re: validation problem

2014-12-25 Thread Yaragalla Muralidhar
Hi Sreekanth,
  I think i cannot send attachements to the mailing list so i have
uploaded the project to my drive and sharing the link

https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing


i am using tomcat 7.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Fri, Dec 26, 2014 at 9:32 AM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 Can you share a sample project which is not working, and just let me know
 which server you are trying..?

 --
 Thanks  Regards

 Sreekanth S Nair
 Java Developer
 ---
 eGovernments Foundation http://www.egovernments.org
 Ph : 9980078913
 ---
 http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
 https://github.com/sreekanthsnair   sreekanthsn...@hotmail.co.uk
 sreekanths...@gmail.com
 ---

 On Fri, Dec 26, 2014 at 9:10 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi sreekanth,
 I have changed the names as u suggested but it did not work. i
  have read the link u posted and i did everything that the link says. i
 have
  debugged as well. it is not throwing any error.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
  sreekanth.n...@egovernments.org wrote:
 
   As Dave said, kindly show some patience.
  
   First of validation is nothing to do with theme so just leave the theme
   alone.
  
   1) Can you try renaming the action class name from SampleRegOne to
   SampleRegOneAction
   and same in struts.xml
  
   2) If you give action alias name like below,
action name=sampleRegOne
   class=com.zedlabs.samplereg.action.SampleRegOne 
  
   as far as i understood you need to use the alias name suffixed along
 with
   the action class name so in essence your validator xml name should be
  some
   thing like below
  
   SampleRegOne-sampleRegOne-validation.xml
  
   Since i don't have much knowledge in xml based validation i recommend
 you
   to read upon struts2 xml based validation from the below link
  
  
 
 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml
  
   If the above solution is not working then try and figure out the
 problem
  by
   debugging through struts2 source.
  
   If the above solutions couldn't resolve your problem then get some
 debug
   level log of struts2 while accessing that particular action and post it
   over here.
  
  
  
  
   On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton davelnew...@gmail.com
   wrote:
  
Unrelated to the technical issue: bear in mind the mailing list is a
volunteer-staffed resource. Nobody is deliberately delaying a
response. We already know you need help. In the US, at least, it's a
fairly major holiday, and people are doing things besides trying to
reproduce your environment and code to help out.
   
With that in mind, please be patient.
   
   
On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
 kindly help me solve this issue

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 my struts config.xml is as below.kindly help me in solving this.

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE struts PUBLIC
 -//Apache Software Foundation//DTD Struts Configuration 2.3//EN
 http://struts.apache.org/dtds/struts-2.3.dtd;

 struts

 constant name=struts.enable.DynamicMethodInvocation
value=false /
 constant name=struts.devMode value=true /



 package name=sr namespace=/ extends=struts-default

  interceptors
 interceptor-stack name=appDefault
   interceptor-ref name=defaultStack /
 /interceptor-stack
 /interceptors

 default-interceptor-ref name=appDefault /

 global-results
 result name=error/error.jsp/result
 /global-results

 global-exception-mappings
 exception-mapping exception=java.lang.Exception
 result=error/
 /global-exception-mappings

   action name=start
class=com.zedlabs.samplereg.action.InitialAction
 
 result name=success
/sampleReg/jsp/sampleRegTemplate.jsp/result

   /action

   action name=sampleRegOne
 class=com.zedlabs.samplereg.action.SampleRegOne 
 result name=success
 /sampleReg/jsp/sampleRegTwoTemplate.jsp/result
 result name=input
   /sampleReg/jsp/sampleRegTemplate.jsp/result

   /action
   action name=sampleRegTwo
 class

problem with S:select

2014-12-22 Thread Yaragalla Muralidhar
hi i have a drop down(s:select) in jsp. but   what i need is, the user
need to type in the drop down. When user types the first letter it has to
display options which starts with that letter so selection will be easy.
how can i achieve this? the drop down in html does not allow user to type
in the letters so how can i achieve this?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem with S:select

2014-12-22 Thread Yaragalla Muralidhar
ok thank u

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Mon, Dec 22, 2014 at 7:00 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-22 13:57 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
  hi i have a drop down(s:select) in jsp. but   what i need is, the user
  need to type in the drop down. When user types the first letter it has to
  display options which starts with that letter so selection will be easy.
  how can i achieve this? the drop down in html does not allow user to type
  in the letters so how can i achieve this?

 You must use JavaScript ie.
 https://code.google.com/p/struts2-jquery/wiki/AutocompleterTag


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




problem with s:select

2014-12-21 Thread Yaragalla Muralidhar
hi i have a employee dto with 10 fields. In s:Select  how can i map empid
as value and emp name as display string?

I know how to do it with hashmap but without creating that additional
hashmaps and lists can we directly map the List of employee dto's to
s:select tag?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem with s:select

2014-12-21 Thread Yaragalla Muralidhar
Thank u so much. it worked.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sun, Dec 21, 2014 at 7:36 PM, Johannes Geppert jo...@apache.org wrote:

 Please take a look at the documentation for the select tag. [1]
 There are some examples how to use it.

 s:select
 name=employee
 list=employeeList
 listKey=empId
 listValue=empName/



 [1] https://cwiki.apache.org/confluence/display/WW/select

 Best Regards

 Johannes

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


 2014-12-21 14:16 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
 
  hi i have a employee dto with 10 fields. In s:Select  how can i map
 empid
  as value and emp name as display string?
 
  I know how to do it with hashmap but without creating that additional
  hashmaps and lists can we directly map the List of employee dto's to
  s:select tag?
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



label not working

2014-12-20 Thread Yaragalla Muralidhar
Hi I am using the following code

s:textfield name=referMan cssClass=textField label=hghlheghhffehk
cssStyle=width:270px;margin-left:20px;margin-top: 10px;/ /div

I am not sure why label is not getting rendered? Am i missing something?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem with i18n

2014-12-20 Thread Yaragalla Muralidhar
i use simple theme

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 3:16 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 What theme do you use?

 (on mobile)
 20 gru 2014 08:35 Yaragalla Muralidhar yaragallamur...@gmail.com
 napisał(a):

  I am using eclipse. yes it is copied into same package.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Sat, Dec 20, 2014 at 12:46 PM, Lukasz Lenart lukaszlen...@apache.org
 
  wrote:
 
   2014-12-20 4:57 GMT+01:00 Yaragalla Muralidhar 
  yaragallamur...@gmail.com
   :
Hi I have created an action class and i have created an properties
 file
with the same name as action class. Then i am using the following
 code
   
s:textfield name=sampleid cssClass=textField label
 readonly=true
key=sample.reg.sampleid/
   
Even though the resource bundle key is specified the label is anot
appearing for the text field. is there something i am missing? is
 some
where else also need to configure for localised resource bundle?
  
   Can you confirm that the resource file was copied to the same
   folder/package as the action's class (I'm not asking about the source,
   but compiled code)? What do you use to manage the project, Maven?
  
  
   Regards
   --
   Łukasz
   + 48 606 323 122 http://www.lenart.org.pl/
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 



Re: label not working

2014-12-20 Thread Yaragalla Muralidhar
I am using simple theme. the text field is rendered without a label.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 3:11 PM, Chris Pratt thechrispr...@gmail.com
wrote:

 What theme are you using, and what does the output HTML look like?
   (*Chris*)
 On Sat Dec 20 2014 at 1:35:46 AM Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi I am using the following code
 
  s:textfield name=referMan cssClass=textField label=hghlheghhffehk
  cssStyle=width:270px;margin-left:20px;margin-top: 10px;/ /div
 
  I am not sure why label is not getting rendered? Am i missing something?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



Re: problem with i18n

2014-12-20 Thread Yaragalla Muralidhar
ok thank u so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 3:21 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-20 10:48 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
  i use simple theme

 labels are generated only with one of the Xhtml themes, if use simple
 theme you must add label tag by yourself.


 REgards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




Problem with form tag

2014-12-19 Thread Yaragalla Muralidhar
I am using struts2.3.20. I have designed my page using divs. Everything is
perfect. at the end i have added s:form tag. all the alignment went
wrong. The page looks awkward. what could be the problem?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: Problem with form tag

2014-12-19 Thread Yaragalla Muralidhar
Thank u so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 3:26 AM, Dave Newton davelnew...@gmail.com wrote:

 The default XHTML theme? Hard to say without actionable details.
 On Dec 19, 2014 4:52 PM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  I am using struts2.3.20. I have designed my page using divs. Everything
 is
  perfect. at the end i have added s:form tag. all the alignment went
  wrong. The page looks awkward. what could be the problem?
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



problem with select tag

2014-12-19 Thread Yaragalla Muralidhar
Hi i am using the select tag as below

s:select  name=branches
 headerKey=-1  headerValue=Select Branch
   list=branches   cssClass=select
 required=true  /

by default it should show select Branch but it is showing one of the
values as the default value. Am i missing something?

 I want Select Branches as the default option.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem with select tag

2014-12-19 Thread Yaragalla Muralidhar
Which property  are u asking? branches is properly set in action that is
the reason it is showing one of the value.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 8:28 AM, Dave Newton davelnew...@gmail.com wrote:

 Is the property set in the Acton?
 On Dec 19, 2014 9:54 PM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  Hi i am using the select tag as below
 
  s:select  name=branches
   headerKey=-1  headerValue=Select Branch
 list=branches   cssClass=select
   required=true  /
 
  by default it should show select Branch but it is showing one of the
  values as the default value. Am i missing something?
 
   I want Select Branches as the default option.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



Re: problem with select tag

2014-12-19 Thread Yaragalla Muralidhar
i mean 'list attribute is set with the property in action class. The same
code is working fine on the remaining page. Thanking you.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 8:32 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Which property  are u asking? branches is properly set in action that is
 the reason it is showing one of the value.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Sat, Dec 20, 2014 at 8:28 AM, Dave Newton davelnew...@gmail.com
 wrote:

 Is the property set in the Acton?
 On Dec 19, 2014 9:54 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
 wrote:

  Hi i am using the select tag as below
 
  s:select  name=branches
   headerKey=-1  headerValue=Select Branch
 list=branches   cssClass=select
   required=true  /
 
  by default it should show select Branch but it is showing one of the
  values as the default value. Am i missing something?
 
   I want Select Branches as the default option.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 





problem with i18n

2014-12-19 Thread Yaragalla Muralidhar
Hi I have created an action class and i have created an properties file
with the same name as action class. Then i am using the following code

s:textfield name=sampleid cssClass=textField label readonly=true
key=sample.reg.sampleid/

Even though the resource bundle key is specified the label is anot
appearing for the text field. is there something i am missing? is some
where else also need to configure for localised resource bundle?


*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: problem with select tag

2014-12-19 Thread Yaragalla Muralidhar
Problem solved. Thank you so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 8:37 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 i mean 'list attribute is set with the property in action class. The same
 code is working fine on the remaining page. Thanking you.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Sat, Dec 20, 2014 at 8:32 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 Which property  are u asking? branches is properly set in action that is
 the reason it is showing one of the value.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Sat, Dec 20, 2014 at 8:28 AM, Dave Newton davelnew...@gmail.com
 wrote:

 Is the property set in the Acton?
 On Dec 19, 2014 9:54 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
 wrote:

  Hi i am using the select tag as below
 
  s:select  name=branches
   headerKey=-1  headerValue=Select Branch
 list=branches   cssClass=select
   required=true  /
 
  by default it should show select Branch but it is showing one of the
  values as the default value. Am i missing something?
 
   I want Select Branches as the default option.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 






Re: problem with i18n

2014-12-19 Thread Yaragalla Muralidhar
Is there something i have to configure in struts.xml file?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 9:27 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi I have created an action class and i have created an properties file
 with the same name as action class. Then i am using the following code

 s:textfield name=sampleid cssClass=textField label readonly=true
 key=sample.reg.sampleid/

 Even though the resource bundle key is specified the label is anot
 appearing for the text field. is there something i am missing? is some
 where else also need to configure for localised resource bundle?


 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*



Re: problem with i18n

2014-12-19 Thread Yaragalla Muralidhar
I am using eclipse. yes it is copied into same package.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

On Sat, Dec 20, 2014 at 12:46 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-20 4:57 GMT+01:00 Yaragalla Muralidhar yaragallamur...@gmail.com
 :
  Hi I have created an action class and i have created an properties file
  with the same name as action class. Then i am using the following code
 
  s:textfield name=sampleid cssClass=textField label readonly=true
  key=sample.reg.sampleid/
 
  Even though the resource bundle key is specified the label is anot
  appearing for the text field. is there something i am missing? is some
  where else also need to configure for localised resource bundle?

 Can you confirm that the resource file was copied to the same
 folder/package as the action's class (I'm not asking about the source,
 but compiled code)? What do you use to manage the project, Maven?


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/

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




Re: need help on struts.xml configuration using Struts 2.3, Tomcat 7, Java JDK 1.6

2014-06-20 Thread Yaragalla Muralidhar
localhost:8080/IteratorKFC/menu.action . there is some problem in
this. where is the webapp name?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Fri, Jun 20, 2014 at 5:03 PM, Tri Quan quans...@wans.net wrote:

 All,

 I am green horn in Struts 2 and need help with struts.xml.
 I got the following error when try this URL :

 localhost:8080/IteratorKFC/menu  or localhost:8080/IteratorKFC/menu.action
 .






 what is wrong ?  Incorrect configuration or incorrect URL ?



 Struts has detected an unhandled exception:

 There is no Action mapped for namespace / and action name menu. - [unknown
 location]


 com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:1
 89)



 org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)



 org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsAct
 ionProxyFactory.java:39)



 com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultA
 ctionProxyFactory.java:58)


 org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)



 org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav
 a:434)



 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:243)



 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:210)



 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:240)



 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:164)



 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:462)



 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
 )



 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100
 )


 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)



 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :118)


 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)


 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)



 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
 11Protocol.java:162)



 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
 11Protocol.java:140)



 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
 309)

 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

 java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

 java.lang.Thread.run(Unknown Source)



 Strut.xml source 

 ?xml version=1.0 encoding=UTF-8 ?

 !DOCTYPE struts PUBLIC

 -//Apache Software Foundation//DTD Struts Configuration 2.0//EN

 http://struts.apache.org/dtds/struts-2.0.dtd;



 struts



 !-- Configuration for the default package. --

!-- constant name=struts.action.extension value=/  --



 constant name=struts.devMode value=true /

 package name=IteratorKFC namespace=/IteratorKFC
 extends=struts-default

 action name=menu class=iteratorkfc.IteratorKFCAction
 method=execute

 result
 name=successpages/iteratorkfc.jsp/result

 /action

 /package

 /struts



 ItertorKFCAction java ==

 package iteratorkfc;

 import java.util.*;



 import com.opensymphony.xwork2.ActionSupport;

 public class IteratorKFCAction extends ActionSupport{

 private ListString comboMeals;



 public ListString getComboMeals() {

 return comboMeals;

 }



 public void setComboMeals(ListString comboMeals) {

 this.comboMeals = comboMeals;

 }



 @Override

 public String execute() {



 comboMeals = new ArrayListString();

 comboMeals.add(Snack Plate);

 comboMeals.add(Dinner Plate);

 comboMeals.add(Colonel Chicken Rice
 Combo);

 comboMeals.add(Colonel Burger);

 comboMeals.add(O.R. Fillet Burger);

 comboMeals.add(Zinger Burger);



 return SUCCESS;

 }



 }



 Jsp 

 %@ page contentType=text/html; charset=UTF-8 %

 %@ taglib prefix=s uri=/struts-tags %



 html

 head

 titles:text name=Struts2 Iterator //title

 /head



 body

h1Struts 2 Iterator tag example/h1



h3Simple Iterator/h3

 ol

 s:iterator value=comboMeals

 lis:property //li

 /s:iterator

 /ol



   

Re: Multiple parameter names

2014-05-30 Thread Yaragalla Muralidhar
I think that is not possible.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Fri, May 30, 2014 at 2:08 PM, Mael Le Guével mael.legue...@yahoo.fr
wrote:

 Hi,
 Given the following action:

 public class MyAction extends ActionSupport {
 private String myParam;

 public String getMyParam() {
 return myParam;
 }

 public void setMyParam(String myParam) {
 this.myParam = myParam;
 }
 }

 I am able to pass a myParam parameter to this action.
 For instance:
 http://url-to-my-app/myAction.action?myParam=aValue
 (Yes I know, everyone knows that :))

 What I would like to do is having multiple parameter names that would
 map to myParam. For instance the following URL would also set the
 value of myParam to aValue:
 http://url-to-my-app/myAction.action?anotherName=aValue

 As it can be the source of multiple problems, I guess that struts does
 not allow to do this?
 So, what would be the best way to achieve it? Extending the parameters
 interceptor?

 Thanks.

 Mael.

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




Re: Struts 2 Access messages with JSTL instead of s:text

2014-05-30 Thread Yaragalla Muralidhar
you have to use fmt tags in jstl. Using jstl is a good idea.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Wed, May 28, 2014 at 10:04 AM, Alireza Fattahi afatt...@yahoo.com
wrote:

 In struts 2 the

 s:property value=#pageTitle /

 (is equivalent to...)

 JSTL: ${pageTitle}

 I use JSTL version which is more compact.

 Can we do the same thing with application messages?! To get text from
 message resources we do as below:

 s:text name=label.sample /

 Now, is there any JSTL version insteadof `s:text/` ?


 --


 Meanwhile, I tried to find a way to pass textprovider to jsp. But I could
 not find a way

  public class BaseActionSupport extends ActionSupport{

   //Same as ActionSupport
   private TextProvider Provider; //with setter and getter

   public TextProvider getSampleTextProvider() {

 TextProviderFactory tpf = new TextProviderFactory();
 if (container != null) {
 container.inject(tpf);
 }
 return  tpf.createInstance(getClass(), this);
 }

 }
 In jsp:

 ${provider.text(label.password)} //Error The function text must be
 used with a prefix when a default namespace is not specified

 Is it a correct approach?!

 PS: In the
 http://notsoyellowstickies.blogspot.com/2011/05/making-struts-2-and-jstl-share-message.html
 mentioned that I can somehow share struts 2 and jstl messages, but I should
 still use `fmt:message key=sample.label/`


 ~Regards,
 ~~Alireza Fattahi


Re: How to install Struts?

2013-12-01 Thread Yaragalla Muralidhar
You can start with struts blank war file that comes with Struts
distribution. It will be really a good start for you.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Sun, Dec 1, 2013 at 7:16 PM, Martin Gainty mgai...@hotmail.com wrote:

 From Tomcat Manager Application



 Last textfield is Select WAR file to upload

 upload  $STRUTS2_HOME/apps/showcase.war


 start showcase



 Pingback if you see any errors



 Saludos Cordiales desde EEUU!
 Martin
 __
 Porfavor..no altere ni interrumpir esta communicacion..Gracias





  Date: Sat, 30 Nov 2013 13:28:52 -0500
  From: jfh...@gmail.com
  To: user@struts.apache.org
  Subject: How to install Struts?
 
  Hey guys,
 
  I've been looking for documentation on how to install it but I have not
  found it, all i found is how to start working with it, but nothing on
  how to install it,
 
  This is what I have:
 
  Apache 2.4
  Tomcat 7
 
  All I know is that Struts is made on Java technology, so I guess it
  should be a Java webapp that can be accessed from any other in your
  server, but other than that I don't know what to do.
 
  I downloaded it and noticed there is an app folder with a few .war
  files, so what do I do with them?
 
  Thanks,
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 




how this is working?

2013-11-24 Thread Yaragalla Muralidhar
Hi,
   I have the following property in my action class

private BookDto book=new BookDto();


in my jsp when i use EL as follows i am able to get the value of the
property but i am not able to understand how?

${book.property}

The EL checks only in the scopes for attributes so is book kept as
attribute in some scope?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: how this is working?

2013-11-24 Thread Yaragalla Muralidhar
I am not sure but if anybody could clarify please clarify whether it is a
request wrapper or responce wrapper?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Sun, Nov 24, 2013 at 8:32 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi Dave,
are u sure that it is a response wrapper? I guess it should be a
 request wrapper? Is my guess wrong?

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


 On Sun, Nov 24, 2013 at 8:06 PM, Dave Newton davelnew...@gmail.comwrote:

 Is it publicly exposed?

 It works because S2 has a custom response wrapper that exposes the value
 stack to EL evaluation.

 Dave
  On Nov 24, 2013 8:52 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
 wrote:

  Hi,
 I have the following property in my action class
 
  private BookDto book=new BookDto();
 
 
  in my jsp when i use EL as follows i am able to get the value of the
  property but i am not able to understand how?
 
  ${book.property}
 
  The EL checks only in the scopes for attributes so is book kept as
  attribute in some scope?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 





Re: how this is working?

2013-11-24 Thread Yaragalla Muralidhar
Thank you so much Dave.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Mon, Nov 25, 2013 at 4:16 AM, Dave Newton davelnew...@gmail.com wrote:

 Request wrapper. Easy enough to look up, no?
  On Nov 24, 2013 11:43 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com
 wrote:

  I am not sure but if anybody could clarify please clarify whether it is a
  request wrapper or responce wrapper?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Sun, Nov 24, 2013 at 8:32 PM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
   Hi Dave,
  are u sure that it is a response wrapper? I guess it should be a
   request wrapper? Is my guess wrong?
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
  
   On Sun, Nov 24, 2013 at 8:06 PM, Dave Newton davelnew...@gmail.com
  wrote:
  
   Is it publicly exposed?
  
   It works because S2 has a custom response wrapper that exposes the
 value
   stack to EL evaluation.
  
   Dave
On Nov 24, 2013 8:52 AM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com
   wrote:
  
Hi,
   I have the following property in my action class
   
private BookDto book=new BookDto();
   
   
in my jsp when i use EL as follows i am able to get the value of the
property but i am not able to understand how?
   
${book.property}
   
The EL checks only in the scopes for attributes so is book kept as
attribute in some scope?
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
  
  
  
 



can we avoid extension action?

2013-11-12 Thread Yaragalla Muralidhar
Hi when we submit the form we need to set the form action to struts action.
Something like form action=xxx.action .

So instead of xxx.action can i have a different extension like xxx.fire?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


Re: can we avoid extension action?

2013-11-12 Thread Yaragalla Muralidhar
IS `struts.action.extension=action,,` this a constant in struts.xml file?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Wed, Nov 13, 2013 at 12:32 AM, Dave Newton davelnew...@gmail.com wrote:

 Sure; set `struts.action.extension=action,,` to be whatever you want.


 Although if you use the form tags you don't need to specify it in the form.

 Dave



 On Tue, Nov 12, 2013 at 1:16 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi when we submit the form we need to set the form action to struts
 action.
  Something like form action=xxx.action .
 
  So instead of xxx.action can i have a different extension like
  xxx.fire?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton



Re: can we avoid extension action?

2013-11-12 Thread Yaragalla Muralidhar
Thank you so much Dave.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Wed, Nov 13, 2013 at 12:52 AM, Dave Newton davelnew...@gmail.com wrote:

 Yes.


 On Tue, Nov 12, 2013 at 2:06 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  IS `struts.action.extension=action,,` this a constant in struts.xml
 file?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Wed, Nov 13, 2013 at 12:32 AM, Dave Newton davelnew...@gmail.com
  wrote:
 
   Sure; set `struts.action.extension=action,,` to be whatever you want.
  
  
   Although if you use the form tags you don't need to specify it in the
  form.
  
   Dave
  
  
  
   On Tue, Nov 12, 2013 at 1:16 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
Hi when we submit the form we need to set the form action to struts
   action.
Something like form action=xxx.action .
   
So instead of xxx.action can i have a different extension like
xxx.fire?
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
  
  
  
   --
   e: davelnew...@gmail.com
   m: 908-380-8699
   s: davelnewton_skype
   t: @dave_newton https://twitter.com/dave_newton
   b: Bucky Bits http://buckybits.blogspot.com/
   g: davelnewton https://github.com/davelnewton
   so: Dave Newton http://stackoverflow.com/users/438992/dave-newton
  
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton



Re: can we avoid extension action?

2013-11-12 Thread Yaragalla Muralidhar
The strts filter was mapped to /* so i dont think we should be doing
something in web.xml. Correct me if i am wrong?

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Wed, Nov 13, 2013 at 1:03 AM, Paul Benedict pbened...@apache.org wrote:

 In addition, make sure your web.xml is sending the new paths/extensions to
 the Struts 2 filter.


 On Tue, Nov 12, 2013 at 1:24 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Thank you so much Dave.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Wed, Nov 13, 2013 at 12:52 AM, Dave Newton davelnew...@gmail.com
  wrote:
 
   Yes.
  
  
   On Tue, Nov 12, 2013 at 2:06 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
IS `struts.action.extension=action,,` this a constant in struts.xml
   file?
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
   
On Wed, Nov 13, 2013 at 12:32 AM, Dave Newton davelnew...@gmail.com
 
wrote:
   
 Sure; set `struts.action.extension=action,,` to be whatever you
 want.


 Although if you use the form tags you don't need to specify it in
 the
form.

 Dave



 On Tue, Nov 12, 2013 at 1:16 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi when we submit the form we need to set the form action to
 struts
 action.
  Something like form action=xxx.action .
 
  So instead of xxx.action can i have a different extension like
  xxx.fire?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton
 

   
  
  
  
   --
   e: davelnew...@gmail.com
   m: 908-380-8699
   s: davelnewton_skype
   t: @dave_newton https://twitter.com/dave_newton
   b: Bucky Bits http://buckybits.blogspot.com/
   g: davelnewton https://github.com/davelnewton
   so: Dave Newton http://stackoverflow.com/users/438992/dave-newton
  
 



 --
 Cheers,
 Paul



Re: can we avoid extension action?

2013-11-12 Thread Yaragalla Muralidhar
Thank you for all of ur time.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Wed, Nov 13, 2013 at 1:26 AM, Paul Benedict pbened...@apache.org wrote:

 You are correct.
 On Nov 12, 2013 1:42 PM, Yaragalla Muralidhar yaragallamur...@gmail.com
 
 wrote:

  The strts filter was mapped to /* so i dont think we should be doing
  something in web.xml. Correct me if i am wrong?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Wed, Nov 13, 2013 at 1:03 AM, Paul Benedict pbened...@apache.org
  wrote:
 
   In addition, make sure your web.xml is sending the new paths/extensions
  to
   the Struts 2 filter.
  
  
   On Tue, Nov 12, 2013 at 1:24 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
Thank you so much Dave.
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
   
On Wed, Nov 13, 2013 at 12:52 AM, Dave Newton davelnew...@gmail.com
 
wrote:
   
 Yes.


 On Tue, Nov 12, 2013 at 2:06 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  IS `struts.action.extension=action,,` this a constant in
  struts.xml
 file?
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Wed, Nov 13, 2013 at 12:32 AM, Dave Newton 
  davelnew...@gmail.com
   
  wrote:
 
   Sure; set `struts.action.extension=action,,` to be whatever you
   want.
  
  
   Although if you use the form tags you don't need to specify it
 in
   the
  form.
  
   Dave
  
  
  
   On Tue, Nov 12, 2013 at 1:16 PM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
Hi when we submit the form we need to set the form action to
   struts
   action.
Something like form action=xxx.action .
   
So instead of xxx.action can i have a different extension
  like
xxx.fire?
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ 
 http://yaragalla.blogspot.in/
  *
   
  
  
  
   --
   e: davelnew...@gmail.com
   m: 908-380-8699
   s: davelnewton_skype
   t: @dave_newton https://twitter.com/dave_newton
   b: Bucky Bits http://buckybits.blogspot.com/
   g: davelnewton https://github.com/davelnewton
   so: Dave Newton 
  http://stackoverflow.com/users/438992/dave-newton
   
  
 



 --
 e: davelnew...@gmail.com
 m: 908-380-8699
 s: davelnewton_skype
 t: @dave_newton https://twitter.com/dave_newton
 b: Bucky Bits http://buckybits.blogspot.com/
 g: davelnewton https://github.com/davelnewton
 so: Dave Newton http://stackoverflow.com/users/438992/dave-newton
 

   
  
  
  
   --
   Cheers,
   Paul
  
 



Re: How to avoid ognl exception.

2013-11-11 Thread Yaragalla Muralidhar
too much re factoring also confuses and makes it a great burden for
maintainers. If it is a simple 2-3 form fields that i am not using then let
them be there. It is because the 2-3 fields that are not used in one action
will be used in another action for the same form. we have different modes.
in xx mode it could be the same jsp but we dont use all the form fields
of it but if it is aa mode  then we use all the form fields of the same
jsp.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Mon, Nov 11, 2013 at 2:54 PM, Antonios Gkogkakis gkogk...@tcd.ie wrote:

 why don't you refactor your form and extract common functionality, so you
 don't have unused fields being submitted. You or whoever maintains your
 code will thank you some day.


 Antonios


 On 11 November 2013 06:02, Yaragalla Muralidhar
 yaragallamur...@gmail.comwrote:

  Ya but if i don't do anything why should i have unnecessary setters in my
  action. I am not arguing but it does not make sense to have just setters
  which does nothing.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Sun, Nov 10, 2013 at 10:38 PM, Dale Newfield d...@newfield.org
 wrote:
 
   No-op means no operation, or do nothing.
   -Dale
  
On Nov 10, 2013, at 11:28 AM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
   
I am not sure what op means but i don't have setters for those
   properties
and even the properties itself are not there.
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
   
On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield d...@newfield.org
   wrote:
   
And/or add no-op setters in your actions.
-Dale
   
On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote:
   
Set dev mode false and this shd go
Sent from BlackBerry® on Airtel
   
-Original Message-
From: Yaragalla Muralidhar yaragallamur...@gmail.com
Date: Sun, 10 Nov 2013 21:50:03
To: Struts Users Mailing Listuser@struts.apache.org
Reply-To: Struts Users Mailing List user@struts.apache.org
Subject: How to avoid ognl exception.
   
Hi I have few form fields defined in my html but there is no
corresponding
property in action. I am purposefully not defining them. Why i am
  doing
this is the same form can be submitted to two different actions
 based
   on
the requirement. so one action needs few and the other action needs
  few
form fields. In this case i always get the following exception.
 After
this
exception the server response time is getting very low so how can i
   avoid
getting this exception. If there are corresponding properties in
  action
the
struts have to set the values and if not it has to be silent. It
  should
not
display the following exception. Kindly help me.
   
2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer
Notification
(set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'searchTerms.studentId' on
 'class
com.opensymphony.xwork2.ActionSupport: Error setting expression
'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b'
2013-11-10 21:43:37 WARN  OgnlValueStack:60 - Error setting
  expression
'searchTerms.toAcademicYear' with value
 '[Ljava.lang.String;@69b8b810
  '
ognl.OgnlException: target is null for setProperty(null,
toAcademicYear,
[Ljava.lang.String;@69b8b810)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at
 com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)
at
   
  
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)
at
   
  
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)
at
   
  
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)
at
   
  
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)
at
   
  
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241)
at
   
  
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
   
  
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
   
  
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept

How to avoid ognl exception.

2013-11-10 Thread Yaragalla Muralidhar
Hi I have few form fields defined in my html but there is no corresponding
property in action. I am purposefully not defining them. Why i am doing
this is the same form can be submitted to two different actions based on
the requirement. so one action needs few and the other action needs few
form fields. In this case i always get the following exception. After this
exception the server response time is getting very low so how can i avoid
getting this exception. If there are corresponding properties in action the
struts have to set the values and if not it has to be silent. It should not
display the following exception. Kindly help me.

2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer Notification
(set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'searchTerms.studentId' on 'class
com.opensymphony.xwork2.ActionSupport: Error setting expression
'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b'
2013-11-10 21:43:37 WARN  OgnlValueStack:60 - Error setting expression
'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810'
ognl.OgnlException: target is null for setProperty(null, toAcademicYear,
[Ljava.lang.String;@69b8b810)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at

Re: How to avoid ognl exception.

2013-11-10 Thread Yaragalla Muralidhar
Ok. Thank u so much.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Sun, Nov 10, 2013 at 9:52 PM, umeshawas...@gmail.com wrote:

 Set dev mode false and this shd go
 Sent from BlackBerry® on Airtel

 -Original Message-
 From: Yaragalla Muralidhar yaragallamur...@gmail.com
 Date: Sun, 10 Nov 2013 21:50:03
 To: Struts Users Mailing Listuser@struts.apache.org
 Reply-To: Struts Users Mailing List user@struts.apache.org
 Subject: How to avoid ognl exception.

 Hi I have few form fields defined in my html but there is no corresponding
 property in action. I am purposefully not defining them. Why i am doing
 this is the same form can be submitted to two different actions based on
 the requirement. so one action needs few and the other action needs few
 form fields. In this case i always get the following exception. After this
 exception the server response time is getting very low so how can i avoid
 getting this exception. If there are corresponding properties in action the
 struts have to set the values and if not it has to be silent. It should not
 display the following exception. Kindly help me.

 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer Notification
 (set struts.devMode to false to disable this message):
 Unexpected Exception caught setting 'searchTerms.studentId' on 'class
 com.opensymphony.xwork2.ActionSupport: Error setting expression
 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b'
 2013-11-10 21:43:37 WARN  OgnlValueStack:60 - Error setting expression
 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810'
 ognl.OgnlException: target is null for setProperty(null, toAcademicYear,
 [Ljava.lang.String;@69b8b810)
 at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
 at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
 at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
 at ognl.SimpleNode.setValue(SimpleNode.java:301)
 at ognl.ASTChain.setValueBody(ASTChain.java:227)
 at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
 at ognl.SimpleNode.setValue(SimpleNode.java:301)
 at ognl.Ognl.setValue(Ognl.java:737)
 at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)
 at

 com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)
 at

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

 com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241)
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at

 com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
 at

 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
 at

 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246

Re: How to avoid ognl exception.

2013-11-10 Thread Yaragalla Muralidhar
I am not sure what op means but i don't have setters for those properties
and even the properties itself are not there.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield d...@newfield.org wrote:

 And/or add no-op setters in your actions.
 -Dale

  On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote:
 
  Set dev mode false and this shd go
  Sent from BlackBerry® on Airtel
 
  -Original Message-
  From: Yaragalla Muralidhar yaragallamur...@gmail.com
  Date: Sun, 10 Nov 2013 21:50:03
  To: Struts Users Mailing Listuser@struts.apache.org
  Reply-To: Struts Users Mailing List user@struts.apache.org
  Subject: How to avoid ognl exception.
 
  Hi I have few form fields defined in my html but there is no
 corresponding
  property in action. I am purposefully not defining them. Why i am doing
  this is the same form can be submitted to two different actions based on
  the requirement. so one action needs few and the other action needs few
  form fields. In this case i always get the following exception. After
 this
  exception the server response time is getting very low so how can i avoid
  getting this exception. If there are corresponding properties in action
 the
  struts have to set the values and if not it has to be silent. It should
 not
  display the following exception. Kindly help me.
 
  2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer
 Notification
  (set struts.devMode to false to disable this message):
  Unexpected Exception caught setting 'searchTerms.studentId' on 'class
  com.opensymphony.xwork2.ActionSupport: Error setting expression
  'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b'
  2013-11-10 21:43:37 WARN  OgnlValueStack:60 - Error setting expression
  'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810'
  ognl.OgnlException: target is null for setProperty(null,
 toAcademicYear,
  [Ljava.lang.String;@69b8b810)
  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
  at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
  at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
  at ognl.SimpleNode.setValue(SimpleNode.java:301)
  at ognl.ASTChain.setValueBody(ASTChain.java:227)
  at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
  at ognl.SimpleNode.setValue(SimpleNode.java:301)
  at ognl.Ognl.setValue(Ognl.java:737)
  at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)
  at
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)
  at
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)
  at
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246

Re: How to avoid ognl exception.

2013-11-10 Thread Yaragalla Muralidhar
Ya but if i don't do anything why should i have unnecessary setters in my
action. I am not arguing but it does not make sense to have just setters
which does nothing.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Sun, Nov 10, 2013 at 10:38 PM, Dale Newfield d...@newfield.org wrote:

 No-op means no operation, or do nothing.
 -Dale

  On Nov 10, 2013, at 11:28 AM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:
 
  I am not sure what op means but i don't have setters for those
 properties
  and even the properties itself are not there.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
 
  On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield d...@newfield.org
 wrote:
 
  And/or add no-op setters in your actions.
  -Dale
 
  On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote:
 
  Set dev mode false and this shd go
  Sent from BlackBerry® on Airtel
 
  -Original Message-
  From: Yaragalla Muralidhar yaragallamur...@gmail.com
  Date: Sun, 10 Nov 2013 21:50:03
  To: Struts Users Mailing Listuser@struts.apache.org
  Reply-To: Struts Users Mailing List user@struts.apache.org
  Subject: How to avoid ognl exception.
 
  Hi I have few form fields defined in my html but there is no
  corresponding
  property in action. I am purposefully not defining them. Why i am doing
  this is the same form can be submitted to two different actions based
 on
  the requirement. so one action needs few and the other action needs few
  form fields. In this case i always get the following exception. After
  this
  exception the server response time is getting very low so how can i
 avoid
  getting this exception. If there are corresponding properties in action
  the
  struts have to set the values and if not it has to be silent. It should
  not
  display the following exception. Kindly help me.
 
  2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer
  Notification
  (set struts.devMode to false to disable this message):
  Unexpected Exception caught setting 'searchTerms.studentId' on 'class
  com.opensymphony.xwork2.ActionSupport: Error setting expression
  'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b'
  2013-11-10 21:43:37 WARN  OgnlValueStack:60 - Error setting expression
  'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810'
  ognl.OgnlException: target is null for setProperty(null,
  toAcademicYear,
  [Ljava.lang.String;@69b8b810)
  at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
  at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
  at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
  at ognl.SimpleNode.setValue(SimpleNode.java:301)
  at ognl.ASTChain.setValueBody(ASTChain.java:227)
  at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
  at ognl.SimpleNode.setValue(SimpleNode.java:301)
  at ognl.Ognl.setValue(Ognl.java:737)
  at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)
  at
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)
  at
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)
  at
 
 com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
  at
 
 com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
  at
 
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
  at
 
 com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100

Re: Is this a createclassloader issue - HTTP Status 404 - result 'null' not found

2013-11-03 Thread Yaragalla Muralidhar
Hi i guess that your action class is running fine as per your description.
So check the file  $CATALINA_BASE/conf/catalina.policy  for security
permissions. $CATALINA_BASE is the root directory of the tomcat. Hope
this helps.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*


On Sun, Nov 3, 2013 at 2:50 PM, Fredrik Andersson fredan...@hotmail.comwrote:

 Hello Muralidhar!



 Thanks for your reply!

 Interesting to hear that you do not think this has something to do with
 struts.

 Then I guess either that I have done something wrong or that the service
 provider might have done something wrong with my account.

 Best reagards!

 /Fredrik

 Btw  If you are familiar with Apache and Tomcat do you know in what log
 file you would look to find more info about this? (I seems to have to
 request the log files from the support guys at the webhotel and they email
 it to me later which makes this a bit more difficult to solve this, I do
 not have the privileges my self to look in them.)


  Date: Sat, 2 Nov 2013 09:33:27 +0530
  Subject: Re: Is this a createclassloader issue - HTTP Status 404 -
 result 'null' not found
  From: yaragallamur...@gmail.com
  To: user@struts.apache.org
 
  I don't think it has something to do with struts. The jira you specified
  also clearly says it is the problem with server security policy. And as
 far
  as i know for every web app that you deploy on the server, the server
  creates and maintains a separate classloader for it. So if the security
  policy does not allow creating a classloader then the problem with
 hosting
  service provider.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
  *http://yaragalla.blogspot.in/
  *
 
 
  On Sat, Nov 2, 2013 at 2:32 AM, Fredrik Andersson fredan...@hotmail.com
 wrote:
 
   Hello guys!
  
  
  
   I have bought some space at a webhotel saying that it supports
 application
   that uses struts.
  
   But when I enter a link like a href=login.action Log in/a from my
   index.jsp I just get:
  
  
  
   HTTP Status 404 - result 'null' not found
   type Status report
   message result 'null' not found
   description The requested resource (result 'null' not found) is not
   available.
  
  
   The webhotel uses a Tomcat fronted by a Apache. At the webhotel I have
 add
   a mapping like /* that according to theres doc should forwarding all
   request to the Tomcat.
  
  
  
   I first developed my site at home where it of course works fine in a
   similar environment (tomcat fronted by a apache). At my first attempt
 to
   deploy it at the webhotel I got this error. Unfortenately I can not
 see all
   logs my self, but the support at the webhotel told me that my app
 tried to
   do some createclassloader and that is not allowed for me.
  
  
  
   So in my hunt to find out why this createclassloader-issue derives
 from I
   have stripped the site down to just a simple hello-world-app similar
 like
   this: http://www.mkyong.com/struts2/struts-2-hello-world-example/. (My
   app is supposed to be run as the default app so my.)
  
  
  
   But I still get the same error.
  
  
  
   I found this post:
  
   https://issues.apache.org/jira/browse/WW-1933
  
  
  
   Is the createclassloader-issue coming from struts? Does it sounds
 like
   this might be something that stuts needs to do?
  
  
  
   What do you think guys could I facing the same problem? Is this a
   security-setting-problem? I do not think I got the privileges to change
   security-settings at the webhotel according to what the support first
 told
   me. Is there some other way to solve this?
  
  
  
   Else I think that this product/type_of_account at the webhotel
 promise
   to much. If struts need to do the createclassloader-thing I doubt
 there
   will ever work to run a struts-app or what do you think guys?
  
  
  
   I also post some other info in this mail that might be of interest if
 you
   guys do not think I'm on the right track.
  
  
  
   In my Apache httpd.con I have set this (that I guess is the same
 mapping
   that I have done at the webhotel)
   JkMount /* worker1
  
  
  
   In my web.xml
   filter-mapping
   filter-namestruts2/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
  
  
  
   At the webhotel I have edit the context.xml.default to:
   ?xml version=1.0 encoding=ISO-8859-1?
   Context path= /
  
  
  
   I have also added a context.xml like (that should overide the
   context.xml.default):
   ?xml version=1.0 encoding=ISO-8859-1?
   Context path= override=true /
  
   In my struts.xml i got this:
  
  
   package name=basicstruts2 namespace=/ extends=struts-default
   action name=login
   result/login.jsp/result
   /action
  
   action name=welcome class=se.myapp.WelcomeUserAction
   result name=SUCCESS/welcome.jsp/result
   /action
   /package
  
  
  
   And my index.jsp looks like below, and that renders out fine but when I
   click the link I get the error above:
   %@page 

Re: Is this a createclassloader issue - HTTP Status 404 - result 'null' not found

2013-11-01 Thread Yaragalla Muralidhar
I don't think  it has something to do with struts. The jira you specified
also clearly says it is the problem with server security policy. And as far
as i know for every web app that you deploy on the server, the server
creates and maintains a separate classloader for it. So if the security
policy does not allow creating a classloader then the problem with hosting
service provider.

*Thanks and Regards,*
Muralidhar Yaragalla.
*http://yaragalla.blogspot.in/
*


On Sat, Nov 2, 2013 at 2:32 AM, Fredrik Andersson fredan...@hotmail.comwrote:

 Hello guys!



 I have bought some space at a webhotel saying that it supports application
 that uses struts.

 But when I enter a link like  a href=login.action Log in/a from my
 index.jsp I just get:



 HTTP Status 404 - result 'null' not found
 type Status report
 message result 'null' not found
 description The requested resource (result 'null' not found) is not
 available.


 The webhotel uses a Tomcat fronted by a Apache. At the webhotel I have add
 a mapping like /* that according to theres doc should forwarding all
 request to the Tomcat.



 I first developed my site at home where it of course works fine in a
 similar environment (tomcat fronted by a apache). At my first attempt to
 deploy it at the webhotel I got this error. Unfortenately I can not see all
 logs my self, but the support at the webhotel told me that my app tried to
 do some createclassloader and that is not allowed for me.



 So in my hunt to find out why this createclassloader-issue derives from I
 have stripped the site down to just a simple hello-world-app similar like
 this: http://www.mkyong.com/struts2/struts-2-hello-world-example/. (My
 app is supposed to be run as the default app so my.)



 But I still get the same error.



 I found this post:

 https://issues.apache.org/jira/browse/WW-1933



 Is the createclassloader-issue coming from struts? Does it sounds like
 this might be something that stuts needs to do?



 What do you think guys could I facing the same problem? Is this a
 security-setting-problem? I do not think I got the privileges to change
 security-settings at the webhotel according to what the support first told
 me. Is there some other way to solve this?



 Else I think that this product/type_of_account at the webhotel promise
 to much. If struts need to do the createclassloader-thing I doubt there
 will ever work to run a struts-app or what do you think guys?



 I also post some other info in this mail that might be of interest if you
 guys do not think I'm on the right track.



 In my Apache httpd.con I have set this (that I guess is the same mapping
 that I have done at the webhotel)
 JkMount  /* worker1



 In my web.xml
 filter-mapping
 filter-namestruts2/filter-name
 url-pattern/*/url-pattern
 /filter-mapping



 At the webhotel I have edit the context.xml.default to:
 ?xml version=1.0 encoding=ISO-8859-1?
 Context path= /



 I have also added a context.xml like (that should overide the
 context.xml.default):
 ?xml version=1.0 encoding=ISO-8859-1?
 Context path= override=true /

 In my struts.xml i got this:


 package name=basicstruts2 namespace=/ extends=struts-default
 action name=login
 result/login.jsp/result
 /action

 action name=welcome class=se.myapp.WelcomeUserAction
 result name=SUCCESS/welcome.jsp/result
 /action
 /package



 And my index.jsp looks like below, and that renders out fine but when I
 click the link I get the error above:
 %@page import=se.myapp.WelcomeUserAction%
 %@ page contentType=text/html; charset=UTF-8%
 %@ taglib prefix=s uri=/struts-tags%
 html
 head/head
 body bgcolor=#FF9900
 h1Site is under construction/h1

 a href=login.action Log in/a
 br
 %=new java.util.Date().toString()%
 br
 %=WelcomeUserAction.getDate()%
 /body
 /html



 All this works fine at home.

 So if you guys got any ideas or where to look for more info, please let me
 know.



 Best regards

 Fredrik









Re: No Configuration Error Struts2

2013-10-16 Thread Yaragalla Muralidhar
try the following

package name=db namespace=/ extends=struts-default

instead of

package name= db extends= struts-default

You forgot to add namespace to your package. Hope this solves ur problem.

*Thanks and Regards,*
Muralidhar Yaragalla.
*http://yaragalla.blogspot.in/
*


On Wed, Oct 16, 2013 at 12:30 PM, Srimuralidharan S 
srimuralidhara...@dhyanit.com wrote:

 Hi to all,
  I'm using struts 2 framework with the following configuration
 i received the following warning and my application doesn't works
  [Form] No configuration found for the specified action: '/' in namespace:
 ''. Form action defaulting to 'action' attribute's literal value.


 my struts.xml
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN

 http://struts.apache.org/**dtds/struts-2.0.dtdhttp://struts.apache.org/dtds/struts-2.0.dtd
 
 struts
 constant name=struts.devMode value=true /
 package name= db extends= struts-default
 global-results
 result name = failure/error.jsp/result
 result name=input/invalid.jsp/**result
 /global-results
 action name =start method=back class = com.dhyan.db.DbAccess 
 result name= success/index.jsp/result
 /action
 action name = select method=selectQuery class =
  com.dhyan.db.DbAccess
 result name= success/view.jsp/result
 result name=no-data/invalid2.jsp/**result
 /action
 action name=databasetrigger class =  com.dhyan.db.DbAccess
 result name = success/inserted.jsp/**result
 /action
 /package
 /struts



 my index.jsp
 %@ page language=java contentType=text/html; charset=UTF-8
 pageEncoding=UTF-8%
 %@ taglib prefix = st uri = /struts-tags %
 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
 http://www.w3.org/TR/html4/**loose.dtdhttp://www.w3.org/TR/html4/loose.dtd
 
 html
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 titleDatabase Access/title
 /head
 body
 st:form
 st:div
 st:textfield name=no label=Employee ID value= /
 st:textfield name= name label=Employee Name /
 st:submit value=insert align=center action=databasetrigger/
 st:submit value=view align=center action = select/
 /st:div
 /st:form
 /body
 /html




 my web.xml
 ?xml version=1.0 encoding=UTF-8?
 web-app 
 xmlns:xsi=http://www.w3.org/**2001/XMLSchema-instancehttp://www.w3.org/2001/XMLSchema-instance
 xmlns=http://java.sun.com/**xml/ns/javaeehttp://java.sun.com/xml/ns/javaee
 xmlns:web=http://java.sun.**com/xml/ns/javaee/web-app_2_5.**xsdhttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
 xsi:schemaLocation=http://**java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/**javaee/web-app_2_5.xsdhttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
 id=WebApp_ID version=2.5
 display-namedbcon/display-**name
 welcome-file-list
 welcome-fileindex.jsp/**welcome-file
 /welcome-file-list

 filter
 filter-namestruts2/filter-**name
 filter-classorg.apache.**struts2.dispatcher.**FilterDispatcher/filter-*
 *class
 /filter

 filter-mapping
 filter-namestruts2/filter-**name
 url-pattern/*/url-pattern
 /filter-mapping
 /web-app


 Please help me in to overcome this problem
 --
 Regards,
 Srimuralidharan.S


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




Re: Parent package is not defined

2013-10-05 Thread Yaragalla Muralidhar
have you registered your myPlugin in struts,xml file.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Sat, Oct 5, 2013 at 8:11 PM, Umesh Awasthi umeshawas...@gmail.comwrote:

 Hi All,

 Facing Parent package is not defined exception and not sure where things
 are worng.

 I have created a new plugin and want to use this plugin in my web-app, this
 is how i have defined my plugin package

 package name=myPlugin extends=struts-default

 For testing purpose i created a blank application by using
 struts2-archetype-blank and this is how i am using plugin package

  package name=example namespace=/example extends=myPlugin

 but i am getting following exception on server startup

 Caused by: Unable to load configuration.
 Caused by: Parent package is not defined: myPlugin - [unknown location]

 It seems that plugin is not getting included.
 Initially i was serving plugin by Maven but in order to check i placed jar
 inside lib folder and included it in class-path.

 Any idea where or what i am doing wrong ?

 --
 With Regards
 Umesh Awasthi
 http://www.travellingrants.com/



Re: Parent package is not defined

2013-10-05 Thread Yaragalla Muralidhar
You have written your plugin (your own module) and for that you might have
written an xml file which contains definitions of actions and all other
things for your module. for example plugin.xml. I believe this
statement package
name=myPlugin extends=struts-default you posted is from that xml
file. If you have written your own modules. The config xml file of your
module (Ex:-plugin.xml) should be declared in struts.xml file as shown below

include file=full path to your modules xml file/

for example:-

include file=xxx/plugin.xml/

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Sat, Oct 5, 2013 at 8:33 PM, Umesh Awasthi umeshawas...@gmail.comwrote:

 what you mean by registered plugin with struts.xml?


 On Sat, Oct 5, 2013 at 8:31 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  have you registered your myPlugin in struts,xml file.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
  *
  *
 
 
  On Sat, Oct 5, 2013 at 8:11 PM, Umesh Awasthi umeshawas...@gmail.com
  wrote:
 
   Hi All,
  
   Facing Parent package is not defined exception and not sure where
  things
   are worng.
  
   I have created a new plugin and want to use this plugin in my web-app,
  this
   is how i have defined my plugin package
  
   package name=myPlugin extends=struts-default
  
   For testing purpose i created a blank application by using
   struts2-archetype-blank and this is how i am using plugin package
  
package name=example namespace=/example extends=myPlugin
  
   but i am getting following exception on server startup
  
   Caused by: Unable to load configuration.
   Caused by: Parent package is not defined: myPlugin - [unknown location]
  
   It seems that plugin is not getting included.
   Initially i was serving plugin by Maven but in order to check i placed
  jar
   inside lib folder and included it in class-path.
  
   Any idea where or what i am doing wrong ?
  
   --
   With Regards
   Umesh Awasthi
   http://www.travellingrants.com/
  
 



 --
 With Regards
 Umesh Awasthi
 http://www.travellingrants.com/



is there a way to get action name in the execute method?

2013-09-29 Thread Yaragalla Muralidhar
Hi for some reason i need to know the action name that is executed in
action class execute method. Is it possible to get the action name to which
the action class is mapped to in the action classes execute method?


*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


Re: is there a way to get action name in the execute method?

2013-09-29 Thread Yaragalla Muralidhar
I got the answer. Thanks.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Sun, Sep 29, 2013 at 11:22 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi for some reason i need to know the action name that is executed in
 action class execute method. Is it possible to get the action name to which
 the action class is mapped to in the action classes execute method?


 *Thanks and Regards,*
 Muralidhar Yaragalla.
 *
 *



Re: is there a way to get action name in the execute method?

2013-09-29 Thread Yaragalla Muralidhar
hi my problem is refresh, back and forward buttons in the browser. This
buttons though are very help full, sometimes this may lead to duplicate
submissions and can mess up the database. In solving this problem at some
point i thought it will be of great help if i can get the action name of
the action class that is being executed.

The following is the way to get the action name in the action class:-

ActionContext.getContext().getName()

The factory method getContext() in the ActionContext class returns the
ActionContext object. so the getName() method in the ActionContext
class returns the name of the action.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Mon, Sep 30, 2013 at 8:03 AM, Dale Newfield d...@newfield.org wrote:

 For the benefit of others in the future searching archives of this list
 for the answer to the same question, would you please describe your
 scenario and solution in another post?

 -Dale


 On 9/29/13 2:03 PM, Yaragalla Muralidhar wrote:

 I got the answer. Thanks.

 *Thanks and Regards,*

 Muralidhar Yaragalla.

 On Sun, Sep 29, 2013 at 11:22 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

  Hi for some reason i need to know the action name that is executed in
 action class execute method. Is it possible to get the action name to
 which
 the action class is mapped to in the action classes execute method?


 *Thanks and Regards,*
 Muralidhar Yaragalla.





Re: how to enable client side validations?

2013-09-27 Thread Yaragalla Muralidhar
Ok will try. Thank u so much.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Fri, Sep 27, 2013 at 11:09 AM, Johannes Geppert jo...@apache.org wrote:

 You can try out Client AJAX Validation.

 This is described here for DOJO Plugin:
 https://cwiki.apache.org/confluence/display/WW/AJAX+Validation

 And here for the jQuery Plugin:
 http://code.google.com/p/struts2-jquery/wiki/Validation

 Of course you can also implement this logic without any of this plugins.

 Johannes


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



 2013/9/26 Yaragalla Muralidhar yaragallamur...@gmail.com

  Thank you. it helps a lot. We will find alternatives.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
  *
  *
 
 
  On Thu, Sep 26, 2013 at 7:16 PM, Per Pascal Grube
  cyber...@flightmare.netwrote:
 
   I think you have to find somthing else. The client side validation code
  is
   created by the struts tags. I don't think there is a way to get the
  client
   side validation code without the tags.
  
   Regards, Pascal
  
   On Thursday 26 September 2013 18:54:55 Yaragalla Muralidhar wrote:
Any possibilities?
   
*Thanks and Regards,*
Muralidhar Yaragalla.
*
*
   
   
On Thu, Sep 26, 2013 at 5:23 PM, Yaragalla Muralidhar 
   
yaragallamur...@gmail.com wrote:
 please help me out? if not possible we will find alternatives.

 *Thanks and Regards,*
 Muralidhar Yaragalla.
 *
 *


 On Thu, Sep 26, 2013 at 3:43 PM, Yaragalla Muralidhar 

 yaragallamur...@gmail.com wrote:
 hi for client side validations to get enabled some document says
  that
   we
 have to add validate=true to s:form tag of the jsp but we are
  not
 using
 struts tags in jsp so is there a way to enable client side
  validations
 even
 when not using struts tags in jsp?

 Thanks in advance.


 *Thanks and Regards,*
 Muralidhar Yaragalla.
 *
 *
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 



how to enable client side validations?

2013-09-26 Thread Yaragalla Muralidhar
hi for client side validations to get enabled some document says that we
have to add validate=true to s:form tag of the jsp but we are not using
struts tags in jsp so is there a way to enable client side validations even
when not using struts tags in jsp?

Thanks in advance.


*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


Re: how to enable client side validations?

2013-09-26 Thread Yaragalla Muralidhar
please help me out? if not possible we will find alternatives.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Thu, Sep 26, 2013 at 3:43 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 hi for client side validations to get enabled some document says that we
 have to add validate=true to s:form tag of the jsp but we are not using
 struts tags in jsp so is there a way to enable client side validations even
 when not using struts tags in jsp?

 Thanks in advance.


 *Thanks and Regards,*
 Muralidhar Yaragalla.
 *
 *



Re: how to enable client side validations?

2013-09-26 Thread Yaragalla Muralidhar
Any possibilities?

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Thu, Sep 26, 2013 at 5:23 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 please help me out? if not possible we will find alternatives.

 *Thanks and Regards,*
 Muralidhar Yaragalla.
 *
 *


 On Thu, Sep 26, 2013 at 3:43 PM, Yaragalla Muralidhar 
 yaragallamur...@gmail.com wrote:

 hi for client side validations to get enabled some document says that we
 have to add validate=true to s:form tag of the jsp but we are not using
 struts tags in jsp so is there a way to enable client side validations even
 when not using struts tags in jsp?

 Thanks in advance.


 *Thanks and Regards,*
 Muralidhar Yaragalla.
 *
 *





  1   2   >