Re: Struts Application Generator plugin

2019-12-01 Thread Zahid Rahman
Personally I am sticking to  ANSI SQL for OLTP and Business Intelligence.
Because although the majority of the time you are using only subset of sql,
once in a while you may come across a situation where you need to
construct a complex query because the specification requires. In such
situations you may have to utilise , full flexibility sql has to offer. So
it is there if you need it.




On Sun, 1 Dec 2019 at 01:12, M Huzaifah  wrote:

> Hi,..
>
> I was wonder to have  generator like you said. My idea came up when i use
> mybatis generator. Mybatis generator will inspect single column in table
> that we've registeren in config, and generate the POJO,Interface, and XML
> for us. For custom purpose i plan to use it for generate JSP, struts2
> controller, and Spring Service (i use Spring instead).
>
> In the future, this feature will usefull when we need to speedup
> development such as create a CRUD on Master Tables
>
>
> Regards
>
> On Sun, Dec 1, 2019, 08:00 Zahid Rahman  wrote:
>
> > Hi,
> >
> > I am sure you are familiar with the Java Object Orientated Code Generator
> > Plugin ,
> > where you can declare a variable in a class and then you are able to
> > generate
> > the repetitive task of generating code for the Getters and  Setters for
> > that variable.
> > No doubt the experience is rather fun too !.
> >
> > Is there a plugin available where you place your cursor in the
> .jsp.
> > start a GUI plugin.
> >
> > create a field variable of type  [s:textfield  s:radio  s:select
> >  s:checkbox  s:textarea s:checkboxlist  etc.] .
> > select the attributes associated for that field , from a list [ drop down
> > or radio button].
> >
> > You then have option of  Generating the corresponding  class  property,
> > including  create a class if one doesn't exist,
> > Go on to generate code for field getter and setter in the class and even
> > perhaps  the  corresponding  s:property in a selected  JSP (create a JSP
> if
> > one doesn't exist, minimum generated code required code by struts
> > framework), Also  creating the corresponding s:property field just above
> >  TAG.  all following the struts design pattern.
> >
> > As you can see the functionality of the Struts application Generator
> plugin
> > is same as the Object orientated getter an setter, constructor code
> > generator plugin, you are familiar using , but specific for struts
> > framework.
> > The struts Application Generator will also eliminated many  of the
> > unnecessary bugs found by application developers.
> >
> > Please see page 411  ISBN 0-8053-5340-2 Object Orientated Analysis and
> > Design with Applications for further details.
> >
> > Best Regards
> > Zahid
> >
> > .
> >
>


Re: Struts Application Generator plugin

2019-11-30 Thread Zahid Rahman
My suggestion or feature request is not an original idea by any means.
This is how 4GLs (4th Generation Language) work or what they are.
I would even go so far as to say the plugin I suggested does meet the  4GL
definition  completely.
4GLs I have come across are CA OPENROAD , ORACLE FORMS, Visual Basic in FAT
client environments.
(two tier, synchronous communication tightly coupled ).
4GLs like OpenRoad and oracle forms were provided by Database companies,
when the architecture was database centric .

As you know we are now working in a network centric environment where there
is a minimum 3 tier  architectural requirement.
browser, application server, database.
Database is no longer the center of the architecture,
So now it should be the application server companies like spring providing
these plugins.
Alongside the  https://start.spring.io/   initialzr website.

If I put my mind to it I could probably knock one off,
But my focus is some where else and I don't want to divert my attention.

How important is such a feature ?
In my view and from my experience It could add millions of GBP to one
companies bottom line.
That's what the 4GLs did for who those realised the value of it.

Also in my previous post I was referring closing  body TAG .

Please correct me if  I is my understand but the controller is the servlet.
 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter

I was referring to the the auto generation of actions class
public class SomeClass  extends ActionSupport {}

Best Regards

Zahid












On Sun, 1 Dec 2019 at 01:12, M Huzaifah  wrote:

> Hi,..
>
> I was wonder to have  generator like you said. My idea came up when i use
> mybatis generator. Mybatis generator will inspect single column in table
> that we've registeren in config, and generate the POJO,Interface, and XML
> for us. For custom purpose i plan to use it for generate JSP, struts2
> controller, and Spring Service (i use Spring instead).
>
> In the future, this feature will usefull when we need to speedup
> development such as create a CRUD on Master Tables
>
>
> Regards
>
> On Sun, Dec 1, 2019, 08:00 Zahid Rahman  wrote:
>
> > Hi,
> >
> > I am sure you are familiar with the Java Object Orientated Code Generator
> > Plugin ,
> > where you can declare a variable in a class and then you are able to
> > generate
> > the repetitive task of generating code for the Getters and  Setters for
> > that variable.
> > No doubt the experience is rather fun too !.
> >
> > Is there a plugin available where you place your cursor in the
> .jsp.
> > start a GUI plugin.
> >
> > create a field variable of type  [s:textfield  s:radio  s:select
> >  s:checkbox  s:textarea s:checkboxlist  etc.] .
> > select the attributes associated for that field , from a list [ drop down
> > or radio button].
> >
> > You then have option of  Generating the corresponding  class  property,
> > including  create a class if one doesn't exist,
> > Go on to generate code for field getter and setter in the class and even
> > perhaps  the  corresponding  s:property in a selected  JSP (create a JSP
> if
> > one doesn't exist, minimum generated code required code by struts
> > framework), Also  creating the corresponding s:property field just above
> >  TAG.  all following the struts design pattern.
> >
> > As you can see the functionality of the Struts application Generator
> plugin
> > is same as the Object orientated getter an setter, constructor code
> > generator plugin, you are familiar using , but specific for struts
> > framework.
> > The struts Application Generator will also eliminated many  of the
> > unnecessary bugs found by application developers.
> >
> > Please see page 411  ISBN 0-8053-5340-2 Object Orientated Analysis and
> > Design with Applications for further details.
> >
> > Best Regards
> > Zahid
> >
> > .
> >
>


Re: Struts Application Generator plugin

2019-11-30 Thread M Huzaifah
Hi,..

I was wonder to have  generator like you said. My idea came up when i use
mybatis generator. Mybatis generator will inspect single column in table
that we've registeren in config, and generate the POJO,Interface, and XML
for us. For custom purpose i plan to use it for generate JSP, struts2
controller, and Spring Service (i use Spring instead).

In the future, this feature will usefull when we need to speedup
development such as create a CRUD on Master Tables


Regards

On Sun, Dec 1, 2019, 08:00 Zahid Rahman  wrote:

> Hi,
>
> I am sure you are familiar with the Java Object Orientated Code Generator
> Plugin ,
> where you can declare a variable in a class and then you are able to
> generate
> the repetitive task of generating code for the Getters and  Setters for
> that variable.
> No doubt the experience is rather fun too !.
>
> Is there a plugin available where you place your cursor in the .jsp.
> start a GUI plugin.
>
> create a field variable of type  [s:textfield  s:radio  s:select
>  s:checkbox  s:textarea s:checkboxlist  etc.] .
> select the attributes associated for that field , from a list [ drop down
> or radio button].
>
> You then have option of  Generating the corresponding  class  property,
> including  create a class if one doesn't exist,
> Go on to generate code for field getter and setter in the class and even
> perhaps  the  corresponding  s:property in a selected  JSP (create a JSP if
> one doesn't exist, minimum generated code required code by struts
> framework), Also  creating the corresponding s:property field just above
>  TAG.  all following the struts design pattern.
>
> As you can see the functionality of the Struts application Generator plugin
> is same as the Object orientated getter an setter, constructor code
> generator plugin, you are familiar using , but specific for struts
> framework.
> The struts Application Generator will also eliminated many  of the
> unnecessary bugs found by application developers.
>
> Please see page 411  ISBN 0-8053-5340-2 Object Orientated Analysis and
> Design with Applications for further details.
>
> Best Regards
> Zahid
>
> .
>


Struts Application Generator plugin

2019-11-30 Thread Zahid Rahman
Hi,

I am sure you are familiar with the Java Object Orientated Code Generator
Plugin ,
where you can declare a variable in a class and then you are able to
generate
the repetitive task of generating code for the Getters and  Setters for
that variable.
No doubt the experience is rather fun too !.

Is there a plugin available where you place your cursor in the .jsp.
start a GUI plugin.

create a field variable of type  [s:textfield  s:radio  s:select
 s:checkbox  s:textarea s:checkboxlist  etc.] .
select the attributes associated for that field , from a list [ drop down
or radio button].

You then have option of  Generating the corresponding  class  property,
including  create a class if one doesn't exist,
Go on to generate code for field getter and setter in the class and even
perhaps  the  corresponding  s:property in a selected  JSP (create a JSP if
one doesn't exist, minimum generated code required code by struts
framework), Also  creating the corresponding s:property field just above
 TAG.  all following the struts design pattern.

As you can see the functionality of the Struts application Generator plugin
is same as the Object orientated getter an setter, constructor code
generator plugin, you are familiar using , but specific for struts
framework.
The struts Application Generator will also eliminated many  of the
unnecessary bugs found by application developers.

Please see page 411  ISBN 0-8053-5340-2 Object Orientated Analysis and
Design with Applications for further details.

Best Regards
Zahid

.


Re: How to put Spring object in Struts application scope on web startup?

2017-10-06 Thread Lukasz Lenart
Do you have any other idea how it's supposed to be solved? An
interface with a struts.xml entry to bridge Spring bean with a Struts
scope?


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

2017-10-01 5:16 GMT+02:00 Burton Rhodes :
> Nice - I'll take a closer look.  That seems like a decent solution
>
>
> On Sat, Sep 30, 2017 at 4:22 AM, Yasser Zamani 
> wrote:
>
>> Hello Burton,
>>
>> I tested following and seems works but I did not tested if objects are
>> equal by reference (you may get different objects e.g. when scope is
>> prototype):
>>
>> ```java
>> public class MYStrutsPrepareFilter implements Filter {
>>
>>
>> public void doFilter(ServletRequest req, ServletResponse res,
>> FilterChain chain)
>> throws IOException, ServletException {
>>
>> ActionContext actionContext = ActionContext.getContext();
>> if(null != actionContext) {
>> ValueStack stack = actionContext.getValueStack();
>> StrutsSpringObjectFactory objectFactory =
>> (StrutsSpringObjectFactory)
>> actionContext.getInstance(ObjectFactory.class);
>> try {
>> stack.setValue("#application['
>> MYSpringObject']",
>> objectFactory.buildBean("myBeanName",null));
>> } catch (Exception e) {
>> e.printStackTrace();
>> }
>> }
>> chain.doFilter(req, res);
>> }
>> }
>> ```
>>
>> ```xml
>>  
>>  struts2prepare
>>  ...StrutsPrepareFilter
>>  
>>  
>>  MYStrutsPrepareFilter
>>  MYStrutsPrepareFilter
>>  
>>  
>>  struts2execute
>>  ...StrutsExecuteFilter
>>  
>>  
>>  struts2prepare
>>  /*
>>  
>>  
>>  MYStrutsPrepareFilter
>>  /*
>>  
>>  
>>  struts2execute
>>  /*
>>  
>> ```
>>
>> ```jsp
>> 
>> ```
>>
>> Hope this helps!
>> Yasser.
>>
>> On 9/30/2017 1:29 AM, Burton Rhodes wrote:
>> > I have all of these settings in place, but your comments spurred the idea
>> > to have a "BaseAction" class where I autowire my object
>> > (MyApplicationSettings.java) and then extend all of my Actions from this
>> > class.
>> >
>> > Just for my info though... My original line of thinking was to be able to
>> > access the object with the following:
>> >
>> > Map application = (Map) ActionContext.getContext().get("application");
>> > application.get("myApplicationSettings");
>> > ---or---
>> > 
>> >
>> > I just couldn't figure out a way to put the object in the struts
>> > application scope within a listener during startup.  Does that make
>> sense?
>> >
>> > On Fri, Sep 29, 2017 at 11:50 AM, Adam Brin 
>> > wrote:
>> >
>> >> it’s a mixture of things:
>> >>
>> >> * Struts.xml should be setup to know about spring:
>> >>  > >>  value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
>> >>  > >> value="true" />
>> >>  > value="name" />
>> >>
>> >> * register the appropriate application listeners
>> >>
>> >> * add the @Scope variables  to controllers
>> >>
>> >> --
>> >> _
>> >> Adam Brin
>> >> Director of Technology, Digital Antiquity
>> >> 480.965.1278
>> >>
>> >>> On Sep 29, 2017, at 9:03 AM, Burton Rhodes 
>> >> wrote:
>> >>>
>> >>> How do you put a Spring object into the Struts application scope Map on
>> >>> startup of a web application?  I have 2 listeners that I thought would
>> be
>> >>> the usual suspects, but have not had success yet.
>> >>>
>> >>> I have a ServletContextListener class but on the
>> >>> contextInitialized(ServletContextEvent event) method, my spring bean
>> has
>> >>> not been created yet.
>> >>>
>> >>> Secondly, I have a Spring "ApplicationListener", but in the
>> >>> onApplicationEvent(ApplicationEvent event) method,
>> >>> "ServletActionContext.getContext()" is null.  How is this
>> traditionally
>> >>> accomplished?
>> >>>
>> >>> Thanks!
>> >>> Burton
>> >>
>> >>
>> >
>>
>> -
>> 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: How to put Spring object in Struts application scope on web startup?

2017-09-30 Thread Burton Rhodes
Nice - I'll take a closer look.  That seems like a decent solution


On Sat, Sep 30, 2017 at 4:22 AM, Yasser Zamani 
wrote:

> Hello Burton,
>
> I tested following and seems works but I did not tested if objects are
> equal by reference (you may get different objects e.g. when scope is
> prototype):
>
> ```java
> public class MYStrutsPrepareFilter implements Filter {
>
>
> public void doFilter(ServletRequest req, ServletResponse res,
> FilterChain chain)
> throws IOException, ServletException {
>
> ActionContext actionContext = ActionContext.getContext();
> if(null != actionContext) {
> ValueStack stack = actionContext.getValueStack();
> StrutsSpringObjectFactory objectFactory =
> (StrutsSpringObjectFactory)
> actionContext.getInstance(ObjectFactory.class);
> try {
> stack.setValue("#application['
> MYSpringObject']",
> objectFactory.buildBean("myBeanName",null));
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> chain.doFilter(req, res);
> }
> }
> ```
>
> ```xml
>  
>  struts2prepare
>  ...StrutsPrepareFilter
>  
>  
>  MYStrutsPrepareFilter
>  MYStrutsPrepareFilter
>  
>  
>  struts2execute
>  ...StrutsExecuteFilter
>  
>  
>  struts2prepare
>  /*
>  
>  
>  MYStrutsPrepareFilter
>  /*
>  
>  
>  struts2execute
>  /*
>  
> ```
>
> ```jsp
> 
> ```
>
> Hope this helps!
> Yasser.
>
> On 9/30/2017 1:29 AM, Burton Rhodes wrote:
> > I have all of these settings in place, but your comments spurred the idea
> > to have a "BaseAction" class where I autowire my object
> > (MyApplicationSettings.java) and then extend all of my Actions from this
> > class.
> >
> > Just for my info though... My original line of thinking was to be able to
> > access the object with the following:
> >
> > Map application = (Map) ActionContext.getContext().get("application");
> > application.get("myApplicationSettings");
> > ---or---
> > 
> >
> > I just couldn't figure out a way to put the object in the struts
> > application scope within a listener during startup.  Does that make
> sense?
> >
> > On Fri, Sep 29, 2017 at 11:50 AM, Adam Brin 
> > wrote:
> >
> >> it’s a mixture of things:
> >>
> >> * Struts.xml should be setup to know about spring:
> >>   >>  value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
> >>   >> value="true" />
> >>   value="name" />
> >>
> >> * register the appropriate application listeners
> >>
> >> * add the @Scope variables  to controllers
> >>
> >> --
> >> _
> >> Adam Brin
> >> Director of Technology, Digital Antiquity
> >> 480.965.1278
> >>
> >>> On Sep 29, 2017, at 9:03 AM, Burton Rhodes 
> >> wrote:
> >>>
> >>> How do you put a Spring object into the Struts application scope Map on
> >>> startup of a web application?  I have 2 listeners that I thought would
> be
> >>> the usual suspects, but have not had success yet.
> >>>
> >>> I have a ServletContextListener class but on the
> >>> contextInitialized(ServletContextEvent event) method, my spring bean
> has
> >>> not been created yet.
> >>>
> >>> Secondly, I have a Spring "ApplicationListener", but in the
> >>> onApplicationEvent(ApplicationEvent event) method,
> >>> "ServletActionContext.getContext()" is null.  How is this
> traditionally
> >>> accomplished?
> >>>
> >>> Thanks!
> >>> Burton
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>


Re: How to put Spring object in Struts application scope on web startup?

2017-09-30 Thread Yasser Zamani
Hello Burton,

I tested following and seems works but I did not tested if objects are 
equal by reference (you may get different objects e.g. when scope is 
prototype):

```java
public class MYStrutsPrepareFilter implements Filter {


public void doFilter(ServletRequest req, ServletResponse res, 
FilterChain chain)
throws IOException, ServletException {

ActionContext actionContext = ActionContext.getContext();
if(null != actionContext) {
ValueStack stack = actionContext.getValueStack();
StrutsSpringObjectFactory objectFactory = 
(StrutsSpringObjectFactory) 
actionContext.getInstance(ObjectFactory.class);
try {

stack.setValue("#application['MYSpringObject']", 
objectFactory.buildBean("myBeanName",null));
} catch (Exception e) {
e.printStackTrace();
}
}
chain.doFilter(req, res);
}
}
```

```xml
 
 struts2prepare
 ...StrutsPrepareFilter
 
 
 MYStrutsPrepareFilter
 MYStrutsPrepareFilter
 
 
 struts2execute
 ...StrutsExecuteFilter
 
 
 struts2prepare
 /*
 
 
 MYStrutsPrepareFilter
 /*
 
 
 struts2execute
 /*
 
```

```jsp

```

Hope this helps!
Yasser.

