Re: [OT] Setting up mail server on Linux?

2014-01-07 Thread Per Pascal Grube
Do you need to use postfix? I use  msmtp as mailserver when only sending mail. 

Cheers, Pascal

Paul Benedict  schrieb:

>Anyone experienced with installing/configuring mail servers on Linux? I
>have chosen Postfix as my tool but I'll take any working solution. I don't
>need to receive any emails, only send emails from my domain from a Struts
>application.
>
>-- 
>Cheers,
>Paul


Re: Issues with Struts Tiles

2013-10-06 Thread Per Pascal Grube
One thing, that I saw while looking at your code is that I have a different 
taglib: 

<%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %>

and that I use
 
to include fragments.

Maybe this helps.

Regards, Pascal

On Saturday 05 October 2013 11:04:55 Srineel Mazumdar wrote:
> Hi,
> 
> I am getting the following issues with Tiles + Struts 2 : Please help
> 
> 
> *** SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
> at
> org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:687
> ) at
> org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:478
> ) at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:438)
> 
>  Struts has detected an unhandled exception:
>   *Messages*:
> 
>1. ServletException including path '/WEB-INF/jsp/homepage.jsp'.
>2. ServletException including path '/WEB-INF/jsp/homepage.jsp'.
> 
>   *File*: org/apache/struts/taglib/tiles/InsertTag.java  *Line number*: 687
>  --
> Stacktraces
> *org.apache.tiles.TilesException: ServletException including path
> '/WEB-INF/jsp/homepage.jsp'.*
> 
>
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:6
> 14)
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:2
> 46)
> 
> ***
> 
> *petStoreTilesConfigFile.xml*
> 
> 
> "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>"http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *
> 
> *web.xml*
> 
> *
> http://www.w3.org/2001/XMLSchema-instance";
>   xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>   id="WebApp_ID" version="2.5">
>   NewPetstore
>
>   org.apache.tiles.CONTAINER_FACTORY
>   org.apache.struts2.tiles.StrutsTilesContainerFactory alue>
> org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONF
> IG
> /WEB-INF/petStoreTilesConfigFile.xml
>   
> 
>  
>   webAppRootKey
>   petstore.root
>   
> 
>   
>   
>   log4jConfigLocation
>   /WEB-INF/log4j.properties
>   
> 
>   
>   contextConfigLocation
>   /WEB-INF/dataAccessContext-local.xml
> /WEB-INF/applicationContext.xml
>   
>   
> 
>   
>   org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG param-name> /WEB-INF/petStoreTilesConfigFile.xml
>   
>   
>   struts
>   org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExec
> uteFilter 
> 
>   
>   struts
>   *.action
>   
> 
> 
> 
>   
>   org.springframework.web.context.ContextLoaderListener tener-class> 
> 
> 
>   
>   org.springframework.web.context.request.RequestContextList
> ener 
> 
>   
>   
>   org.apache.struts2.tiles.StrutsTilesListener ss> 
> 
>   
>   index.html
>   index.htm
>   index.jsp
>   default.html
>   default.htm
>   default.jsp
>   
> 
> *
> 
> *
> 
> *homepage.jsp*
> 
> *<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
>   pageEncoding="ISO-8859-1"%>
> 
>  "http://www.w3.org/TR/html4/loose.dtd";>
> <%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>
> 
> 
> 
> 
> 
> Home Page : Pet Store
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *
> 
> *Regards,*
> *Srineel*

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



Re: how to enable client side validations?

2013-09-26 Thread Per Pascal Grube
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  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



Re: json result type not parse OGNL expressions in params

2012-10-21 Thread Per Pascal Grube
Hi,

On Sunday 21 October 2012 03:12:07 JOSE L MARTINEZ-AVIAL wrote:
> Hi,
> I'm using a json result type defined as follows:
> 
> 
> false
>  name="includeProperties">resultName,resultMessage,data.*,fieldErrors.*,actio
> nErrors.*,actionMessages.*  name="excludeNullProperties">true
> true
> ${errorCode}
> 

I don't know if it makes a difference, but I use %{ } in the param tag to get 
the values from my actions.

Regards,

Pascal

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



Re: Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-22 Thread Per Pascal Grube
Hi

I use easymock  to mock service in the action classes.

In the spring context I add:


 
  

Hope thats enough to give you a idea how it could work

Regards,

Pascal

On Wednesday 22 August 2012 15:33:26 Davis, Chad wrote:
> I would like to deploy my app to a UI testing / demo environment.  In this
> environment, the regular business logic objects would be replaced ( via DI
> ) with mock implementations of those resources.  These mocks would return a
> static data set, thus giving a predictable behavior against which we can
> build automated UI tests, provide a lightweight demo environment that
> doesn't need integrated into our rather large and complex real world data
> context, etc.
> 
> My thoughts are to use the Spring integration to inject the mocks.  I'm new
> to doing DI / testing in this kind of setting.  Is anyone doing something
> like this?  Can you share some experiences?
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org

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



Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Per Pascal Grube
Hi,