On 9/30/2017 1:29 AM, Burton Rhodes wrote:
> I have all of these settings in place, but your comments spurred the idea
> to have a "BaseAction" class where I autowire my object
> (MyApplicationSettings.java) and then extend all of my Actions from this
> class.
> 
> Just for my info though... My original line of thinking was to be able to
> access the object with the following:
> 
> Map application = (Map) ActionContext.getContext().get("application");
> application.get("myApplicationSettings");
> ---or---
> 
> 
> I just couldn't figure out a way to put the object in the struts
> application scope within a listener during startup.  Does that make sense?
> 
> On Fri, Sep 29, 2017 at 11:50 AM, Adam Brin 
> wrote:
> 
>> it’s a mixture of things:
>>
>> * Struts.xml should be setup to know about spring:
>>  >  value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
>>  > value="true" />
>>  
>>
>> * register the appropriate application listeners
>>
>> * add the @Scope variables  to controllers
>>
>> --
>> _________
>> Adam Brin
>> Director of Technology, Digital Antiquity
>> 480.965.1278
>>
>>> On Sep 29, 2017, at 9:03 AM, Burton Rhodes 
>> wrote:
>>>
>>> How do you put a Spring object into the Struts application scope Map on
>>> startup of a web application?  I have 2 listeners that I thought would be
>>> the usual suspects, but have not had success yet.
>>>
>>> I have a ServletContextListener class but on the
>>> contextInitialized(ServletContextEvent event) method, my spring bean has
>>> not been created yet.
>>>
>>> Secondly, I have a Spring "ApplicationListener", but in the
>>> onApplicationEvent(ApplicationEvent event) method,
>>> "ServletActionContext.getContext()" is null.  How is this traditionally
>>> accomplished?
>>>
>>> Thanks!
>>> Burton
>>
>>
> 

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


Re: How to put Spring object in Struts application scope on web startup?

2017-09-29 Thread Burton Rhodes
I have all of these settings in place, but your comments spurred the idea
to have a "BaseAction" class where I autowire my object
(MyApplicationSettings.java) and then extend all of my Actions from this
class.

Just for my info though... My original line of thinking was to be able to
access the object with the following:

Map application = (Map) ActionContext.getContext().get("application");
application.get("myApplicationSettings");
---or---


I just couldn't figure out a way to put the object in the struts
application scope within a listener during startup.  Does that make sense?

On Fri, Sep 29, 2017 at 11:50 AM, Adam Brin 
wrote:

> it’s a mixture of things:
>
> * Struts.xml should be setup to know about spring:
>  value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
>  value="true" />
> 
>
> * register the appropriate application listeners
>
> * add the @Scope variables  to controllers
>
> --
> _
> Adam Brin
> Director of Technology, Digital Antiquity
> 480.965.1278
>
> > On Sep 29, 2017, at 9:03 AM, Burton Rhodes 
> wrote:
> >
> > How do you put a Spring object into the Struts application scope Map on
> > startup of a web application?  I have 2 listeners that I thought would be
> > the usual suspects, but have not had success yet.
> >
> > I have a ServletContextListener class but on the
> > contextInitialized(ServletContextEvent event) method, my spring bean has
> > not been created yet.
> >
> > Secondly, I have a Spring "ApplicationListener", but in the
> > onApplicationEvent(ApplicationEvent event) method,
> > "ServletActionContext.getContext()" is null.  How is this traditionally
> > accomplished?
> >
> > Thanks!
> > Burton
>
>


Re: How to put Spring object in Struts application scope on web startup?

2017-09-29 Thread Adam Brin
it’s a mixture of things:

* Struts.xml should be setup to know about spring:




* register the appropriate application listeners

* add the @Scope variables  to controllers

-- 
_
Adam Brin
Director of Technology, Digital Antiquity
480.965.1278

> On Sep 29, 2017, at 9:03 AM, Burton Rhodes  wrote:
> 
> How do you put a Spring object into the Struts application scope Map on
> startup of a web application?  I have 2 listeners that I thought would be
> the usual suspects, but have not had success yet.
> 
> I have a ServletContextListener class but on the
> contextInitialized(ServletContextEvent event) method, my spring bean has
> not been created yet.
> 
> Secondly, I have a Spring "ApplicationListener", but in the
> onApplicationEvent(ApplicationEvent event) method,
> "ServletActionContext.getContext()" is null.  How is this traditionally
> accomplished?
> 
> Thanks!
> Burton



How to put Spring object in Struts application scope on web startup?

2017-09-29 Thread Burton Rhodes
How do you put a Spring object into the Struts application scope Map on
startup of a web application?  I have 2 listeners that I thought would be
the usual suspects, but have not had success yet.

I have a ServletContextListener class but on the
contextInitialized(ServletContextEvent event) method, my spring bean has
not been created yet.

Secondly, I have a Spring "ApplicationListener", but in the
onApplicationEvent(ApplicationEvent event) method,
"ServletActionContext.getContext()" is null.  How is this traditionally
accomplished?

Thanks!
Burton


Re: Struts application

2013-02-21 Thread Harsh
I am not able to locate struts2 portlet example. can some one help me point
to correct location.
following link doesn't talk about web.xml file configuration
http://struts.apache.org/release/2.0.x/docs/struts-2-portlet-tutorial.html


On Thu, Feb 21, 2013 at 3:59 PM, Brajesh Patel wrote:

> thanks for quick reply I am navigating if found any difficulty come back ;)
>
>
>
> On Wed, Feb 20, 2013 at 11:22 PM, Miguel Almeida 
> wrote:
>
> > Or, if you already use Maven, use the Maven archetypes available at
> > http://struts.apache.org/
> >
> >
> > Miguel Almeida
> >
> > On Wed, 2013-02-20 at 22:31 +0530, Umesh Awasthi wrote:
> >
> > > download sample application from S2 official download section and you
> > will
> > > be able to see how things are being configured and how things are
> > working.
> > >
> > > This is a good place to start and get overview of the structure
> > >
> > > On Wed, Feb 20, 2013 at 10:27 PM, Brajesh Patel <
> > brajeshpate...@gmail.com>wrote:
> > >
> > > > Hi all,
> > > >
> > > > I am looking for an application that provide detail about struts 2
> app
> > > > directory structure and detail about action, and other thing.
> > > >
> > > > that will help lot to me.
> > > >
> > > > --
> > > > Thanks
> > > > Brajesh Patel
> > > >
> > > > skype: brajesh.patel11
> > > > Cell:- +91 8750709907
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
> --
> Thanks
> Brajesh Patel
> Salmonllc.com
> http://bigfish.salmonllc.com/bfDemo.html
>
> skype: brajesh.patel11
> Cell:- +91 8750709907
>


Re: Struts application

2013-02-20 Thread Brajesh Patel
thanks for quick reply I am navigating if found any difficulty come back ;)



On Wed, Feb 20, 2013 at 11:22 PM, Miguel Almeida  wrote:

> Or, if you already use Maven, use the Maven archetypes available at
> http://struts.apache.org/
>
>
> Miguel Almeida
>
> On Wed, 2013-02-20 at 22:31 +0530, Umesh Awasthi wrote:
>
> > download sample application from S2 official download section and you
> will
> > be able to see how things are being configured and how things are
> working.
> >
> > This is a good place to start and get overview of the structure
> >
> > On Wed, Feb 20, 2013 at 10:27 PM, Brajesh Patel <
> brajeshpate...@gmail.com>wrote:
> >
> > > Hi all,
> > >
> > > I am looking for an application that provide detail about struts 2 app
> > > directory structure and detail about action, and other thing.
> > >
> > > that will help lot to me.
> > >
> > > --
> > > Thanks
> > > Brajesh Patel
> > >
> > > skype: brajesh.patel11
> > > Cell:- +91 8750709907
> > >
> >
> >
> >
>
>
>


-- 
Thanks
Brajesh Patel
Salmonllc.com
http://bigfish.salmonllc.com/bfDemo.html

skype: brajesh.patel11
Cell:- +91 8750709907


Re: Struts application

2013-02-20 Thread Miguel Almeida
Or, if you already use Maven, use the Maven archetypes available at
http://struts.apache.org/


Miguel Almeida

On Wed, 2013-02-20 at 22:31 +0530, Umesh Awasthi wrote:

> download sample application from S2 official download section and you will
> be able to see how things are being configured and how things are working.
> 
> This is a good place to start and get overview of the structure
> 
> On Wed, Feb 20, 2013 at 10:27 PM, Brajesh Patel 
> wrote:
> 
> > Hi all,
> >
> > I am looking for an application that provide detail about struts 2 app
> > directory structure and detail about action, and other thing.
> >
> > that will help lot to me.
> >
> > --
> > Thanks
> > Brajesh Patel
> >
> > skype: brajesh.patel11
> > Cell:- +91 8750709907
> >
> 
> 
> 




Re: Struts application

2013-02-20 Thread Umesh Awasthi
download sample application from S2 official download section and you will
be able to see how things are being configured and how things are working.

This is a good place to start and get overview of the structure

On Wed, Feb 20, 2013 at 10:27 PM, Brajesh Patel wrote:

> Hi all,
>
> I am looking for an application that provide detail about struts 2 app
> directory structure and detail about action, and other thing.
>
> that will help lot to me.
>
> --
> Thanks
> Brajesh Patel
>
> skype: brajesh.patel11
> Cell:- +91 8750709907
>



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


Connection between Struts Application and DB.

2012-04-23 Thread Anjib Mulepati

Hi All,

I have my DB and web application running in different machine. And 
whenever my DB machine restart my application fail since it can't 
connect to the DB. I have to restart my application every time my DB start.
I am using Struts Plug-in  to load connection information from web.xml 
file and creating the DAO factory from the information. DAO factory is 
stored in servlet context. Now this daoFactory is used by each DAO class 
to create the connection.


This problem exist in my system for long time and trying to fix it. I 
have put my most code here to make things clear.


1. Context parameter in web.xml


Type of DB.{ 1 = Oracle }
dbType
1


Resource reference for the database.
resRef
jdbc/mydb


2. Plug-in configuration in struts-config.xml



3. My DBConfigPlugin class

public class DBConfigPlugin implements PlugIn {

private static Log log = 
LogFactory.getLog(DBConfigPlugin.class.getName());


private DBConfig dbConfig;

public void destroy() {
//Nothing to do here
}

public void init(ActionServlet servlet, ModuleConfig config) 
throws ServletException {

ServletContext servletContext = servlet.getServletContext();

/* Create factory for database */
String resRef = servletContext.getInitParameter("resRef");
int dbType = 0;
if (resRef == null || resRef.trim().length() == 0) {
log.fatal("Parameter resRef is null or invalid");
}
try {
dbType = 
Integer.parseInt(servletContext.getInitParameter("dbType"));

} catch (NumberFormatException nfe) {
log.fatal(nfe);
log.error("Parameter dbType is not numeric");
}
if (dbType != DBConfig.ORACLE) {
log.fatal("Parameter dbType has to be 1 (Oracle)");
}
DBConfig = new DBConfig(resRef, dbType);
DAOFactory daoFactory = DAOFactory.getDAOFactory(DBConfig);
servletContext.setAttribute("daoFactory", daoFactory);
}

public DBConfig getDBConfig() {
return DBConfig;
}

public void setDBConfig(DBConfig DBConfig) {
this.DBConfig = DBConfig;
}
}

4. Create connection in DAOFactory class
public abstract class DAOFactory {

private DBConfig dbConfig;

public static DAOFactory getDAOFactory(DBConfig dbConfig) {
switch (dbConfig.getDbType()) {
case DBConfig.ORACLE:
return new OracleDAOFactory(dbConfig);
default:
return null;
}
}

public DAOFactory(DBConfig dbConfig) {
this.dbConfig = dbConfig;
}

   public Connection createConnection() throws DAOException {
try {
String str = "java:comp/env/" + dbConfig.getResRef();
DataSource dataSource = (DataSource) 
ServiceLocator.getInstance().getDataSource(str);

return dataSource.getConnection();
} catch (SQLException se) {
throw new DAOException(se.getMessage(), se);
} catch (ServiceLocatorException tase) {
throw new DAOException(tase.getMessage(), tase);
}
   }
}

5. In my com.anjib.actions.BaseAction class

public abstract class BaseAction extends 
org.apache.struts.action.Action {


private static Log log = 
LogFactory.getLog(BaseAction.class.getName());


protected DAOFactory daoFactory = null;

private String message = null;

private UserInfo userInfo = null;

@Override
public ActionForward execute(ActionMapping mapping, ActionForm 
form,

HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
userInfo = new UserInfo();
setUserInfo((UserInfo) 
request.getSession().getAttribute("userInfo"));

ActionErrors errors = new ActionErrors();
if (request.getSession().getAttribute("loginStatus") == null) {
errors.add("error", new 
ActionMessage("error.notloggedin"));

this.saveErrors(request, errors);
return mapping.findForward("sessionEnded");
}
ServletContext servletContext = servlet.getServletContext();
try {
daoFactory = (DAOFactory) 
servletContext.getAttribute("daoFactory");

} catch (NullPointerException npex) {
log.debug(npex);
log.error("Couldn't find the valid factory class.");
message = "Factory value is NULL.";
errors.add("label", new 
ActionMessage("error.null.factory"));

saveErrors(request, errors);
requ

RE: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread Martin Gainty

take a look at /WEB-INF/classes/struts-tiles.xml which should look something 
like

 



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






showcase.index
showcase.index



   


 


Martin
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Thu, 10 Feb 2011 15:00:30 +0530
> Subject: Re: cannot run a simple struts application, server start error - 
> myeclipse
> From: kusha...@gmail.com
> To: user@struts.apache.org
> 
> This one also relates with the XML parser, What are you going to do in your
> application, how it interacts with a parser?
> 
> On Thu, Feb 10, 2011 at 2:49 PM, abhishek jain
> wrote:
> 
> > hi
> > here is another error:
> > cannt understand what it is:
> >
> > Digester.getParser: java.lang.UnsupportedOperationException: This
> > parser does not support specification "null" version "null" at
> > javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)
> > at
> > org.apache.commons.digester.Digester.getFactory(Digester.java:534) at
> > org.apache.commons.digester.Digester.getParser(Digester.java:786) at
> > org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058) at
> > org.apache.commons.digester.Digester.parse(Digester.java:1887) at
> > org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
> > at
> > org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
> > at
> > org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
> > at
> > org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
> > at
> > org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
> > at
> > org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
> > at
> > org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
> > at
> > org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
> > at
> > org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
> > at
> > org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68)
> > at
> > org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
> > at
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at
> > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
> > at
> > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at
> > org.apache.catalina.core

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread Mohamed SIDI
you try to parse a XML File, but there is a null value, you may put out more
trace of exception

2011/2/10 abhishek jain 

> hi
> here is another error:
> cannt understand what it is:
>
> Digester.getParser: java.lang.UnsupportedOperationException: This
> parser does not support specification "null" version "null" at
> javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)
>  at
> org.apache.commons.digester.Digester.getFactory(Digester.java:534)  at
> org.apache.commons.digester.Digester.getParser(Digester.java:786)   at
> org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)   at
> org.apache.commons.digester.Digester.parse(Digester.java:1887)  at
> org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
> at
> org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
>   at
> org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
>  at
> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
>at
> org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
>at
> org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
>  at
> org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
> at
> org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
>  at
> org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
>   at
> org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68)
>   at
> org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
>at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)   at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
>   at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)  at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)   at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)   at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)  at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)  at
> org.apache.catalina.startup.Catalina.start(Catalina.java:566)   at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at
> java.lang.reflect.Method.invoke(Method.java:597)at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>
>
> Please help
>
> thanks
> abhishek
>
> On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake  >wrote:
>
> > It seems there is another xml parser is conflicting. Check the lib folder
> > of
> > the tomcat, there should be another Xml parser there. Remove it, and
> > replace
> > the parser in your application.
> > On 8 Feb 2011 17:38, "abhishek jain"  wrote:
> > > hi,
> > > I noticed if i remove the xerces-2.6.2.jar file and restart the server,
> > it
> > > works fine, dont know why,
> > > Pl. advice the reason and will it have any affect on Hibernate thing in
> > the
> > > project,
> > >
> > > thanks
> > > abhishek
> > >
> > > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain <
> > abhishek.netj...@gmail.com
> > >wrote:
> > >
> > >> hi,
> > >> thanks for replying,
> > >> in myeclipse,if i do contrl + click on the struts-default.xml in
> > >> struts.xml, it opens the file,
> > >> hence it seems this is also not the error,
> > >> thanks
> > >> abhishek
> > >>
> > >>
> > >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI 
> > wrote:
> > >>
> > >>> You should have problem in your classpath, it looks for a file named
> > >>> struts-default in your classpath, so in your classes directory can
> you
> > >>> check
> > >>> if you have

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread Kushan Jayathilake
This one also relates with the XML parser, What are you going to do in your
application, how it interacts with a parser?

On Thu, Feb 10, 2011 at 2:49 PM, abhishek jain
wrote:

> hi
> here is another error:
> cannt understand what it is:
>
> Digester.getParser: java.lang.UnsupportedOperationException: This
> parser does not support specification "null" version "null" at
> javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)
>  at
> org.apache.commons.digester.Digester.getFactory(Digester.java:534)  at
> org.apache.commons.digester.Digester.getParser(Digester.java:786)   at
> org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)   at
> org.apache.commons.digester.Digester.parse(Digester.java:1887)  at
> org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
> at
> org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
>   at
> org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
>  at
> org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
>at
> org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
>at
> org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
>  at
> org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
> at
> org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
>  at
> org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
>   at
> org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68)
>   at
> org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
>at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)   at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
>   at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)  at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)   at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)   at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)  at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>  at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)  at
> org.apache.catalina.startup.Catalina.start(Catalina.java:566)   at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at
> java.lang.reflect.Method.invoke(Method.java:597)at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>
>
> Please help
>
> thanks
> abhishek
>
> On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake  >wrote:
>
> > It seems there is another xml parser is conflicting. Check the lib folder
> > of
> > the tomcat, there should be another Xml parser there. Remove it, and
> > replace
> > the parser in your application.
> > On 8 Feb 2011 17:38, "abhishek jain"  wrote:
> > > hi,
> > > I noticed if i remove the xerces-2.6.2.jar file and restart the server,
> > it
> > > works fine, dont know why,
> > > Pl. advice the reason and will it have any affect on Hibernate thing in
> > the
> > > project,
> > >
> > > thanks
> > > abhishek
> > >
> > > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain <
> > abhishek.netj...@gmail.com
> > >wrote:
> > >
> > >> hi,
> > >> thanks for replying,
> > >> in myeclipse,if i do contrl + click on the struts-default.xml in
> > >> struts.xml, it opens the file,
> > >> hence it seems this is also not the error,
> > >> thanks
> > >> abhishek
> > >>
> > >>
> > >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI 
> > wrote:
> > >>
> > >>> You should have problem in your classpath, it looks for a file named
> > >>> struts-default in your classpath, so in your classes

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-10 Thread abhishek jain
hi
here is another error:
cannt understand what it is:

Digester.getParser: java.lang.UnsupportedOperationException: This
parser does not support specification "null" version "null" at
javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)  
at
org.apache.commons.digester.Digester.getFactory(Digester.java:534)  at
org.apache.commons.digester.Digester.getParser(Digester.java:786)   at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)   at
org.apache.commons.digester.Digester.parse(Digester.java:1887)  at
org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
 at
org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
   at
org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
  at
org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
at
org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
at
org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
  at
org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
 at
org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
  at
org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
   at
org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:68)
   at
org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)   
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) 
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)   at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) 
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)   
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)  at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)  at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)  
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)  at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)  at
org.apache.catalina.startup.Catalina.start(Catalina.java:566)   at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at
java.lang.reflect.Method.invoke(Method.java:597)at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Please help

thanks
abhishek

On Tue, Feb 8, 2011 at 7:00 PM, Kushan Jayathilake wrote:

> It seems there is another xml parser is conflicting. Check the lib folder
> of
> the tomcat, there should be another Xml parser there. Remove it, and
> replace
> the parser in your application.
> On 8 Feb 2011 17:38, "abhishek jain"  wrote:
> > hi,
> > I noticed if i remove the xerces-2.6.2.jar file and restart the server,
> it
> > works fine, dont know why,
> > Pl. advice the reason and will it have any affect on Hibernate thing in
> the
> > project,
> >
> > thanks
> > abhishek
> >
> > On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain <
> abhishek.netj...@gmail.com
> >wrote:
> >
> >> hi,
> >> thanks for replying,
> >> in myeclipse,if i do contrl + click on the struts-default.xml in
> >> struts.xml, it opens the file,
> >> hence it seems this is also not the error,
> >> thanks
> >> abhishek
> >>
> >>
> >> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI 
> wrote:
> >>
> >>> You should have problem in your classpath, it looks for a file named
> >>> struts-default in your classpath, so in your classes directory can you
> >>> check
> >>> if you have this file or not, another alternative, check your
> >>> classpathconfiguration in your eclipse .
> >>>
> >>>
> >>>
> >>> 2011/2/8 abhishek jain 
> >>>
> >>> > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI 
> >>> wrote:
> >>> >
> >>> > > Hi,
> >>> > >
> >>> > > May be you dont have well configure your application context.
>

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread Kushan Jayathilake
It seems there is another xml parser is conflicting. Check the lib folder of
the tomcat, there should be another Xml parser there. Remove it, and replace
the parser in your application.
On 8 Feb 2011 17:38, "abhishek jain"  wrote:
> hi,
> I noticed if i remove the xerces-2.6.2.jar file and restart the server, it
> works fine, dont know why,
> Pl. advice the reason and will it have any affect on Hibernate thing in
the
> project,
>
> thanks
> abhishek
>
> On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain wrote:
>
>> hi,
>> thanks for replying,
>> in myeclipse,if i do contrl + click on the struts-default.xml in
>> struts.xml, it opens the file,
>> hence it seems this is also not the error,
>> thanks
>> abhishek
>>
>>
>> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI  wrote:
>>
>>> You should have problem in your classpath, it looks for a file named
>>> struts-default in your classpath, so in your classes directory can you
>>> check
>>> if you have this file or not, another alternative, check your
>>> classpathconfiguration in your eclipse .
>>>
>>>
>>>
>>> 2011/2/8 abhishek jain 
>>>
>>> > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI 
>>> wrote:
>>> >
>>> > > Hi,
>>> > >
>>> > > May be you dont have well configure your application context.
>>> > >
>>> > > check your web.xml file
>>> > >
>>> > > best wishes !!
>>> > >
>>> > > 2011/2/8 abhishek jain 
>>> > >
>>> > > > Hi,
>>> > > > I am running myeclipse(8.x) on windows. trying my hands on struts
>>> 2.x
>>> > > > application, when i try to run the application i see hte following
>>> > error
>>> > > in
>>> > > > console.
>>> > > >
>>> > > > Dont know why , pl help. due to this i cannt run the application
and
>>> > 404
>>> > > > error appears. I think i narrowed this to possibly remove the
xerces
>>> > > > library, but i am not sure than will other things break.
>>> > > > pl. help.
>>> > > > I am using tomcat 6.
>>> > > >
>>> > > >
>>> > > > Unable to load configuration. - [unknown location]
>>> > > > at
>>> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
>>> > > > at
>>> > > >
>>> >
>>>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
>>> > > > at
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
>>> > > > at
>>> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
>>> > > > at
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>>> > > > at java.lang.Thread.run(Thread.java:619)
>>> > > > Caused by: Unable to load configuration. - [unknown location]
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
>>> > > > at
>>> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
>>> > > > ... 15 more
>>> > > > Caused by: Caught exception while loading file struts-default.xml
-
>>> > > > [unknown
>>> > > > location]
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
>>> > > > at
>>> > > >
>>> > > >
>>> > >
>>> >
>>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.i

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
hi,
I noticed if i remove the xerces-2.6.2.jar file and restart the server, it
works fine, dont know why,
Pl. advice the reason and will it have any affect on Hibernate thing in the
project,

thanks
abhishek

On Tue, Feb 8, 2011 at 3:13 PM, abhishek jain wrote:

> hi,
> thanks for replying,
> in myeclipse,if i do contrl + click on the struts-default.xml in
> struts.xml, it opens the file,
> hence it seems this is also not the error,
> thanks
> abhishek
>
>
> On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI  wrote:
>
>> You should have problem in your classpath, it looks for a file named
>> struts-default in your classpath, so in your classes directory can you
>> check
>> if you have this file or not, another alternative, check your
>> classpathconfiguration in your eclipse .
>>
>>
>>
>> 2011/2/8 abhishek jain 
>>
>> > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI 
>> wrote:
>> >
>> > > Hi,
>> > >
>> > > May be you dont have well configure your application context.
>> > >
>> > > check your web.xml file
>> > >
>> > > best wishes !!
>> > >
>> > > 2011/2/8 abhishek jain 
>> > >
>> > > > Hi,
>> > > > I am running myeclipse(8.x) on windows. trying my hands on struts
>> 2.x
>> > > > application, when i try to run the application i see hte following
>> > error
>> > > in
>> > > > console.
>> > > >
>> > > > Dont know why , pl help. due to this i cannt run the application and
>> > 404
>> > > > error appears. I think i narrowed this to possibly remove the xerces
>> > > > library, but i am not sure than will other things break.
>> > > > pl. help.
>> > > > I am using tomcat 6.
>> > > >
>> > > >
>> > > > Unable to load configuration. - [unknown location]
>> > > >at
>> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
>> > > >at
>> > > >
>> >
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
>> > > >at
>> > > >
>> > >
>> >
>> org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
>> > > >at
>> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
>> > > >at
>> > > >
>> > >
>> >
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>> > > >at java.lang.Thread.run(Thread.java:619)
>> > > > Caused by: Unable to load configuration. - [unknown location]
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
>> > > >at
>> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
>> > > >... 15 more
>> > > > Caused by: Caught exception while loading file struts-default.xml -
>> > > > [unknown
>> > > > location]
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
>> > > >at
>> > > >
>> > > >
>> > >
>> >
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
>> > > >  

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
hi,
thanks for replying,
in myeclipse,if i do contrl + click on the struts-default.xml in struts.xml,
it opens the file,
hence it seems this is also not the error,
thanks
abhishek

On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI  wrote:

> You should have problem in your classpath, it looks for a file named
> struts-default in your classpath, so in your classes directory can you
> check
> if you have this file or not, another alternative, check your
> classpathconfiguration in your eclipse .
>
>
>
> 2011/2/8 abhishek jain 
>
> > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI  wrote:
> >
> > > Hi,
> > >
> > > May be you dont have well configure your application context.
> > >
> > > check your web.xml file
> > >
> > > best wishes !!
> > >
> > > 2011/2/8 abhishek jain 
> > >
> > > > Hi,
> > > > I am running myeclipse(8.x) on windows. trying my hands on struts 2.x
> > > > application, when i try to run the application i see hte following
> > error
> > > in
> > > > console.
> > > >
> > > > Dont know why , pl help. due to this i cannt run the application and
> > 404
> > > > error appears. I think i narrowed this to possibly remove the xerces
> > > > library, but i am not sure than will other things break.
> > > > pl. help.
> > > > I am using tomcat 6.
> > > >
> > > >
> > > > Unable to load configuration. - [unknown location]
> > > >at
> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
> > > >at
> > > >
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
> > > >at
> > > >
> > >
> >
> org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
> > > >at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
> > > >at
> > > >
> > >
> >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> > > >at java.lang.Thread.run(Thread.java:619)
> > > > Caused by: Unable to load configuration. - [unknown location]
> > > >at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
> > > >at
> > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
> > > >... 15 more
> > > > Caused by: Caught exception while loading file struts-default.xml -
> > > > [unknown
> > > > location]
> > > >at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
> > > >at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
> > > >at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
> > > >at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
> > > >at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
> > > >... 17 more
> > > > Caused by: java.lang.ClassCastException:
> > > > org.apache.xerces.parsers.XML11Configuration cannot be cast to
> > > > org.apache.xerces.xni.parser.XMLParserConfiguration
> > > >at org.apache.xerces.parsers.DOMParser.(Unknown Source)
> > > >at org.apache.xerces.parsers.DOMParser.(Unknown Source)
> > > >at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown
> Source)
> > > >at
> > > >
> > > >
> > >
> >
> org.apache.x

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread Mohamed SIDI
You should have problem in your classpath, it looks for a file named
struts-default in your classpath, so in your classes directory can you check
if you have this file or not, another alternative, check your
classpathconfiguration in your eclipse .



2011/2/8 abhishek jain 

> On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI  wrote:
>
> > Hi,
> >
> > May be you dont have well configure your application context.
> >
> > check your web.xml file
> >
> > best wishes !!
> >
> > 2011/2/8 abhishek jain 
> >
> > > Hi,
> > > I am running myeclipse(8.x) on windows. trying my hands on struts 2.x
> > > application, when i try to run the application i see hte following
> error
> > in
> > > console.
> > >
> > > Dont know why , pl help. due to this i cannt run the application and
> 404
> > > error appears. I think i narrowed this to possibly remove the xerces
> > > library, but i am not sure than will other things break.
> > > pl. help.
> > > I am using tomcat 6.
> > >
> > >
> > > Unable to load configuration. - [unknown location]
> > >at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
> > >at
> > >
> > >
> >
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
> > >at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
> > >at
> > >
> >
> org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
> > >at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
> > >at
> > >
> >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> > >at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> > >at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> > >at java.lang.Thread.run(Thread.java:619)
> > > Caused by: Unable to load configuration. - [unknown location]
> > >at
> > >
> > >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
> > >at
> > >
> > >
> >
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
> > >at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
> > >... 15 more
> > > Caused by: Caught exception while loading file struts-default.xml -
> > > [unknown
> > > location]
> > >at
> > >
> > >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
> > >at
> > >
> > >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
> > >at
> > >
> > >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
> > >at
> > >
> > >
> >
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
> > >at
> > >
> > >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
> > >... 17 more
> > > Caused by: java.lang.ClassCastException:
> > > org.apache.xerces.parsers.XML11Configuration cannot be cast to
> > > org.apache.xerces.xni.parser.XMLParserConfiguration
> > >at org.apache.xerces.parsers.DOMParser.(Unknown Source)
> > >at org.apache.xerces.parsers.DOMParser.(Unknown Source)
> > >at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
> > >at
> > >
> > >
> >
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> > > Source)
> > >at
> > >
> > >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.(SAX2DOM.java:69)
> > >at
> > >
> > >
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
> > >at
> > >
> > >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
> > >at
> > >
> > >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI  wrote:

> Hi,
>
> May be you dont have well configure your application context.
>
> check your web.xml file
>
> best wishes !!
>
> 2011/2/8 abhishek jain 
>
> > Hi,
> > I am running myeclipse(8.x) on windows. trying my hands on struts 2.x
> > application, when i try to run the application i see hte following error
> in
> > console.
> >
> > Dont know why , pl help. due to this i cannt run the application and 404
> > error appears. I think i narrowed this to possibly remove the xerces
> > library, but i am not sure than will other things break.
> > pl. help.
> > I am using tomcat 6.
> >
> >
> > Unable to load configuration. - [unknown location]
> >at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
> >at
> >
> >
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
> >at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> >at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> >at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
> >at
> >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
> >at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
> >at
> >
> org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
> >at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
> >at
> >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> >at
> >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> >at
> >
> >
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> >at
> >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> >at
> >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> >at
> >
> >
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> >at java.lang.Thread.run(Thread.java:619)
> > Caused by: Unable to load configuration. - [unknown location]
> >at
> >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
> >at
> >
> >
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
> >at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
> >... 15 more
> > Caused by: Caught exception while loading file struts-default.xml -
> > [unknown
> > location]
> >at
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
> >at
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
> >at
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
> >at
> >
> >
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
> >at
> >
> >
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
> >... 17 more
> > Caused by: java.lang.ClassCastException:
> > org.apache.xerces.parsers.XML11Configuration cannot be cast to
> > org.apache.xerces.xni.parser.XMLParserConfiguration
> >at org.apache.xerces.parsers.DOMParser.(Unknown Source)
> >at org.apache.xerces.parsers.DOMParser.(Unknown Source)
> >at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
> >at
> >
> >
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> > Source)
> >at
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.(SAX2DOM.java:69)
> >at
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
> >at
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
> >at
> >
> >
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
> >at
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
> >at
> >
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:190)
> >at
> >
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:181)
> >at
> >
> >
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167)
> >at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
> >at
> >
> >
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvid

Re: cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread Mohamed SIDI
Hi,

May be you dont have well configure your application context.

check your web.xml file

best wishes !!

2011/2/8 abhishek jain 

> Hi,
> I am running myeclipse(8.x) on windows. trying my hands on struts 2.x
> application, when i try to run the application i see hte following error in
> console.
>
> Dont know why , pl help. due to this i cannt run the application and 404
> error appears. I think i narrowed this to possibly remove the xerces
> library, but i am not sure than will other things break.
> pl. help.
> I am using tomcat 6.
>
>
> Unable to load configuration. - [unknown location]
>at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
>at
>
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
>at
>
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>at
>
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>at
>
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
>at
>
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
>at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
>at
> org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
>at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
>at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
>at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>at
>
> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
>at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
>at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
>at
>
> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
>at java.lang.Thread.run(Thread.java:619)
> Caused by: Unable to load configuration. - [unknown location]
>at
>
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
>at
>
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
>at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
>... 15 more
> Caused by: Caught exception while loading file struts-default.xml -
> [unknown
> location]
>at
>
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
>at
>
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
>at
>
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
>at
>
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
>at
>
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
>... 17 more
> Caused by: java.lang.ClassCastException:
> org.apache.xerces.parsers.XML11Configuration cannot be cast to
> org.apache.xerces.xni.parser.XMLParserConfiguration
>at org.apache.xerces.parsers.DOMParser.(Unknown Source)
>at org.apache.xerces.parsers.DOMParser.(Unknown Source)
>at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
>at
>
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
> Source)
>at
>
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.(SAX2DOM.java:69)
>at
>
> com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
>at
>
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
>at
>
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
>at
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
>at
>
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:190)
>at
>
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:181)
>at
>
> com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167)
>at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
>at
>
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893)
>... 21 more
>
> --
> Thanks and kind Regards,
> Abhishek jain
>



-- 


Cordialement

Mohamed


cannot run a simple struts application, server start error - myeclipse

2011-02-08 Thread abhishek jain
Hi,
I am running myeclipse(8.x) on windows. trying my hands on struts 2.x
application, when i try to run the application i see hte following error in
console.

Dont know why , pl help. due to this i cannt run the application and 404
error appears. I think i narrowed this to possibly remove the xerces
library, but i am not sure than will other things break.
pl. help.
I am using tomcat 6.


Unable to load configuration. - [unknown location]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
Caused by: Unable to load configuration. - [unknown location]
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
... 15 more
Caused by: Caught exception while loading file struts-default.xml - [unknown
location]
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 17 more
Caused by: java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration
at org.apache.xerces.parsers.DOMParser.(Unknown Source)
at org.apache.xerces.parsers.DOMParser.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
at
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.(SAX2DOM.java:69)
at
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:190)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:181)
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893)
... 21 more

-- 
Thanks and kind Regards,
Abhishek jain


Re: basic struts application

2010-03-10 Thread tesla

thanks for reply 
i saw this example in the website struts tutorial and there is no code in
action mappings ?
İ can't understand what am i write to the action mappings?