there is no need to define a spring bean for your struts actions. At least when 
you use a struts.xml. I have not tried what happens when you use annotations. 
As far as I now, all struts actions will be created as prototypes by spring. 
If you define them in the applicationsContext.xml, they will be created as 
singeltons, which can cause issues, if you don't expect this behavior.

Regards,

Pascal

On Wednesday 29 February 2012 07:52:03 Puneet Babbar 2 wrote:
> Thanks for replying to my post, I have already checked that link but still
> no clue as to how to make spring plugin work with the convention plugin.
> 
> Suppose I have an Action  -
> @Action("/login-page")
> public class LoginPage extends ActionSupport {
> 
>   public LoginPage(){
> 
>   }
>   public String execute(){
>   return SUCCESS;
>   }
> }
> 
> 
> I have added spring plugin to my application and have added the following
> bean definition in my applicationContext.xml
> 
> 
> 
> I debugged the application -
> Now when I load my application and send a request for the login-page action,
> I see that the action is being created 2 times 1)When applicationContext is
> read when the application comes up.
> 2)When the request is sent for this action, struts creates another instance
> and this instance is used to service the request.
> 
> So basically, I am not able to get the action object I have created using
> spring to be used by struts to process the requests when using convention
> plugin
> 
> The Struts spring integration works fine when I used the normal struts.xml
> approach(not using convention plugin)
> 
> Now can you help me out?
> 
> 
> Regards
> 
> Puneet
> -Original Message-
> From: Steven Yang [mailto:kenshin...@gmail.com]
> Sent: Wednesday, February 29, 2012 12:16 PM
> To: Struts Users Mailing List
> Subject: Re: Struts, spring integration while using struts annotations
> 
> check this  http://struts.apache.org/2.0.8/docs/spring-plugin.html
> 
> you can use spring along with the annotation in the convention-plugin such
> as @Action, etc
> 
> On Tue, Feb 28, 2012 at 6:01 PM, Puneet Babbar 2 
wrote:
> > Hi,
> > 
> > I am using struts annotations with my applications, I need to add
> > spring's support to my application.
> > I am not able to find any content on how to use the beans(the struts
> > action classes) initialized using spring as my action  when I am using
> > struts annotations?
> > 
> > Regards
> > 
> > Puneet
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org

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



Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Per Pascal Grube
Hi,

there is no need to define a spring bean for your struts actions. At least when 
you use a struts.xml. I have not tried what happens when you use annotations. 
As far as I now, all struts actions will be created as prototypes by spring. 
If you define them in the applicationsContext.xml, they will be created as 
singeltons, which can cause issues, if you don't expect this behavior.

Regards,

Pascal

On Wednesday 29 February 2012 07:52:03 Puneet Babbar 2 wrote:
> Thanks for replying to my post, I have already checked that link but still
> no clue as to how to make spring plugin work with the convention plugin.
> 
> Suppose I have an Action  -
> @Action("/login-page")
> public class LoginPage extends ActionSupport {
> 
>   public LoginPage(){
> 
>   }
>   public String execute(){
>   return SUCCESS;
>   }
> }
> 
> 
> I have added spring plugin to my application and have added the following
> bean definition in my applicationContext.xml
> 
> 
> 
> I debugged the application -
> Now when I load my application and send a request for the login-page action,
> I see that the action is being created 2 times 1)When applicationContext is
> read when the application comes up.
> 2)When the request is sent for this action, struts creates another instance
> and this instance is used to service the request.
> 
> So basically, I am not able to get the action object I have created using
> spring to be used by struts to process the requests when using convention
> plugin
> 
> The Struts spring integration works fine when I used the normal struts.xml
> approach(not using convention plugin)
> 
> Now can you help me out?
> 
> 
> Regards
> 
> Puneet
> -Original Message-
> From: Steven Yang [mailto:kenshin...@gmail.com]
> Sent: Wednesday, February 29, 2012 12:16 PM
> To: Struts Users Mailing List
> Subject: Re: Struts, spring integration while using struts annotations
> 
> check this  http://struts.apache.org/2.0.8/docs/spring-plugin.html
> 
> you can use spring along with the annotation in the convention-plugin such
> as @Action, etc
> 
> On Tue, Feb 28, 2012 at 6:01 PM, Puneet Babbar 2 
wrote:
> > Hi,
> > 
> > I am using struts annotations with my applications, I need to add
> > spring's support to my application.
> > I am not able to find any content on how to use the beans(the struts
> > action classes) initialized using spring as my action  when I am using
> > struts annotations?
> > 
> > Regards
> > 
> > Puneet
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org

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