Paweł Wielgus wrote:
> 
> Hi,
> in action-mappings there is no result defined for your action,
> is it on purpose?
> 
> Best greetings,
> Paweł Wielgus.
> 
> 2010/3/10 tesla :
>>
>> from a few days i'm working on struts and i'm trying to develop an simple
>> web
>> application.
>> i cant see the elements of my array(bookList) on jsp page when i run my
>> program it returns me an empty page where am i wrong please help me i'm
>> losing my mind for two days.
>>
>>
>> Book class
>>
>> public class Book {
>>
>>    private String name;
>>    private String description;
>>    private int price;
>>    private int id;
>>
>>    public Book()
>>   {
>>
>>   }
>>    public Book(String name)
>>    {
>>        this.name=name;
>>    }
>>
>>     public ArrayList loadData()
>>     {
>>         ArrayList kitapListesi = new ArrayList();
>>         kitapListesi.add(new Book("calculus1"));
>>          kitapListesi.add(new Book("calculus2"));
>>         return kitapListesi;
>>     }
>>
>> BookForm Class
>>
>> public class BookForm extends org.apache.struts.action.ActionForm {
>>
>>   private ArrayList bookList;
>>
>>    private String name;
>>
>>    private int number;
>>
>>  public ArrayList getBookList() {
>>        return bookList;
>>    }
>>
>>  public void setBookList(ArrayList bookList) {
>>        this.bookList = bookList;
>>    }
>>
>> BookAction Class
>>
>> public class BookAction extends org.apache.struts.action.Action {
>>
>>    private final static String SUCCESS = "success";
>>
>>    public ActionForward execute(ActionMapping mapping, ActionForm form,
>>            HttpServletRequest request, HttpServletResponse response)
>>            throws Exception {
>>
>>        BookForm bookForm = (BookForm) form;
>>        Book book = new Book();
>>        bookForm.setBookList(book.loadData());
>>
>>
>>        return mapping.findForward(SUCCESS);
>>    }
>> }
>>
>> struts_config.xml
>>
>>  
>>        
>>    
>>
>> 
>>        > type="paket.BookAction"/>
>>    
>>
>> data.jsp
>>
>>   
>>           
>>  
>>  
>>  
>>  
>> 
>> --
>> View this message in context:
>> http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/basic-struts-application-tp27844692p27856795.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: basic struts application

2010-03-10 Thread Saeed Iqbal
Check startsoft on google code.

On 3/10/10, Paweł Wielgus  wrote:
> Hi,
> in action-mappings there is no result defined for your action,
> is it on purpose?
>
> Best greetings,
> Paweł Wielgus.
>
> 2010/3/10 tesla :
>>
>> from a few days i'm working on struts and i'm trying to develop an simple
>> web
>> application.
>> i cant see the elements of my array(bookList) on jsp page when i run my
>> program it returns me an empty page where am i wrong please help me i'm
>> losing my mind for two days.
>>
>>
>> Book class
>>
>> public class Book {
>>
>>    private String name;
>>    private String description;
>>    private int price;
>>    private int id;
>>
>>    public Book()
>>   {
>>
>>   }
>>    public Book(String name)
>>    {
>>        this.name=name;
>>    }
>>
>>     public ArrayList loadData()
>>     {
>>         ArrayList kitapListesi = new ArrayList();
>>         kitapListesi.add(new Book("calculus1"));
>>          kitapListesi.add(new Book("calculus2"));
>>         return kitapListesi;
>>     }
>>
>> BookForm Class
>>
>> public class BookForm extends org.apache.struts.action.ActionForm {
>>
>>   private ArrayList bookList;
>>
>>    private String name;
>>
>>    private int number;
>>
>>  public ArrayList getBookList() {
>>        return bookList;
>>    }
>>
>>  public void setBookList(ArrayList bookList) {
>>        this.bookList = bookList;
>>    }
>>
>> BookAction Class
>>
>> public class BookAction extends org.apache.struts.action.Action {
>>
>>    private final static String SUCCESS = "success";
>>
>>    public ActionForward execute(ActionMapping mapping, ActionForm form,
>>            HttpServletRequest request, HttpServletResponse response)
>>            throws Exception {
>>
>>        BookForm bookForm = (BookForm) form;
>>        Book book = new Book();
>>        bookForm.setBookList(book.loadData());
>>
>>
>>        return mapping.findForward(SUCCESS);
>>    }
>> }
>>
>> struts_config.xml
>>
>>  
>>        
>>    
>>
>> 
>>        > type="paket.BookAction"/>
>>    
>>
>> data.jsp
>>
>>   
>>           
>>  
>>  
>>  
>>  
>> 
>> --
>> View this message in context:
>> http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

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



Re: basic struts application

2010-03-10 Thread Paweł Wielgus
Hi,
in action-mappings there is no result defined for your action,
is it on purpose?

Best greetings,
Paweł Wielgus.

2010/3/10 tesla :
>
> from a few days i'm working on struts and i'm trying to develop an simple web
> application.
> i cant see the elements of my array(bookList) on jsp page when i run my
> program it returns me an empty page where am i wrong please help me i'm
> losing my mind for two days.
>
>
> Book class
>
> public class Book {
>
>    private String name;
>    private String description;
>    private int price;
>    private int id;
>
>    public Book()
>   {
>
>   }
>    public Book(String name)
>    {
>        this.name=name;
>    }
>
>     public ArrayList loadData()
>     {
>         ArrayList kitapListesi = new ArrayList();
>         kitapListesi.add(new Book("calculus1"));
>          kitapListesi.add(new Book("calculus2"));
>         return kitapListesi;
>     }
>
> BookForm Class
>
> public class BookForm extends org.apache.struts.action.ActionForm {
>
>   private ArrayList bookList;
>
>    private String name;
>
>    private int number;
>
>  public ArrayList getBookList() {
>        return bookList;
>    }
>
>  public void setBookList(ArrayList bookList) {
>        this.bookList = bookList;
>    }
>
> BookAction Class
>
> public class BookAction extends org.apache.struts.action.Action {
>
>    private final static String SUCCESS = "success";
>
>    public ActionForward execute(ActionMapping mapping, ActionForm form,
>            HttpServletRequest request, HttpServletResponse response)
>            throws Exception {
>
>        BookForm bookForm = (BookForm) form;
>        Book book = new Book();
>        bookForm.setBookList(book.loadData());
>
>
>        return mapping.findForward(SUCCESS);
>    }
> }
>
> struts_config.xml
>
>  
>        
>    
>
> 
>         type="paket.BookAction"/>
>    
>
> data.jsp
>
>   
>           
>  
>  
>  
>  
> 
> --
> View this message in context: 
> http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



basic struts application

2010-03-09 Thread tesla

from a few days i'm working on struts and i'm trying to develop an simple web
application.
i cant see the elements of my array(bookList) on jsp page when i run my
program it returns me an empty page where am i wrong please help me i'm
losing my mind for two days.


Book class

public class Book {

private String name;
private String description;
private int price;
private int id;

public Book()
   {
   
   }
public Book(String name)
{
this.name=name;
}

 public ArrayList loadData()
 {
 ArrayList kitapListesi = new ArrayList();
 kitapListesi.add(new Book("calculus1"));
  kitapListesi.add(new Book("calculus2"));
 return kitapListesi;
 }

BookForm Class

public class BookForm extends org.apache.struts.action.ActionForm {

   private ArrayList bookList;

private String name;

private int number;

  public ArrayList getBookList() {
return bookList;
}

 public void setBookList(ArrayList bookList) {
this.bookList = bookList;
}

BookAction Class

public class BookAction extends org.apache.struts.action.Action {

private final static String SUCCESS = "success";
 
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {

BookForm bookForm = (BookForm) form;
Book book = new Book();
bookForm.setBookList(book.loadData());
 

return mapping.findForward(SUCCESS);
}
}

struts_config.xml

 







data.jsp

   
   
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/basic-struts-application-tp27844692p27844692.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Dealing / determining lost session in Struts application

2009-11-24 Thread Paul Benedict
None of the errors you're seeing in Struts purely indicate a lost of
the session. I mean, sure, it could be one cause, but I wouldn't bet
my architecture on it. Use a servlet filter.

Paul

On Tue, Nov 24, 2009 at 11:38 PM, Saeed Iqbal  wrote:
> Isnt it that you want try catch block instead of throw'ing exceptions to be
> able to nicely handle errors.
>
> On Wed, Nov 25, 2009 at 11:16 AM, Paul Benedict wrote:
>
>> Dave is correct. In fact, that's not a kludge but a pretty official
>> way of doing things.
>>
>> http://forums.sun.com/thread.jspa?forumID=427&threadID=523120
>>
>> Paul
>>
>> On Tue, Nov 24, 2009 at 12:38 PM, Kawczynski, David
>>  wrote:
>> > How about this kludge:
>> >
>> > the filter checks session isNew()
>> > and checks the referring domain -- if it's null or
>> > not your own domain, send them to the login screen.
>> > Otherwise send them to the session timeout screen.
>> >
>> >
>> >> -Original Message-
>> >> From: Himstedt, Maik (EXTERN: T-Systems on)
>> >> [mailto:extern.maik.himst...@volkswagen.de]
>> >> Sent: Tuesday, November 24, 2009 11:29 AM
>> >> To: user@struts.apache.org
>> >> Subject: Dealing / determining lost session in Struts application
>> >>
>> >> Hi,
>> >>
>> >> I'm tasked with killing a bug related to session management
>> >> and Struts 1.3.10 in a rather conventional JEE web
>> >> application. The problem is that after the session times out,
>> >> the application throws a rather ugly exception, something like:
>> >>
>> >> 2009-11-04 11:45:46,803 ERROR
>> >> de.mypackage.ipad.util.hibernate.HibernateFilter - An
>> >> Exception occured.
>> >> javax.servlet.ServletException: BeanUtils.populate
>> >>       at
>> >> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
>> >>       at
>> >> org.apache.struts.action.RequestProcessor.processPopulate(Requ
>> >> estProcessor.java:821)
>> >>       at
>> >> org.apache.struts.action.RequestProcessor.process(RequestProce
>> >> ssor.java:254)
>> >>       at
>> >> org.apache.struts.action.ActionServlet.process(ActionServlet.j
>> >> ava:1482)
>> >>       at...
>> >>
>> >> What I understand is that after the session is gone, the
>> >> internal Struts processing tries to put some data into
>> >> session-stored objects. It does so with help of Apache
>> >> BeanUtils and I'm aware that this will crash, of course. My
>> >> goal is to present a page with a clean message that the
>> >> session is gone and the user has to re-enter the application.
>> >> Catching the ServletException at application level (via
>> >> web.xml) is a bad idea because of the rather generic
>> >> exception thrown. My current take is that I need a filter
>> >> which is called before the Struts servlet is called and the
>> >> filter checks the session beforehand via standard Java API
>> >> (isNew()). For a new session the user is redirected to a
>> >> descriptive error page. This might work if the user is
>> >> already in the application and takes a break, but isNew()
>> >> will return true at the first entry as well which is
>> >> nonsense, of course.
>> >>
>> >> What is the best practice to deal with this problem for a
>> >> Struts 1.3 application? Or is this not a standard problem and
>> >> the cause might be something different?
>> >>
>> >>
>> >> Mit freundlichen Grüßen
>> >>
>> >>
>> >> Maik Himstedt
>> >>
>> >> T-Systems on site services GmbH
>> >> Procurement Systems
>> >> Telefon/phone: +49-5361-9-44026
>> >> E-Mail: extern.maik.himst...@volkswagen.de
>> >> --
>> >> --
>> >>
>> >> Maik Himstedt
>> >> Consultant
>> >> Benzstraße 25a, 38446 Wolfsburg
>> >> +49-5361-464 78-0 (Tel.)
>> >> +49-5361-464 78-10 (Fax)
>> >> E-Mail: maik.himst...@t-systems.com
>> >> Internet: http://www.t-systems-onsite.de
>> >>
>> >> Geschäftsführung: Stefan Kappe, Thomas Müller-Braun
>> >> Handelsregister: Amtsgericht Berlin HRB 51

Re: Dealing / determining lost session in Struts application

2009-11-24 Thread Saeed Iqbal
Isnt it that you want try catch block instead of throw'ing exceptions to be
able to nicely handle errors.

On Wed, Nov 25, 2009 at 11:16 AM, Paul Benedict wrote:

> Dave is correct. In fact, that's not a kludge but a pretty official
> way of doing things.
>
> http://forums.sun.com/thread.jspa?forumID=427&threadID=523120
>
> Paul
>
> On Tue, Nov 24, 2009 at 12:38 PM, Kawczynski, David
>  wrote:
> > How about this kludge:
> >
> > the filter checks session isNew()
> > and checks the referring domain -- if it's null or
> > not your own domain, send them to the login screen.
> > Otherwise send them to the session timeout screen.
> >
> >
> >> -Original Message-
> >> From: Himstedt, Maik (EXTERN: T-Systems on)
> >> [mailto:extern.maik.himst...@volkswagen.de]
> >> Sent: Tuesday, November 24, 2009 11:29 AM
> >> To: user@struts.apache.org
> >> Subject: Dealing / determining lost session in Struts application
> >>
> >> Hi,
> >>
> >> I'm tasked with killing a bug related to session management
> >> and Struts 1.3.10 in a rather conventional JEE web
> >> application. The problem is that after the session times out,
> >> the application throws a rather ugly exception, something like:
> >>
> >> 2009-11-04 11:45:46,803 ERROR
> >> de.mypackage.ipad.util.hibernate.HibernateFilter - An
> >> Exception occured.
> >> javax.servlet.ServletException: BeanUtils.populate
> >>   at
> >> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
> >>   at
> >> org.apache.struts.action.RequestProcessor.processPopulate(Requ
> >> estProcessor.java:821)
> >>   at
> >> org.apache.struts.action.RequestProcessor.process(RequestProce
> >> ssor.java:254)
> >>   at
> >> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> >> ava:1482)
> >>   at...
> >>
> >> What I understand is that after the session is gone, the
> >> internal Struts processing tries to put some data into
> >> session-stored objects. It does so with help of Apache
> >> BeanUtils and I'm aware that this will crash, of course. My
> >> goal is to present a page with a clean message that the
> >> session is gone and the user has to re-enter the application.
> >> Catching the ServletException at application level (via
> >> web.xml) is a bad idea because of the rather generic
> >> exception thrown. My current take is that I need a filter
> >> which is called before the Struts servlet is called and the
> >> filter checks the session beforehand via standard Java API
> >> (isNew()). For a new session the user is redirected to a
> >> descriptive error page. This might work if the user is
> >> already in the application and takes a break, but isNew()
> >> will return true at the first entry as well which is
> >> nonsense, of course.
> >>
> >> What is the best practice to deal with this problem for a
> >> Struts 1.3 application? Or is this not a standard problem and
> >> the cause might be something different?
> >>
> >>
> >> Mit freundlichen Grüßen
> >>
> >>
> >> Maik Himstedt
> >>
> >> T-Systems on site services GmbH
> >> Procurement Systems
> >> Telefon/phone: +49-5361-9-44026
> >> E-Mail: extern.maik.himst...@volkswagen.de
> >> --
> >> --
> >>
> >> Maik Himstedt
> >> Consultant
> >> Benzstraße 25a, 38446 Wolfsburg
> >> +49-5361-464 78-0 (Tel.)
> >> +49-5361-464 78-10 (Fax)
> >> E-Mail: maik.himst...@t-systems.com
> >> Internet: http://www.t-systems-onsite.de
> >>
> >> Geschäftsführung: Stefan Kappe, Thomas Müller-Braun
> >> Handelsregister: Amtsgericht Berlin HRB 51336
> >> Sitz der Gesellschaft: Berlin
> >>
> > Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New
> Jersey, USA 08889), and/or its affiliates Direct contact information for
> affiliates is available at http://www.merck.com/contact/contacts.html)
> that may be confidential, proprietary copyrighted and/or legally privileged.
> It is intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and then
> delete it from your system.
> >
> >
> > -
> > 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
>
>


-- 
Saeed Iqbal
CEO
http://www.iqbalconsulting.com
Struts - J2EE - Application Architects and Developers


Re: Dealing / determining lost session in Struts application

2009-11-24 Thread Paul Benedict
Dave is correct. In fact, that's not a kludge but a pretty official
way of doing things.

http://forums.sun.com/thread.jspa?forumID=427&threadID=523120

Paul

On Tue, Nov 24, 2009 at 12:38 PM, Kawczynski, David
 wrote:
> How about this kludge:
>
> the filter checks session isNew()
> and checks the referring domain -- if it's null or
> not your own domain, send them to the login screen.
> Otherwise send them to the session timeout screen.
>
>
>> -Original Message-
>> From: Himstedt, Maik (EXTERN: T-Systems on)
>> [mailto:extern.maik.himst...@volkswagen.de]
>> Sent: Tuesday, November 24, 2009 11:29 AM
>> To: user@struts.apache.org
>> Subject: Dealing / determining lost session in Struts application
>>
>> Hi,
>>
>> I'm tasked with killing a bug related to session management
>> and Struts 1.3.10 in a rather conventional JEE web
>> application. The problem is that after the session times out,
>> the application throws a rather ugly exception, something like:
>>
>> 2009-11-04 11:45:46,803 ERROR
>> de.mypackage.ipad.util.hibernate.HibernateFilter - An
>> Exception occured.
>> javax.servlet.ServletException: BeanUtils.populate
>>       at
>> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
>>       at
>> org.apache.struts.action.RequestProcessor.processPopulate(Requ
>> estProcessor.java:821)
>>       at
>> org.apache.struts.action.RequestProcessor.process(RequestProce
>> ssor.java:254)
>>       at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.j
>> ava:1482)
>>       at...
>>
>> What I understand is that after the session is gone, the
>> internal Struts processing tries to put some data into
>> session-stored objects. It does so with help of Apache
>> BeanUtils and I'm aware that this will crash, of course. My
>> goal is to present a page with a clean message that the
>> session is gone and the user has to re-enter the application.
>> Catching the ServletException at application level (via
>> web.xml) is a bad idea because of the rather generic
>> exception thrown. My current take is that I need a filter
>> which is called before the Struts servlet is called and the
>> filter checks the session beforehand via standard Java API
>> (isNew()). For a new session the user is redirected to a
>> descriptive error page. This might work if the user is
>> already in the application and takes a break, but isNew()
>> will return true at the first entry as well which is
>> nonsense, of course.
>>
>> What is the best practice to deal with this problem for a
>> Struts 1.3 application? Or is this not a standard problem and
>> the cause might be something different?
>>
>>
>> Mit freundlichen Grüßen
>>
>>
>> Maik Himstedt
>>
>> T-Systems on site services GmbH
>> Procurement Systems
>> Telefon/phone: +49-5361-9-44026
>> E-Mail: extern.maik.himst...@volkswagen.de
>> --
>> --
>>
>> Maik Himstedt
>> Consultant
>> Benzstraße 25a, 38446 Wolfsburg
>> +49-5361-464 78-0 (Tel.)
>> +49-5361-464 78-10 (Fax)
>> E-Mail: maik.himst...@t-systems.com
>> Internet: http://www.t-systems-onsite.de
>>
>> Geschäftsführung: Stefan Kappe, Thomas Müller-Braun
>> Handelsregister: Amtsgericht Berlin HRB 51336
>> Sitz der Gesellschaft: Berlin
>>
> Notice:  This e-mail message, together with any attachments, contains 
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
> Jersey, USA 08889), and/or its affiliates Direct contact information for 
> affiliates is available at http://www.merck.com/contact/contacts.html) that 
> may be confidential, proprietary copyrighted and/or legally privileged. It is 
> intended solely for the use of the individual or entity named on this 
> message. If you are not the intended recipient, and have received this 
> message in error, please notify us immediately by reply e-mail and then 
> delete it from your system.
>
>
> -
> 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: Dealing / determining lost session in Struts application

2009-11-24 Thread Kawczynski, David
How about this kludge:

the filter checks session isNew() 
and checks the referring domain -- if it's null or 
not your own domain, send them to the login screen.
Otherwise send them to the session timeout screen.


> -Original Message-
> From: Himstedt, Maik (EXTERN: T-Systems on) 
> [mailto:extern.maik.himst...@volkswagen.de] 
> Sent: Tuesday, November 24, 2009 11:29 AM
> To: user@struts.apache.org
> Subject: Dealing / determining lost session in Struts application
> 
> Hi,
> 
> I'm tasked with killing a bug related to session management 
> and Struts 1.3.10 in a rather conventional JEE web 
> application. The problem is that after the session times out, 
> the application throws a rather ugly exception, something like:
> 
> 2009-11-04 11:45:46,803 ERROR 
> de.mypackage.ipad.util.hibernate.HibernateFilter - An 
> Exception occured.
> javax.servlet.ServletException: BeanUtils.populate
>   at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
>   at 
> org.apache.struts.action.RequestProcessor.processPopulate(Requ
> estProcessor.java:821)
>   at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:254)
>   at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
>   at...
> 
> What I understand is that after the session is gone, the 
> internal Struts processing tries to put some data into 
> session-stored objects. It does so with help of Apache 
> BeanUtils and I'm aware that this will crash, of course. My 
> goal is to present a page with a clean message that the 
> session is gone and the user has to re-enter the application. 
> Catching the ServletException at application level (via 
> web.xml) is a bad idea because of the rather generic 
> exception thrown. My current take is that I need a filter 
> which is called before the Struts servlet is called and the 
> filter checks the session beforehand via standard Java API 
> (isNew()). For a new session the user is redirected to a 
> descriptive error page. This might work if the user is 
> already in the application and takes a break, but isNew() 
> will return true at the first entry as well which is 
> nonsense, of course. 
> 
> What is the best practice to deal with this problem for a 
> Struts 1.3 application? Or is this not a standard problem and 
> the cause might be something different?
> 
> 
> Mit freundlichen Grüßen
> 
> 
> Maik Himstedt
> 
> T-Systems on site services GmbH
> Procurement Systems
> Telefon/phone: +49-5361-9-44026
> E-Mail: extern.maik.himst...@volkswagen.de
> --
> --
> 
> Maik Himstedt
> Consultant
> Benzstraße 25a, 38446 Wolfsburg
> +49-5361-464 78-0 (Tel.)
> +49-5361-464 78-10 (Fax)
> E-Mail: maik.himst...@t-systems.com
> Internet: http://www.t-systems-onsite.de 
> 
> Geschäftsführung: Stefan Kappe, Thomas Müller-Braun
> Handelsregister: Amtsgericht Berlin HRB 51336
> Sitz der Gesellschaft: Berlin
> 
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates Direct contact information for 
affiliates is available at http://www.merck.com/contact/contacts.html) that may 
be confidential, proprietary copyrighted and/or legally privileged. It is 
intended solely for the use of the individual or entity named on this message. 
If you are not the intended recipient, and have received this message in error, 
please notify us immediately by reply e-mail and then delete it from your 
system.


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



Dealing / determining lost session in Struts application

2009-11-24 Thread Himstedt, Maik (EXTERN: T-Systems on)
Hi,

I'm tasked with killing a bug related to session management and Struts 1.3.10 
in a rather conventional JEE web application. The problem is that after the 
session times out, the application throws a rather ugly exception, something 
like:

2009-11-04 11:45:46,803 ERROR de.mypackage.ipad.util.hibernate.HibernateFilter 
- An Exception occured.
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at...

What I understand is that after the session is gone, the internal Struts 
processing tries to put some data into session-stored objects. It does so with 
help of Apache BeanUtils and I'm aware that this will crash, of course. My goal 
is to present a page with a clean message that the session is gone and the user 
has to re-enter the application. Catching the ServletException at application 
level (via web.xml) is a bad idea because of the rather generic exception 
thrown. My current take is that I need a filter which is called before the 
Struts servlet is called and the filter checks the session beforehand via 
standard Java API (isNew()). For a new session the user is redirected to a 
descriptive error page. This might work if the user is already in the 
application and takes a break, but isNew() will return true at the first entry 
as well which is nonsense, of course. 

What is the best practice to deal with this problem for a Struts 1.3 
application? Or is this not a standard problem and the cause might be something 
different?


Mit freundlichen Grüßen


Maik Himstedt

T-Systems on site services GmbH
Procurement Systems
Telefon/phone: +49-5361-9-44026
E-Mail: extern.maik.himst...@volkswagen.de


Maik Himstedt
Consultant
Benzstraße 25a, 38446 Wolfsburg
+49-5361-464 78-0 (Tel.)
+49-5361-464 78-10 (Fax)
E-Mail: maik.himst...@t-systems.com
Internet: http://www.t-systems-onsite.de 

Geschäftsführung: Stefan Kappe, Thomas Müller-Braun
Handelsregister: Amtsgericht Berlin HRB 51336
Sitz der Gesellschaft: Berlin


Re: Problem adding sslext to Struts application

2009-10-05 Thread sonavor

I solved my problem.

As I had determined earlier, it was a problem with the Apache - to - Tomcat
connection configuration.

What I didn't realize was that when SSL is turned on in Apache through the
httpd-ssl.conf file, the mapped URL patterns that the AJP13 (mod_jk)
connector is supposed to send over to Tomcat have to be redefined in that
file.  Only that URL patterns though...not all of the stuff you have in the
mod_jk.conf file though.

Once I fixed that problem my sslext managed HTTPS links all started working
fine.


sonavor wrote:
> 
> Some additional information -
> 
> I added some debug logging to monitor the URL requests passing through my
> Struts application servlet filter.
> 
> For the HTTP requests I see my logs in the tomcat server log.  For example
> I see -
> 
> request URI: /MyWebApp/
> 
> and 
> 
> request URI: /MyWebWeb/sectPh.do
> 
> When I click on my link for user registration -
> https://localhost/MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651
> 
> I only get the error message
> Not Found
> The requested URL
> /MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651 was not
> found on this server.
> 
> So that is from the Apache 2.2 web server and the request is never sent to
> my Tomcat 5.5 server for processing.  There must be some additional
> configuration that needs to be in place on the Apache to Tomcat connector.
> 
> -sonavor
> 
> 
> sonavor wrote:
>> 
>> I am trying to provide http/https switching on some URL patterns in my
>> web application.  This web application is running on Tomcat 5.5 and is
>> using Apache 2.2 as the web server.  The version of Struts that I am
>> using is 1.2.9.
>> 
>> I have the Apache 2.2 web server setup with a self-signed certificate and
>> it works fine.  In the Struts application I have added the necessary
>> sslext.jar and the tld as well as modified the struts-config.xml (and
>> necessary JSP sections).  Everything compiles and all of the non-SSL
>> pages work fine.
>> 
>> The problem I am having is with the links and pages that I have set to
>> require HTTPS.  For example, the login screen.  I set my login path in my
>> Struts configuration file like this -
>> 
>>   
>> 
>> 
>> In the JSP I am using the sslext:link tag like this -
>> > styleClass="logintext">Login
>> 
>> When the application is running the login link looks correct to me -
>> https://localhost/MyWebApp/secure/userLogin.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4
>> 
>> However, when I try the link I end up with this failure message -
>> Not Found
>> The requested URL
>> /MyWebApp/register.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 was not
>> found on this server.
>> 
>> I can change the Struts config action definition to this -
>> 
>>   
>> 
>> 
>> and the login link will change to -
>> http://localhost/MyWebApp/secure/userLogin.do
>> 
>> That login works (but it uses HTTP and not HTTPS). 
>> 
>> Does anyone know why the Struts action path is not being found when HTTPS
>> is turned on?
>> 
>> Thanks,
>> -sonavor
>> 
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-adding-sslext-to-Struts-application-tp25756892p25762561.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Problem adding sslext to Struts application

2009-10-05 Thread sonavor

Some additional information -

I added some debug logging to monitor the URL requests passing through my
Struts application servlet filter.

For the HTTP requests I see my logs in the tomcat server log.  For example I
see -

request URI: /MyWebApp/

and 

request URI: /MyWebWeb/sectPh.do

When I click on my link for user registration -
https://localhost/MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651

I only get the error message
Not Found
The requested URL
/MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651 was not
found on this server.

So that is from the Apache 2.2 web server and the request is never sent to
my Tomcat 5.5 server for processing.  There must be some additional
configuration that needs to be in place on the Apache to Tomcat connector.

-sonavor


sonavor wrote:
> 
> I am trying to provide http/https switching on some URL patterns in my web
> application.  This web application is running on Tomcat 5.5 and is using
> Apache 2.2 as the web server.  The version of Struts that I am using is
> 1.2.9.
> 
> I have the Apache 2.2 web server setup with a self-signed certificate and
> it works fine.  In the Struts application I have added the necessary
> sslext.jar and the tld as well as modified the struts-config.xml (and
> necessary JSP sections).  Everything compiles and all of the non-SSL pages
> work fine.
> 
> The problem I am having is with the links and pages that I have set to
> require HTTPS.  For example, the login screen.  I set my login path in my
> Struts configuration file like this -
> 
>   
> 
> 
> In the JSP I am using the sslext:link tag like this -
>  styleClass="logintext">Login
> 
> When the application is running the login link looks correct to me -
> https://localhost/MyWebApp/secure/userLogin.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4
> 
> However, when I try the link I end up with this failure message -
> Not Found
> The requested URL
> /MyWebApp/register.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 was not
> found on this server.
> 
> I can change the Struts config action definition to this -
> 
>   
> 
> 
> and the login link will change to -
> http://localhost/MyWebApp/secure/userLogin.do
> 
> That login works (but it uses HTTP and not HTTPS). 
> 
> Does anyone know why the Struts action path is not being found when HTTPS
> is turned on?
> 
> Thanks,
> -sonavor
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-adding-sslext-to-Struts-application-tp25756892p25757022.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Problem adding sslext to Struts application

2009-10-05 Thread sonavor

I am trying to provide http/https switching on some URL patterns in my web
application.  This web application is running on Tomcat 5.5 and is using
Apache 2.2 as the web server.  The version of Struts that I am using is
1.2.9.

I have the Apache 2.2 web server setup with a self-signed certificate and it
works fine.  In the Struts application I have added the necessary sslext.jar
and the tld as well as modified the struts-config.xml (and necessary JSP
sections).  Everything compiles and all of the non-SSL pages work fine.

The problem I am having is with the links and pages that I have set to
require HTTPS.  For example, the login screen.  I set my login path in my
Struts configuration file like this -

  


In the JSP I am using the sslext:link tag like this -
Login

When the application is running the login link looks correct to me -
https://localhost/MyWebApp/secure/userLogin.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4

However, when I try the link I end up with this failure message -
Not Found
The requested URL
/MyWebApp/register.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 was not
found on this server.

I can change the Struts config action definition to this -

  


and the login link will change to -
http://localhost/MyWebApp/secure/userLogin.do

That login works (but it uses HTTP and not HTTPS). 

Does anyone know why the Struts action path is not being found when HTTPS is
turned on?

Thanks,
-sonavor




-- 
View this message in context: 
http://www.nabble.com/Problem-adding-sslext-to-Struts-application-tp25756892p25756892.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Open an excel in Struts application

2009-04-27 Thread musomesa

 Here is the link to the discussion on Jasperforge
http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=47545
I wasn't aware of a poi-plugin for Struts2 -- can't see it in the registry. I 
used the JasperReports plugin and the poi jar. You must have a different 
approach.








-Original Message-
From: Martin Gainty 
To: Struts Users Mailing List 
Sent: Mon, 27 Apr 2009 8:02 am
Subject: RE: Open an excel in Struts application











which error is displayed?
can you show the logs?
BTW: If you want Poi Action classes you will need the POI-plugin for Struts

Thanks,
Martin
__
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de
déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then
we ask politely to report. Each unauthorized forwarding or manufacturing of a
copy is inadmissible. This message serves only for the exchange of information
and has no legal binding effect. Due to the easy manipulation of emails we
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit
 von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.






> To: user@struts.apache.org
> Subject: Re: Open an excel in Struts application
> Date: Sun, 26 Apr 2009 22:25:01 -0400
> From: musom...@aol.com
>
> When/if you use the JasperReports plugin use an older version of poi (3.0 is
the latest I had success with). The new poi throws an exception which many have
complained about but has not been fixed/
> Chris
>
>
>
> -Original Message-
> From: renisha 
> To: user@struts.apache.org
> Sent: Sun, 26 Apr 2009 1:30 pm
> Subject: Re: Open an excel in Struts application
>
>
>
>
> Thanks for your reply . I am using struts2 version. Could you please give me
> some sampl code if you have.
>
> Wes Wannemacher wrote:
> >
> > On Sunday 26 April 2009 11:00:59 am renisha wrote:
> >> Hi,
> >>
> >> I am reading some values from database , doing some calculations and
> >> creating an20excel file.
> >>
> >> In my action class , I am returning an HSSFWorkbook object and I need to
> >> diaply the excel file as the output . Please let me know how do I get it
> >> working .
> >
> >
> > Which version of Struts?
> >
> > I would suggest if you are using Struts 2, then take a look at the Jasper
> > Reports plugin, there is XLS output from there.
> >
> > -Wes
> >
> > --
> >
> > Wes Wannemacher
> > Author - Struts 2 In Practice
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Open-an-excel-in-Struts-application-tp23243002p23244421.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009=







Re: Open an excel in Struts application

2009-04-27 Thread Dave Newton

Martin Gainty wrote:

BTW: If you want Poi Action classes you will need the POI-plugin for Struts


Can you provide a link to the POI plugin?

Thanks,
Dave


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



RE: Open an excel in Struts application

2009-04-27 Thread Martin Gainty

which error is displayed?
can you show the logs?
BTW: If you want Poi Action classes you will need the POI-plugin for Struts

Thanks,
Martin 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> To: user@struts.apache.org
> Subject: Re: Open an excel in Struts application
> Date: Sun, 26 Apr 2009 22:25:01 -0400
> From: musom...@aol.com
> 
> When/if you use the JasperReports plugin use an older version of poi (3.0 is 
> the latest I had success with). The new poi throws an exception which many 
> have complained about but has not been fixed/
> Chris
> 
> 
> 
> -Original Message-
> From: renisha 
> To: user@struts.apache.org
> Sent: Sun, 26 Apr 2009 1:30 pm
> Subject: Re: Open an excel in Struts application
> 
> 
> 
> 
> Thanks for your reply . I am using struts2 version. Could you please give me
> some sampl code if you have.
> 
> Wes Wannemacher wrote:
> > 
> > On Sunday 26 April 2009 11:00:59 am renisha wrote:
> >> Hi,
> >>
> >> I am reading some values from database , doing some calculations and
> >> creating an excel file.
> >>
> >> In my action class , I am returning an HSSFWorkbook object and I need to
> >> diaply the excel file as the output . Please let me know how do I get it
> >> working .
> > 
> > 
> > Which version of Struts? 
> > 
> > I would suggest if you are using Struts 2, then take a look at the Jasper 
> > Reports plugin, there is XLS output from there.
> > 
> > -Wes
> > 
> > -- 
> > 
> > Wes Wannemacher
> > Author - Struts 2 In Practice 
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> > 
> > 
> > -----
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Open-an-excel-in-Struts-application-tp23243002p23244421.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.  
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009

Re: Open an excel in Struts application

2009-04-26 Thread Zoran Avtarovski
You can also use the plain old stream result type and pipe the HSSF
worksheet as you would any other file type. Saves on the overhead of another
unnecessary plugin.

Z.
> 
> 
> 
> When/if you use the JasperReports plugin use an older version of poi (3.0 is
> the latest I had success with). The new poi throws an exception which many
> have complained about but has not been fixed/
> Chris
> 
> 
> 
> -Original Message-
> From: renisha 
> To: user@struts.apache.org
> Sent: Sun, 26 Apr 2009 1:30 pm
> Subject: Re: Open an excel in Struts application
> 
> 
> 
> 
> Thanks for your reply . I am using struts2 version. Could you please give me
> some sampl code if you have.
> 
> Wes Wannemacher wrote:
>> > 
>> > On Sunday 26 April 2009 11:00:59 am renisha wrote:
>>> >> Hi,
>>> >>
>>> >> I am reading some values from database , doing some calculations and
>>> >> creating an excel file.
>>> >>
>>> >> In my action class , I am returning an HSSFWorkbook object and I need to
>>> >> diaply the excel file as the output . Please let me know how do I get it
>>> >> working .
>> > 
>> > 
>> > Which version of Struts?
>> > 
>> > I would suggest if you are using Struts 2, then take a look at the Jasper
>> > Reports plugin, there is XLS output from there.
>> > 
>> > -Wes
>> > 
>> > -- 
>> > 
>> > Wes Wannemacher
>> > Author - Struts 2 In Practice
>> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> > http://www.manning.com/wannemacher
>> > 
>> > 
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> > 
>> > 
>> > 




Re: Open an excel in Struts application

2009-04-26 Thread musomesa
When/if you use the JasperReports plugin use an older version of poi (3.0 is 
the latest I had success with). The new poi throws an exception which many have 
complained about but has not been fixed/
Chris



-Original Message-
From: renisha 
To: user@struts.apache.org
Sent: Sun, 26 Apr 2009 1:30 pm
Subject: Re: Open an excel in Struts application




Thanks for your reply . I am using struts2 version. Could you please give me
some sampl code if you have.

Wes Wannemacher wrote:
> 
> On Sunday 26 April 2009 11:00:59 am renisha wrote:
>> Hi,
>>
>> I am reading some values from database , doing some calculations and
>> creating an excel file.
>>
>> In my action class , I am returning an HSSFWorkbook object and I need to
>> diaply the excel file as the output . Please let me know how do I get it
>> working .
> 
> 
> Which version of Struts? 
> 
> I would suggest if you are using Struts 2, then take a look at the Jasper 
> Reports plugin, there is XLS output from there.
> 
> -Wes
> 
> -- 
> 
> Wes Wannemacher
> Author - Struts 2 In Practice 
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Open-an-excel-in-Struts-application-tp23243002p23244421.html
Sent from the Struts - User mailing list archive at Nabble.com.


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




Re: Open an excel in Struts application

2009-04-26 Thread renisha

Thanks for your reply . I am using struts2 version. Could you please give me
some sampl code if you have.

Wes Wannemacher wrote:
> 
> On Sunday 26 April 2009 11:00:59 am renisha wrote:
>> Hi,
>>
>> I am reading some values from database , doing some calculations and
>> creating an excel file.
>>
>> In my action class , I am returning an HSSFWorkbook object and I need to
>> diaply the excel file as the output . Please let me know how do I get it
>> working .
> 
> 
> Which version of Struts? 
> 
> I would suggest if you are using Struts 2, then take a look at the Jasper 
> Reports plugin, there is XLS output from there.
> 
> -Wes
> 
> -- 
> 
> Wes Wannemacher
> Author - Struts 2 In Practice 
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Open-an-excel-in-Struts-application-tp23243002p23244421.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Open an excel in Struts application

2009-04-26 Thread Wes Wannemacher
On Sunday 26 April 2009 11:00:59 am renisha wrote:
> Hi,
>
> I am reading some values from database , doing some calculations and
> creating an excel file.
>
> In my action class , I am returning an HSSFWorkbook object and I need to
> diaply the excel file as the output . Please let me know how do I get it
> working .


Which version of Struts? 

I would suggest if you are using Struts 2, then take a look at the Jasper 
Reports plugin, there is XLS output from there.

-Wes

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


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



Open an excel in Struts application

2009-04-26 Thread renisha

Hi,

I am reading some values from database , doing some calculations and
creating an excel file.

In my action class , I am returning an HSSFWorkbook object and I need to
diaply the excel file as the output . Please let me know how do I get it
working .



-- 
View this message in context: 
http://www.nabble.com/Open-an-excel-in-Struts-application-tp23243002p23243002.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: How share information in a struts application

2009-04-18 Thread Dave Newton

Stefano Tranquillini wrote:

If found nothing that can resolve my problem!

i need to share a class that contains all information that i need
between all the classes and jsps.
i've to put a setter and ghetter for each action that i've? i need to
store some inforamtion in a bean (simple java bean) and share this
class in all the actions and etc.
but i'm not able to find out a solution.


Put it in the session.

Implement SessionAware to retrieve the session map if you need the 
object in an action.


If you don't, access it directly in the JSP via OGNL.

Dave


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



Re: How share information in a struts application

2009-04-18 Thread Stefano Tranquillini
If found nothing that can resolve my problem!

i need to share a class that contains all information that i need
between all the classes and jsps.
i've to put a setter and ghetter for each action that i've? i need to
store some inforamtion in a bean (simple java bean) and share this
class in all the actions and etc.
but i'm not able to find out a solution.

On Sat, Apr 18, 2009 at 16:11,   wrote:
> Hey bro --
>
> Have you read anything about Struts 2 or are you just trying stuff?  The
> form bean is gone and the action is now the action-model.  If you have
> accessible setters on your action-model, OGNL will graph those data onto
> your action-model.  I would recommend a quick Google search for tuorials and
> docs to get a better understanding of the framework.
>
> Peace,
> Scott
>
> On Sat, Apr 18, 2009 at 8:29 AM, Stefano Tranquillini <
> stefano.tranquill...@gmail.com> wrote:
>
>> Hi
>>
>> i've a conceptual problem.
>>
>> i want to transport and share inforamtion in my application.
>> e.g. when a user made the login i want to store that user is loggedin
>> and its datas.
>>
>> how can i do that?
>>
>> in the past version of struts there was the actionform and use ther
>> around the application.
>>
>> in struts2 i can't find a guide or tutotiral that explain these steps.
>>
>> PS: i've a sessionEJB, i can use that class to keep track about my
>> information, or i've to create a sessionStrutBean and put all the
>> information inside this bean?
>>
>> how can i put and get bean in a action?
>>
>> thanks.
>>
>>
>> --
>> Stefano
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



-- 
Stefano

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



Re: How share information in a struts application

2009-04-18 Thread stanlick
Hey bro --

Have you read anything about Struts 2 or are you just trying stuff?  The
form bean is gone and the action is now the action-model.  If you have
accessible setters on your action-model, OGNL will graph those data onto
your action-model.  I would recommend a quick Google search for tuorials and
docs to get a better understanding of the framework.

Peace,
Scott

On Sat, Apr 18, 2009 at 8:29 AM, Stefano Tranquillini <
stefano.tranquill...@gmail.com> wrote:

> Hi
>
> i've a conceptual problem.
>
> i want to transport and share inforamtion in my application.
> e.g. when a user made the login i want to store that user is loggedin
> and its datas.
>
> how can i do that?
>
> in the past version of struts there was the actionform and use ther
> around the application.
>
> in struts2 i can't find a guide or tutotiral that explain these steps.
>
> PS: i've a sessionEJB, i can use that class to keep track about my
> information, or i've to create a sessionStrutBean and put all the
> information inside this bean?
>
> how can i put and get bean in a action?
>
> thanks.
>
>
> --
> Stefano
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


How share information in a struts application

2009-04-18 Thread Stefano Tranquillini
Hi

i've a conceptual problem.

i want to transport and share inforamtion in my application.
e.g. when a user made the login i want to store that user is loggedin
and its datas.

how can i do that?

in the past version of struts there was the actionform and use ther
around the application.

in struts2 i can't find a guide or tutotiral that explain these steps.

PS: i've a sessionEJB, i can use that class to keep track about my
information, or i've to create a sessionStrutBean and put all the
information inside this bean?

how can i put and get bean in a action?

thanks.


-- 
Stefano

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



RE: struts application not recognised in linux ,tomcat.

2008-10-18 Thread Martin Gainty

Good Morning Dave and Raghu

In case anyone wants to compare..here are the tlds I have 

%TOMCAT_HOME%/webapps/struts2-blank-2.1.2/WEB-INF

07/17/2008  07:15 PM39,387 jsf_core.tld
03/09/2006  03:30 PM 8,860 struts-bean.tld
03/09/2006  03:30 PM73,617 struts-html.tld
03/09/2006  03:30 PM14,731 struts-logic.tld
06/01/2007  12:29 PM 2,153 struts-menu.tld
03/09/2006  03:30 PM71,483 struts-nested.tld
07/23/2007  03:29 PM   367,941 struts-tags.tld
03/09/2006  03:30 PM 7,842 struts-tiles.tld

YMMV
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Sat, 18 Oct 2008 04:10:38 -0700
> From: [EMAIL PROTECTED]
> Subject: Re: struts application not recognised in linux ,tomcat.
> To: user@struts.apache.org
> 
> --- On Sat, 10/18/08, Raghu wrote:
> > org.apache.jasper.JasperException: File
> > "/tags/struts-logic" not found at
> 
> Do you have a TLD file there?
> 
> Dave
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008

Re: struts application not recognised in linux ,tomcat.

2008-10-18 Thread Dave Newton
--- On Sat, 10/18/08, Raghu wrote:
> org.apache.jasper.JasperException: File
> "/tags/struts-logic" not found at

Do you have a TLD file there?

Dave

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



struts application not recognised in linux ,tomcat.

2008-10-18 Thread Raghu
Hi,
Sample struts applications also not working in linux system.
 
JDk 1.5
Tomcat 5.5
Struts1.2.8
 
 
struts-exercise-taglib
servlets-examples
 
 

 

I am getting following error on linux system.

 

 

 

HTTP Status 500 -

 

Description: The server encountered an internal error () that prevented it
from fulfilling this request.

 

exception 

 

org.apache.jasper.JasperException: File "/tags/struts-logic" not found at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.

java:105).

 

 
Regards,


Raghu


how to include flash file in struts application

2008-05-09 Thread john lee
how to include .swf in struts application?
   
   
  tks
   
  john

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

problem to run struts application on tomcat5.0

2008-04-11 Thread ashishSaxena



I have my struts application devleoped in websphere stdio where it run
properly

but when i run it on tomcat5.0 i show problem "CAN'T FIND MESSAGE RESOURCE
KEY UNDER MESSAGE RESOURCE"

BUT when i run it on tomcat4.0 it run properly but that time shows database
error class not found
-- 
View this message in context: 
http://www.nabble.com/problem-to-run-struts-application-on-tomcat5.0-tp16627301p16627301.html
Sent from the Struts - User mailing list archive at Nabble.com.


Re: Structure of a Struts Application

2008-03-06 Thread Antonio Petrelli
2008/3/6, getElectro <[EMAIL PROTECTED]>:
>
>
> Hi ppl, I got a lil doubt,
> What do you guys are used to do when developing
> simple applications such as a small BookStore?
> I did mean what I should use:
>
> * Action or DipatchAction ?
> * form-bean or ActionForm ?
> * Validate by calling the validate() method on an ActionForm or
> something else ?
> * what to use for Handling excepetions ?



Reading a tutorial?
http://www.google.com/search?q=struts+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:it:official&client=firefox-a

Antonio


Structure of a Struts Application

2008-03-05 Thread getElectro

Hi ppl, I got a lil doubt,
What do you guys are used to do when developing
simple applications such as a small BookStore?
I did mean what I should use:

* Action or DipatchAction ?
* form-bean or ActionForm ?
* Validate by calling the validate() method on an ActionForm or
something else ?
* what to use for Handling excepetions ?

Many thanks in advance.

struts 1.3.8
-- 
View this message in context: 
http://www.nabble.com/Structure-of-a-Struts-Application-tp15864702p15864702.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Error with DisplayTag in Struts application

2007-12-02 Thread Martin Gainty
can we see the implementation in your jsp
example located here at
Martin--
- Original Message -
From: "puchacz" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, December 02, 2007 7:09 AM
Subject: Error with DisplayTag in Struts application


>
> Hi
> I am using DisplayTag in my Struts web application. Could You tell me
please
> why a got such error in my class coled "Wraper" and how I can repair it ?
I
> write my code in Ecplise 3.2.0.
>
> Error:
>
> The type javax.servlet.jsp.PageContext cannot be resolved. It is
indirectly
> referenced from
>  required .class files
>
>
> The code of class :
>
> package bus;
>
> import org.displaytag.decorator.TableDecorator;
>
> public class Wrapper extends TableDecorator
> {
>
> static public int i=0;
> public Wrapper()
> {
> super();
> }
> ...
> }
>
> Thnx for help
> Martin
>
> --
> View this message in context:
http://www.nabble.com/Error-with-DisplayTag-in-Struts-application-tf4931462.
html#a14114888
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Error with DisplayTag in Struts application

2007-12-02 Thread puchacz

Hi
I am using DisplayTag in my Struts web application. Could You tell me please
why a got such error in my class coled "Wraper" and how I can repair it ? I
write my code in Ecplise 3.2.0.

Error:

The type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly
referenced from 
 required .class files


The code of class :

package bus;

import org.displaytag.decorator.TableDecorator;

public class Wrapper extends TableDecorator
{

static public int i=0;
public Wrapper()
{
super(); 
}
...
}

Thnx for help
Martin

-- 
View this message in context: 
http://www.nabble.com/Error-with-DisplayTag-in-Struts-application-tf4931462.html#a14114888
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S1] Ping another page from within a struts application

2007-10-28 Thread Paul Benedict
I do not understand what you're trying to achieve. You cannot send
information to "pages" unless you're doing client-side scripting. You can,
however, send a new request to a server with information.

Paul

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

I have requirement where, i need to send session id of app2 to a listener
> page in app1 (i.e non jee based one and i am allowed to send this
> information as a 'get'), everytime the a new page loads or user goes to
> new
> page in app2, without transferring control to app1 .
>


Re: [S1] Ping another page from within a struts application

2007-10-23 Thread Piero Sartini
Am Montag, 22. Oktober 2007 19:27:59 schrieb enthucoder:
> I have requirement where, i need to send session id of app2 to a listener
> page in app1 (i.e non jee based one and i am allowed to send this
> information as a 'get'), everytime the a new page loads or user goes to new
> page in app2, without transferring control to app1 .
>
> Can somebody point me towards how best i can achieve this?

If you want to execute something everytime an action is called in struts2 you 
could use a custom interceptor.

http://struts.apache.org/2.0.9/docs/interceptors.html
http://struts.apache.org/2.0.9/docs/writing-interceptors.html

Piero

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



[S1] Ping another page from within a struts application

2007-10-22 Thread enthucoder

Hi,

I am not sure if this a struts question exactly, but neverthless I need help
:).

I am trying to integrate 2 apps, app 1 on platform 1 (non JEE) and app2 on
JEE based.

I have requirement where, i need to send session id of app2 to a listener
page in app1 (i.e non jee based one and i am allowed to send this
information as a 'get'), everytime the a new page loads or user goes to new
page in app2, without transferring control to app1 .

Can somebody point me towards how best i can achieve this?


-- 
View this message in context: 
http://www.nabble.com/-S1--Ping-another-page-from-within-a-struts-application-tf4672509.html#a13348507
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: RE : RE : Struts Application is not working

2007-10-03 Thread aum strut
I m getting the follwing exception in Tomcat

 Root Cause -
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1340)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1189)
 at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:964)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
 at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:4013)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4357)
 at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
 at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:277)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:701)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at org.apache.catalina.core.StandardService.start(StandardService.java:480)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

Action Class
*

public* *class* RegisterAction *extends* Action{

*public* ActionForward execute(ActionForm form,ActionMapping
mapping,HttpServletRequest request,HttpServletResponse
response)*throws*Exception{

*

return* (mapping.findForward("success"));

}

}
Rest i have already pastedmy struts-config file.Please tell me where i am
wrong
:(


On 10/3/07, Ezequiel Puig <[EMAIL PROTECTED]> wrote:
>
> Uppps,
> That's for Struts 2.
>
> -Message d'origine-
> De: Ezequiel Puig
> Envoyé: mercredi 3 octobre 2007 16:53
> À: Struts Users Mailing List
> Objet: RE : Struts Application is not working
>
> Hi,
>
> Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There
> you will find the minimum configuration.
>
> Regards,
>
> Ezequiel.
>
> -Message d'origine-
> De: Rick Reumann [mailto:[EMAIL PROTECTED]
> Envoyé: mercredi 3 octobre 2007 16:42
> À: Struts Users Mailing List
> Objet: Re: Struts Application is not working
>
> There are a ton of things that can cause the obscure error you are
> witnessing. You have to make sure the doctype definitions are correct
> as well for web.xml and struts-config. I'd start with a working
> example web.xml and struts-config (maybe the example app struts comes
> with - and then start swapping in your stuff.)
>
> On 10/3/07, aum strut <[EMAIL PROTECTED]> wrote:
> > 1 antlr
> > 2 commons-beanutils
> > 3 commons-digester
> > 4 commons-fileupload
> > 5 commons-logging
> > 6  commons-validator
> > 7 jakarta-oro
> > 8 struts
> >
> >
> > These are the jar flies in the lib folder
> >
> >
> > On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> > >
> > > At first glance it seems okay; maybe somebody else
> > > will chime in. What library / jar files do you have in
> > > WEB-INF/lib?
> > >
> > > d.
> > >
> > > --- aum strut <[EMAIL PROTECTED]> wrote:
> > >
> > > > hi dave i m pasting my struts-config file for the
> > > > refrence.and as par the
> > > > dependencies i have used myeclipse as developing
> > > > enviornment so it might be
> > > > possible that there is something wrong as i
> > > > downloaded an example in warfile
> > > > form and when i deploy it in tomcat it worked fin

RE : RE : Struts Application is not working

2007-10-03 Thread Ezequiel Puig
Uppps,
That's for Struts 2.

-Message d'origine-
De : Ezequiel Puig 
Envoyé : mercredi 3 octobre 2007 16:53
À : Struts Users Mailing List
Objet : RE : Struts Application is not working

Hi,

Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you 
will find the minimum configuration.

Regards,

Ezequiel.

-Message d'origine-
De : Rick Reumann [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 octobre 2007 16:42
À : Struts Users Mailing List
Objet : Re: Struts Application is not working

There are a ton of things that can cause the obscure error you are
witnessing. You have to make sure the doctype definitions are correct
as well for web.xml and struts-config. I'd start with a working
example web.xml and struts-config (maybe the example app struts comes
with - and then start swapping in your stuff.)

On 10/3/07, aum strut <[EMAIL PROTECTED]> wrote:
> 1 antlr
> 2 commons-beanutils
> 3 commons-digester
> 4 commons-fileupload
> 5 commons-logging
> 6  commons-validator
> 7 jakarta-oro
> 8 struts
>
>
> These are the jar flies in the lib folder
>
>
> On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> > At first glance it seems okay; maybe somebody else
> > will chime in. What library / jar files do you have in
> > WEB-INF/lib?
> >
> > d.
> >
> > --- aum strut <[EMAIL PROTECTED]> wrote:
> >
> > > hi dave i m pasting my struts-config file for the
> > > refrence.and as par the
> > > dependencies i have used myeclipse as developing
> > > enviornment so it might be
> > > possible that there is something wrong as i
> > > downloaded an example in warfile
> > > form and when i deploy it in tomcat it worked fine
> > > but when i put my class
> > > files and configuredthe struts-config file according
> > > to my application it
> > > stoped working.All this has put me in a strange
> > > condition as i haven't
> > > changed any library file.
> > >
> > > below is my struts config file..
> > >
> > >
> > > 
> > >
> > > 
> > >
> > >  > > type="aum.struts.actionform.RegisterForm"/>
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > type="aum.struts.action.RegisterAction"
> > >
> > > name="registerForm">
> > >
> > >  > > redirect="true"/>
> > >
> > >  > > redirect="true"/>
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > > Regards,
> > > Umesh
> > >
> > >
> > > On 10/3/07, Dave Newton <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > > > thks ajay for helping me out but can u point out
> > > > > watcan be the cause of this error as pari know i
> > > > have
> > > > > configured the appliocation correctly...
> > > >
> > > > Without your struts config file we can't help very
> > > > much -- *something* is wrong with either your
> > > library
> > > > dependencies, a configuration file, etc. otherwise
> > > it
> > > > would work, no?
> > > >
> > > > d.
> > > >
> > > >
> > > >
> > >
> > -
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
Rick

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


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


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



RE : Struts Application is not working

2007-10-03 Thread Ezequiel Puig
Hi,

Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you 
will find the minimum configuration.

Regards,

Ezequiel.

-Message d'origine-
De : Rick Reumann [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 3 octobre 2007 16:42
À : Struts Users Mailing List
Objet : Re: Struts Application is not working

There are a ton of things that can cause the obscure error you are
witnessing. You have to make sure the doctype definitions are correct
as well for web.xml and struts-config. I'd start with a working
example web.xml and struts-config (maybe the example app struts comes
with - and then start swapping in your stuff.)

On 10/3/07, aum strut <[EMAIL PROTECTED]> wrote:
> 1 antlr
> 2 commons-beanutils
> 3 commons-digester
> 4 commons-fileupload
> 5 commons-logging
> 6  commons-validator
> 7 jakarta-oro
> 8 struts
>
>
> These are the jar flies in the lib folder
>
>
> On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> > At first glance it seems okay; maybe somebody else
> > will chime in. What library / jar files do you have in
> > WEB-INF/lib?
> >
> > d.
> >
> > --- aum strut <[EMAIL PROTECTED]> wrote:
> >
> > > hi dave i m pasting my struts-config file for the
> > > refrence.and as par the
> > > dependencies i have used myeclipse as developing
> > > enviornment so it might be
> > > possible that there is something wrong as i
> > > downloaded an example in warfile
> > > form and when i deploy it in tomcat it worked fine
> > > but when i put my class
> > > files and configuredthe struts-config file according
> > > to my application it
> > > stoped working.All this has put me in a strange
> > > condition as i haven't
> > > changed any library file.
> > >
> > > below is my struts config file..
> > >
> > >
> > > 
> > >
> > > 
> > >
> > >  > > type="aum.struts.actionform.RegisterForm"/>
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > type="aum.struts.action.RegisterAction"
> > >
> > > name="registerForm">
> > >
> > >  > > redirect="true"/>
> > >
> > >  > > redirect="true"/>
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > > Regards,
> > > Umesh
> > >
> > >
> > > On 10/3/07, Dave Newton <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > > > thks ajay for helping me out but can u point out
> > > > > watcan be the cause of this error as pari know i
> > > > have
> > > > > configured the appliocation correctly...
> > > >
> > > > Without your struts config file we can't help very
> > > > much -- *something* is wrong with either your
> > > library
> > > > dependencies, a configuration file, etc. otherwise
> > > it
> > > > would work, no?
> > > >
> > > > d.
> > > >
> > > >
> > > >
> > >
> > -
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
Rick

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


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



Re: Struts Application is not working

2007-10-03 Thread Rick Reumann
There are a ton of things that can cause the obscure error you are
witnessing. You have to make sure the doctype definitions are correct
as well for web.xml and struts-config. I'd start with a working
example web.xml and struts-config (maybe the example app struts comes
with - and then start swapping in your stuff.)

On 10/3/07, aum strut <[EMAIL PROTECTED]> wrote:
> 1 antlr
> 2 commons-beanutils
> 3 commons-digester
> 4 commons-fileupload
> 5 commons-logging
> 6  commons-validator
> 7 jakarta-oro
> 8 struts
>
>
> These are the jar flies in the lib folder
>
>
> On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> > At first glance it seems okay; maybe somebody else
> > will chime in. What library / jar files do you have in
> > WEB-INF/lib?
> >
> > d.
> >
> > --- aum strut <[EMAIL PROTECTED]> wrote:
> >
> > > hi dave i m pasting my struts-config file for the
> > > refrence.and as par the
> > > dependencies i have used myeclipse as developing
> > > enviornment so it might be
> > > possible that there is something wrong as i
> > > downloaded an example in warfile
> > > form and when i deploy it in tomcat it worked fine
> > > but when i put my class
> > > files and configuredthe struts-config file according
> > > to my application it
> > > stoped working.All this has put me in a strange
> > > condition as i haven't
> > > changed any library file.
> > >
> > > below is my struts config file..
> > >
> > >
> > > 
> > >
> > > 
> > >
> > >  > > type="aum.struts.actionform.RegisterForm"/>
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > type="aum.struts.action.RegisterAction"
> > >
> > > name="registerForm">
> > >
> > >  > > redirect="true"/>
> > >
> > >  > > redirect="true"/>
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > > Regards,
> > > Umesh
> > >
> > >
> > > On 10/3/07, Dave Newton <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > > > thks ajay for helping me out but can u point out
> > > > > watcan be the cause of this error as pari know i
> > > > have
> > > > > configured the appliocation correctly...
> > > >
> > > > Without your struts config file we can't help very
> > > > much -- *something* is wrong with either your
> > > library
> > > > dependencies, a configuration file, etc. otherwise
> > > it
> > > > would work, no?
> > > >
> > > > d.
> > > >
> > > >
> > > >
> > >
> > -
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
Rick

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



Re: Struts Application is not working

2007-10-03 Thread aum strut
1 antlr
2 commons-beanutils
3 commons-digester
4 commons-fileupload
5 commons-logging
6  commons-validator
7 jakarta-oro
8 struts


These are the jar flies in the lib folder


On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> At first glance it seems okay; maybe somebody else
> will chime in. What library / jar files do you have in
> WEB-INF/lib?
>
> d.
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
>
> > hi dave i m pasting my struts-config file for the
> > refrence.and as par the
> > dependencies i have used myeclipse as developing
> > enviornment so it might be
> > possible that there is something wrong as i
> > downloaded an example in warfile
> > form and when i deploy it in tomcat it worked fine
> > but when i put my class
> > files and configuredthe struts-config file according
> > to my application it
> > stoped working.All this has put me in a strange
> > condition as i haven't
> > changed any library file.
> >
> > below is my struts config file..
> >
> >
> > 
> >
> > 
> >
> >  > type="aum.struts.actionform.RegisterForm"/>
> >
> > 
> >
> > 
> >
> >  >
> > type="aum.struts.action.RegisterAction"
> >
> > name="registerForm">
> >
> >  > redirect="true"/>
> >
> >  > redirect="true"/>
> >
> > 
> >
> > 
> >
> > 
> > Regards,
> > Umesh
> >
> >
> > On 10/3/07, Dave Newton <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > > thks ajay for helping me out but can u point out
> > > > watcan be the cause of this error as pari know i
> > > have
> > > > configured the appliocation correctly...
> > >
> > > Without your struts config file we can't help very
> > > much -- *something* is wrong with either your
> > library
> > > dependencies, a configuration file, etc. otherwise
> > it
> > > would work, no?
> > >
> > > d.
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts Application is not working

2007-10-03 Thread Dave Newton
At first glance it seems okay; maybe somebody else
will chime in. What library / jar files do you have in
WEB-INF/lib?

d.

--- aum strut <[EMAIL PROTECTED]> wrote:

> hi dave i m pasting my struts-config file for the
> refrence.and as par the
> dependencies i have used myeclipse as developing
> enviornment so it might be
> possible that there is something wrong as i
> downloaded an example in warfile
> form and when i deploy it in tomcat it worked fine
> but when i put my class
> files and configuredthe struts-config file according
> to my application it
> stoped working.All this has put me in a strange
> condition as i haven't
> changed any library file.
> 
> below is my struts config file..
> 
> 
> 
> 
> 
> 
>  type="aum.struts.actionform.RegisterForm"/>
> 
> 
> 
> 
> 
>  
> type="aum.struts.action.RegisterAction"
> 
> name="registerForm">
> 
>  redirect="true"/>
> 
>  redirect="true"/>
> 
> 
> 
> 
> 
> 
> Regards,
> Umesh
> 
> 
> On 10/3/07, Dave Newton <[EMAIL PROTECTED]>
> wrote:
> >
> > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > thks ajay for helping me out but can u point out
> > > watcan be the cause of this error as pari know i
> > have
> > > configured the appliocation correctly...
> >
> > Without your struts config file we can't help very
> > much -- *something* is wrong with either your
> library
> > dependencies, a configuration file, etc. otherwise
> it
> > would work, no?
> >
> > d.
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


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



Re: Struts Application is not working

2007-10-03 Thread aum strut
hi dave i m pasting my struts-config file for the refrence.and as par the
dependencies i have used myeclipse as developing enviornment so it might be
possible that there is something wrong as i downloaded an example in warfile
form and when i deploy it in tomcat it worked fine but when i put my class
files and configuredthe struts-config file according to my application it
stoped working.All this has put me in a strange condition as i haven't
changed any library file.

below is my struts config file..























Regards,
Umesh


On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > thks ajay for helping me out but can u point out
> > watcan be the cause of this error as pari know i
> have
> > configured the appliocation correctly...
>
> Without your struts config file we can't help very
> much -- *something* is wrong with either your library
> dependencies, a configuration file, etc. otherwise it
> would work, no?
>
> d.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts Application is not working

2007-10-03 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> thks ajay for helping me out but can u point out
> watcan be the cause of this error as pari know i
have
> configured the appliocation correctly...

Without your struts config file we can't help very
much -- *something* is wrong with either your library
dependencies, a configuration file, etc. otherwise it
would work, no?

d.


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



Re: Struts Application is not working

2007-10-03 Thread aum strut
thks ajay for helping me out but can u point out watcan be the cause of this
error as pari know i have configured the appliocation correctly...

On 10/3/07, AJAY KUMAR UPPALAPATI <[EMAIL PROTECTED]> wrote:
>
> hello friend,
>  I am also not having that much experience so why dont u
> try this url.
>
> http://www.michael-thomas.com/tech/apache/struts/struts_first_steps.htm
>
> this url contains Apache link and from there u download one sturts binary
> file (suppose if u r doing struts1.3.8>
> struts-1.3.8\apps\struts-blank-1.3.8.war
>
> u just deploy this file and u can proceed with this example...
>
>
> On 10/3/07, umeshawasthi <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi All,
> > I am new to struts,i have developed a small application but it is not
> > running,it is displaying the index page correctly but not forwarding the
> > request.i developed the application using my eclipse.when i checked the
> > tomcat log file it is showing the exception that it is not able to find
> > the
> > ActionServlet class,where as i have configured the struts-config classs
> > correctly in the web.xml file i m also pasting the content of the
> web.xml
> > file.Please help me to find out the error.
> >
> > 
> > action
> > org.apache.struts.action.ActionServlet
> > 
> > config
> > /WEB-INF/struts-config.xml
> > 
> > 2
> > 
> >
> >
> > 
> > 
> > action
> > *.do
> > 
> >
> > Regards,
> > Umesh
> > --
> > View this message in context:
> >
> http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13013599
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Struts Application is not working

2007-10-02 Thread AJAY KUMAR UPPALAPATI
hello friend,
  I am also not having that much experience so why dont u
try this url.

http://www.michael-thomas.com/tech/apache/struts/struts_first_steps.htm

this url contains Apache link and from there u download one sturts binary
file (suppose if u r doing struts1.3.8>
struts-1.3.8\apps\struts-blank-1.3.8.war

u just deploy this file and u can proceed with this example...


On 10/3/07, umeshawasthi <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
> I am new to struts,i have developed a small application but it is not
> running,it is displaying the index page correctly but not forwarding the
> request.i developed the application using my eclipse.when i checked the
> tomcat log file it is showing the exception that it is not able to find
> the
> ActionServlet class,where as i have configured the struts-config classs
> correctly in the web.xml file i m also pasting the content of the web.xml
> file.Please help me to find out the error.
>
> 
> action
> org.apache.struts.action.ActionServlet
> 
> config
> /WEB-INF/struts-config.xml
> 
> 2
> 
>
>
> 
> 
> action
> *.do
> 
>
> Regards,
> Umesh
> --
> View this message in context:
> http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13013599
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Struts Application is not working

2007-10-02 Thread umeshawasthi

Hi All,
I am new to struts,i have developed a small application but it is not
running,it is displaying the index page correctly but not forwarding the
request.i developed the application using my eclipse.when i checked the
tomcat log file it is showing the exception that it is not able to find the
ActionServlet class,where as i have configured the struts-config classs
correctly in the web.xml file i m also pasting the content of the web.xml
file.Please help me to find out the error.


action
org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml

2





action
*.do


Regards,
Umesh 
-- 
View this message in context: 
http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13013599
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts Application is not running

2007-10-02 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> can u send me a small demo project in struts.so
> that i cn take help frm it

No, but there are many, many Struts tutorials and
projects searchable on the web, including those that
come with Struts itself.

Perhaps posting some configuration beyond web.xml
might enable somebody to help you more easily.

d.


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



Re: Struts Application is not running

2007-10-02 Thread aum strut
can u send me a small demo project in struts.so that i cn take help frm
it

On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > I hav configured all the files in the right way
>
> Cool... but if everything was configured properly it
> would probably work.
>
> > Its showing in the tomcat log files that its not
> > getting the ActionServlet.
>
> This is usually due to a configuration error, missing
> library dependency, etc.
>
> Without further, better information it's going to be
> very difficult to diagnose.
>
> d.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts Application is not running

2007-10-02 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> I hav configured all the files in the right way 

Cool... but if everything was configured properly it
would probably work.

> Its showing in the tomcat log files that its not
> getting the ActionServlet.

This is usually due to a configuration error, missing
library dependency, etc.

Without further, better information it's going to be
very difficult to diagnose.

d.


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



Re: Struts Application is not running

2007-10-02 Thread aum strut
I hav configured all the files in the right way and I m using My Eclipse.
Its showing in the tomcat log files that its not getting the ActionServlet.

On 10/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> I'd turn up the logging level. My initial suspicion
> would be a configuration error, but it's kind of hard
> to say at the moment.
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
>
> > hi all,
> >
> > i have developeda small application in struts.but
> > itis not
> > running.andtomcat log file is giving the error that
> > it is unable to
> > find ActionServlet
> > calss.
> > i have configured ActionServlet class in web.xml as
> >
> > 
> > action
> >
> >
> org.apache.struts.action.ActionServlet
> > 
> >   config
> >
> >
> /WEB-INF/struts-config.xml
> > 
> > 
> >   debug
> >   3
> > 
> > 
> >   detail
> >   3
> > 
> > 0
> >   
> >   
> > action
> > *.do
> >   
> >   
> > index.jsp
> >   
> >
> > Please suggest wat can be the cause of the error.
> >
> > Regards,
> > Umesh
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts Application is not running

2007-10-02 Thread Dave Newton
I'd turn up the logging level. My initial suspicion
would be a configuration error, but it's kind of hard
to say at the moment.

--- aum strut <[EMAIL PROTECTED]> wrote:

> hi all,
> 
> i have developeda small application in struts.but
> itis not
> running.andtomcat log file is giving the error that
> it is unable to
> find ActionServlet
> calss.
> i have configured ActionServlet class in web.xml as
> 
> 
> action
>
>
org.apache.struts.action.ActionServlet
> 
>   config
>  
>
/WEB-INF/struts-config.xml
> 
> 
>   debug
>   3
> 
> 
>   detail
>   3
> 
> 0
>   
>   
> action
> *.do
>   
>   
> index.jsp
>   
> 
> Please suggest wat can be the cause of the error.
> 
> Regards,
> Umesh
> 


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



Struts Application is not running

2007-10-02 Thread aum strut
hi all,

i have developeda small application in struts.but itis not
running.andtomcat log file is giving the error that it is unable to
find ActionServlet
calss.
i have configured ActionServlet class in web.xml as


action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml


  debug
  3


  detail
  3

0
  
  
action
*.do
  
  
index.jsp
  

Please suggest wat can be the cause of the error.

Regards,
Umesh


Re: Query on struts application design

2007-06-20 Thread Yoge

Another alternative,

Move all the images/css specific to abc.com  to a subdirectory named
/abc/...
Let all the images related to xyz.com be in another sub-directory /xyx/

Change path of images in your application to /abc or /xyz based on the
request.*getRemoteHost*() .

--
Yoge,
AdventNet, Inc.
[EMAIL PROTECTED]



On 6/15/07, Rakesh Sharma <[EMAIL PROTECTED]> wrote:


Dear All,

I am new to struts so would need your help here.

My client has an enterprise application(struts1.0 based) with :
  1 WAR (virtual host www.abc.com)
  1 EJB module

Now, the client want the same application(almost same business rules..i.e
same EJB module) but in different look and feel on another domain(
www.xyz.com).

Can any one suggest me a good way out for this on struts.

My take was :
- Make one more webmodule in the same application which can be configured
for www.xyz.com using virtual host settings.
- Copy the JSPs/taglibs/CSS/image etc from the first webapp to second and
make the customization on these UI components.
- Copy the struts related configuration from the first webapp to second(I
donot intend to change any thing is these files, including in the struts
config xml.)

I am not able to do a test of the above approach as I am at client
location
and donot have any IDE with me.

Do you guys thinks that I would be able to achieve what I want ?

Please note that all the 3 modules(2 webapp and 1 EJB) would be deployed
on
same JVM, so my guess was that there should not be any issue while
accessig
the struts related classes(such as controller etc..) in webapp2 at
runtime.

Please help me out here and tell me if my thinking is flawed...
Your help would be highly appreciated.

Thanks and Regards
Rakesh





--
--Yoge
91-9840425388


Query on struts application design

2007-06-14 Thread Rakesh Sharma

Dear All,

I am new to struts so would need your help here.

My client has an enterprise application(struts1.0 based) with :
  1 WAR (virtual host www.abc.com)
  1 EJB module

Now, the client want the same application(almost same business rules..i.e
same EJB module) but in different look and feel on another domain(
www.xyz.com).

Can any one suggest me a good way out for this on struts.

My take was :
- Make one more webmodule in the same application which can be configured
for www.xyz.com using virtual host settings.
- Copy the JSPs/taglibs/CSS/image etc from the first webapp to second and
make the customization on these UI components.
- Copy the struts related configuration from the first webapp to second(I
donot intend to change any thing is these files, including in the struts
config xml.)

I am not able to do a test of the above approach as I am at client location
and donot have any IDE with me.

Do you guys thinks that I would be able to achieve what I want ?

Please note that all the 3 modules(2 webapp and 1 EJB) would be deployed on
same JVM, so my guess was that there should not be any issue while accessig
the struts related classes(such as controller etc..) in webapp2 at runtime.

Please help me out here and tell me if my thinking is flawed...
Your help would be highly appreciated.

Thanks and Regards
Rakesh


Re: Exception processing Jsp page in my struts application.

2007-06-03 Thread vikas rao

Yes I am running on tomcat, and this message is being generated on the
console window there:

Jun 3,2007 10:12:18 PM org.apache.struts.util.PropertyMessageResourcesloadLocale

WARNING: Resource org/apache/struts/taglib/html/LocalStrings_en.properties
Not Found

I am using apache-tomcat-6.0.10.
My code looks ok right?
Vikas.

On 6/3/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:


I'm guessing your running on Tomcat?  If so, can you look for the stack
trace that should accompany this in localhost_log.*... that should give
you more of a clue what's going on (I don't see anything obvious wrong,
but with just the snippet and no stack trace it's tough to tell)... even
if you can find the exception type, that might shed some light on things.

Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
(2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

vikas rao wrote:
> This is the errror:
> org.apache.jasper.JasperException: An exception occurred processing JSP
> page
> /search.jsp at line 17
>
> 14: 
> 15: 
> 16:
> 17: 
> 18:
> 19: 
> 20: 
> Nothing seems wrong with my line 17!! and my html tag is declared
> properly..
> and in my struts-config.xml:
>
> 
>name="SearchForm" scope="request" validate="true"
>  input="/search.jsp">
>  
> 
>
> Wondering what is wrong!!??
> Thanks.
> Vikas.
>
>
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.472 / Virus Database: 269.8.7/829 - Release Date: 6/2/2007
5:26 PM


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





--
Sometimes I go about in pity for myself, and all the while, a great wind
carries me across the sky.


Re: Exception processing Jsp page in my struts application.

2007-06-03 Thread Frank W. Zammetti

I don't have much day-to-day experience with JSF, so I couldn't say Martin.

Frank

Martin Gainty wrote:

Frank--
so for the example of action="/search"

following the example of "/greeting.jsp"

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>


   


 /greeting.jsp
 
   success
   /response.jsp
 


Does this look ok?

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: "Frank W. Zammetti" 
<[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Sunday, June 03, 2007 1:29 PM
Subject: Re: Exception processing Jsp page in my struts application.


I'm guessing your running on Tomcat?  If so, can you look for the 
stack trace that should accompany this in localhost_log.*... that 
should give you more of a clue what's going on (I don't see anything 
obvious wrong, but with just the snippet and no stack trace it's tough 
to tell)... even if you can find the exception type, that might shed 
some light on things.


Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
 (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

vikas rao wrote:

This is the errror:
org.apache.jasper.JasperException: An exception occurred processing 
JSP page

/search.jsp at line 17

14: 
15: 
16:
17: 
18:
19: 
20: 
Nothing seems wrong with my line 17!! and my html tag is declared 
properly..

and in my struts-config.xml:


 
 


Wondering what is wrong!!??
Thanks.
Vikas.




No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 
269.8.7/829 - Release Date: 6/2/2007 5:26 PM



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





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







--
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
 (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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



Re: Exception processing Jsp page in my struts application.

2007-06-03 Thread Martin Gainty
Frank-- 


so for the example of action="/search"

following the example of "/greeting.jsp"

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>


   


 /greeting.jsp
 
   success
   /response.jsp
 


Does this look ok?

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Sunday, June 03, 2007 1:29 PM
Subject: Re: Exception processing Jsp page in my struts application.


I'm guessing your running on Tomcat?  If so, can you look for the stack 
trace that should accompany this in localhost_log.*... that should give 
you more of a clue what's going on (I don't see anything obvious wrong, 
but with just the snippet and no stack trace it's tough to tell)... even 
if you can find the exception type, that might shed some light on things.


Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
 (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

vikas rao wrote:

This is the errror:
org.apache.jasper.JasperException: An exception occurred processing JSP 
page

/search.jsp at line 17

14: 
15: 
16:
17: 
18:
19: 
20: 
Nothing seems wrong with my line 17!! and my html tag is declared 
properly..

and in my struts-config.xml:


 
 


Wondering what is wrong!!??
Thanks.
Vikas.




No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 
269.8.7/829 - Release Date: 6/2/2007 5:26 PM



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





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



Re: Exception processing Jsp page in my struts application.

2007-06-03 Thread Frank W. Zammetti
I'm guessing your running on Tomcat?  If so, can you look for the stack 
trace that should accompany this in localhost_log.*... that should give 
you more of a clue what's going on (I don't see anything obvious wrong, 
but with just the snippet and no stack trace it's tough to tell)... even 
if you can find the exception type, that might shed some light on things.


Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
 (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

vikas rao wrote:

This is the errror:
org.apache.jasper.JasperException: An exception occurred processing JSP 
page

/search.jsp at line 17

14: 
15: 
16:
17: 
18:
19: 
20: 
Nothing seems wrong with my line 17!! and my html tag is declared 
properly..

and in my struts-config.xml:


 
 


Wondering what is wrong!!??
Thanks.
Vikas.




No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.7/829 - Release Date: 6/2/2007 5:26 PM



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



Exception processing Jsp page in my struts application.

2007-06-03 Thread vikas rao

This is the errror:
org.apache.jasper.JasperException: An exception occurred processing JSP page
/search.jsp at line 17

14: 
15: 
16:
17: 
18:
19: 
20: 
Nothing seems wrong with my line 17!! and my html tag is declared properly..
and in my struts-config.xml:


 
 


Wondering what is wrong!!??
Thanks.
Vikas.

--
Sometimes I go about in pity for myself, and all the while, a great wind
carries me across the sky.


Re: Hiding/encrypting URL parameters in Struts application

2007-05-13 Thread roberto
Hi,

Which version of Struts are you using?

If you are using Struts 1.x you can use HDIV for that.
HDIV guarantees integrity and confidentiality of non editable data,
including of course URL parameters.

On the other hand, if you are using Struts2 we haven't still published a release
for Struts2. We hoped to publish it for June.

Regards,

Roberto Velasco Sarasola


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



Re: Hiding/encrypting URL parameters in Struts application

2007-05-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sid,

Sid wrote:
> Is there a way to hide/encrypt URL parameters using Struts?

Struts does not handle this directly. You'll have to do it yourself or
use an existing tool to protect these parameters.

When I do this type of thing, I symmetrically encrypt the data and then
pass the encrypted string as a GET parameter. In order to reduce the
threat of replay attacks, I encrypt the expiration date and time of the
data along with it and refuse to accept it on the other end if it has
expired.

There's a project out there called HDIV that is supposed to protect data
like this. I don't know a thing about it except that someone posts
updates to the project on this list occasionally. (http://www.hdiv.org)

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

iD8DBQFGRcXF9CaO5/Lv0PARAqRZAJ9uIj6yyZ7Y5+WJIhpwXdPYQ5HXvACgsImg
XJMCHxSKee/rTQCJNOIL2L8=
=Umki
-END PGP SIGNATURE-

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



Hiding/encrypting URL parameters in Struts application

2007-05-12 Thread Sid

Hi
Is there a way to hide/encrypt URL parameters using Struts? Right now i am
passing some critical params in the URL
For e.g http://localhost:8080/method=xyz?param1=123¶m2=xyz

I want to avoid this. Please let me know if anything can be done about this.


Thanks
Sid


Re: Deploy struts Application

2007-05-09 Thread Laurie Harper

horri khalid wrote:

Hi,

I'm new user in Struts, so i develop a application and I deploy it in my
server.

when I execute it I have this problem:

Servlet action not available.

For more information I use:

-Tomcat 5.5.4

 -Struts 1.1 


'Servlet action not available' means there was an error during start-up. 
Check your server logs for details of what went wrong.


L.


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



Re: Deploy struts Application

2007-05-09 Thread Gary Feidt
Did you deploy all the Struts jar files with your deployment file?

>>> [EMAIL PROTECTED] 5/9/2007 3:57:44 AM >>>
Hi,

I'm new user in Struts, so i develop a application and I deploy it in
my
server.

when I execute it I have this problem:

Servlet action not available.

For more information I use:

-Tomcat 5.5.4

 -Struts 1.1 
___

Confidentiality Statement:
This email/fax, including attachments, may include confidential
and/or proprietary information and may be used only by the
person or entity to which it is addressed. If the reader of 
this email/fax is not the intended recipient or his or her 
agent, the reader is hereby notified that any dissemination, 
distribution or copying of this email/fax is prohibited. If you 
have received this email/fax in error, please notify the sender 
by replying to this message and deleting this email or 
destroying this facsimile immediately.


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



Deploy struts Application

2007-05-09 Thread horri khalid
Hi,

I'm new user in Struts, so i develop a application and I deploy it in my
server.

when I execute it I have this problem:

Servlet action not available.

For more information I use:

-Tomcat 5.5.4

 -Struts 1.1 



Re: Problem undeploying struts application

2007-02-23 Thread Niall Pemberton

OK so you are using Struts2? I had assumed Struts1. Have no idea about
Struts2 - better to state the version in your mail in future.

Niall

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:

I do the changes but still the struts2core jar is locked...
I change the jar commons-digester, i put the 1.8 version i also put a file
named context.xml with the properties:



Any other sugestion to avoid this situation

Juan

-Mensaje original-
De: Niall Pemberton [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 23 de febrero de 2007 11:28
Para: Struts Users Mailing List
Asunto: Re: Problem undeploying struts application

Its a possible cause is the best I can say. Try replacing the Commons
Digester jar with the 1.8 version. Can't remember if that is enough to fix
that bug, or if it needs associated changes in Struts/Tiles/Validator/Chain
- I'll look into it when I get time.

Niall

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:
> I read the bug but i didnt understand very well I must to replace
> commons-digester for a new one ??  Is commondigester causing the
> problem ??
>
> Juan
>
> -Mensaje original-
> De: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 23 de febrero de 2007 11:00
> Para: Struts Users Mailing List
> Asunto: Re: Problem undeploying struts application
>
> On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:
> > Hi to all…
> >
> > Im having problems with the undeploy of an struts application im
> > using tomcat 5.5.4, when i undeploy the application some jars get
> > locked and i cant delete it….
> >
> > I search in web and i found the context properties
> > antiResourceLocking and antiJarLocking but it seems that they dont work.
>
> Is it related to this:
>
>   https://issues.apache.org/jira/browse/DIGESTER-29
>
> Niall
>
> > Any idea of a solutions
> >
> > Regards
> > Juan Espinosa

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39



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




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



RE: Problem undeploying struts application

2007-02-23 Thread Juan Espinosa
I do the changes but still the struts2core jar is locked...
I change the jar commons-digester, i put the 1.8 version i also put a file
named context.xml with the properties:

 

Any other sugestion to avoid this situation 

Juan

-Mensaje original-
De: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 23 de febrero de 2007 11:28
Para: Struts Users Mailing List
Asunto: Re: Problem undeploying struts application

Its a possible cause is the best I can say. Try replacing the Commons
Digester jar with the 1.8 version. Can't remember if that is enough to fix
that bug, or if it needs associated changes in Struts/Tiles/Validator/Chain
- I'll look into it when I get time.

Niall

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:
> I read the bug but i didnt understand very well I must to replace 
> commons-digester for a new one ??  Is commondigester causing the 
> problem ??
>
> Juan
>
> -Mensaje original-
> De: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 23 de febrero de 2007 11:00
> Para: Struts Users Mailing List
> Asunto: Re: Problem undeploying struts application
>
> On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:
> > Hi to all…
> >
> > Im having problems with the undeploy of an struts application im 
> > using tomcat 5.5.4, when i undeploy the application some jars get 
> > locked and i cant delete it….
> >
> > I search in web and i found the context properties 
> > antiResourceLocking and antiJarLocking but it seems that they dont work.
>
> Is it related to this:
>
>   https://issues.apache.org/jira/browse/DIGESTER-29
>
> Niall
>
> > Any idea of a solutions
> >
> > Regards
> > Juan Espinosa

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39
 


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



Re: Problem undeploying struts application

2007-02-23 Thread Niall Pemberton

Its a possible cause is the best I can say. Try replacing the Commons
Digester jar with the 1.8 version. Can't remember if that is enough to
fix that bug, or if it needs associated changes in
Struts/Tiles/Validator/Chain - I'll look into it when I get time.

Niall

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:

I read the bug but i didnt understand very well
I must to replace commons-digester for a new one ??  Is commondigester
causing the problem ??

Juan

-Mensaje original-
De: Niall Pemberton [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 23 de febrero de 2007 11:00
Para: Struts Users Mailing List
Asunto: Re: Problem undeploying struts application

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:
> Hi to all…
>
> Im having problems with the undeploy of an struts application im using
> tomcat 5.5.4, when i undeploy the application some jars get locked and
> i cant delete it….
>
> I search in web and i found the context properties antiResourceLocking
> and antiJarLocking but it seems that they dont work.

Is it related to this:

  https://issues.apache.org/jira/browse/DIGESTER-29

Niall

> Any idea of a solutions
>
> Regards
> Juan Espinosa


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



RE: Problem undeploying struts application

2007-02-23 Thread Juan Espinosa
I read the bug but i didnt understand very well
I must to replace commons-digester for a new one ??  Is commondigester
causing the problem ??

Juan

-Mensaje original-
De: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 23 de febrero de 2007 11:00
Para: Struts Users Mailing List
Asunto: Re: Problem undeploying struts application

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:
> Hi to all…
>
> Im having problems with the undeploy of an struts application im using 
> tomcat 5.5.4, when i undeploy the application some jars get locked and 
> i cant delete it….
>
> I search in web and i found the context properties antiResourceLocking 
> and antiJarLocking but it seems that they dont work.

Is it related to this:

  https://issues.apache.org/jira/browse/DIGESTER-29

Niall

> Any idea of a solutions
>
> Regards
> Juan Espinosa

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39
 


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



Re: Problem undeploying struts application

2007-02-23 Thread Niall Pemberton

On 2/23/07, Juan Espinosa <[EMAIL PROTECTED]> wrote:

Hi to all…

Im having problems with the undeploy of an struts application im using
tomcat 5.5.4, when i undeploy the application some jars get locked and i
cant delete it….

I search in web and i found the context properties antiResourceLocking and
antiJarLocking but it seems that they dont work.


Is it related to this:

 https://issues.apache.org/jira/browse/DIGESTER-29

Niall


Any idea of a solutions

Regards
Juan Espinosa


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



Problem undeploying struts application

2007-02-23 Thread Juan Espinosa
Hi to all…

Im having problems with the undeploy of an struts application im using
tomcat 5.5.4, when i undeploy the application some jars get locked and i
cant delete it….

I search in web and i found the context properties antiResourceLocking and
antiJarLocking but it seems that they dont work.

Any idea of a solutions

Regards 
Juan Espinosa

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23/02/2007
4:39
 


Profiling Struts Application

2007-02-22 Thread Rahul Patel

Does anyone know of any article/document that will allow me to profile a
Struts application?

I am still using Struts 1.1 with Eclipse 3.1 as IDE. I tried TPTP but
couldn't figure out how to use it for a web app.

Thanks,


Rahul


Re: Struts Application Design Issue

2007-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Shyamsunder,

Reddy, Shyamsunder wrote:
> 1.How to make sure that ActionServlet doesn't create any session using
> request.getSession(true) before the Request Processor class is classed.

I don't believe that Struts ever calls request.getSession(true). Are you
having a problem with something?

> 2.How can I use request.isRequestedSessionIdValid() to make sure that
> client has already accepted the current session.

I don't believe that this method can make any claims about the client's
acceptance of the session. It simply means that the session id provided
by the client does in fact match a currently valid session.

> 3.How Struts handles the Session tracking mechanism: Cookie, URL
> Rewriting. On my Websphere Test Server, I have enabled both. So this way I
> found that if cookie is disabled on my browser, it automatically adds a
> jsessionid to URLs.

Struts does not deal with session tracking: it is done entirely by the
contained (in your case, Websphere). Typically, a servlet container will
prefer cookies but also fully-support URL rewriting. Typically, there's
no need to use both cookies /and/ URL rewriting for a particular
session. If the browser does not accept cookies, the server should
fall-back to URL rewriting (assuming you have correctly encoded all of
your outgoing URLs).

> 4.What is the best to way to handle HttpSession creation and
> invalidation when Using Struts.

Struts does not provide any specific mechanisms for dealing with
sessions. However, your container (Websphere) should have those kinds of
capabilities (containers are required to support container-managed
authentication and authorization using security settings in web.xml).

> 5.Does Struts support Session tracking or do we need to depend on web
> container settings (Websphere, WebLogic)

You should rely on your servlet container for this type of thing. Struts
/uses/ some of that stuff, but it is provided by your servlet container.

- -chris

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

iD8DBQFFyMOq9CaO5/Lv0PARAhu/AKCGtB2iVA5AtIV+HAn54eotlr83zwCfTazd
g0sw3pooucJqFTNZWc35c58=
=OQNT
-END PGP SIGNATURE-

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



  1   2   3   >