[s1] security filter for EventDispatchAction

2007-07-26 Thread Strachan, Paul
Hi,

 

For security/authorisation we use a servlet filter which checks the url
against our security database.  We've recently upgraded to Struts 1.2.9
and tried using EventDispatchAction, but the problem is the filter does
not know which event to secure against (as the event name is arbitory
value and only struts knows about it in the mapping).

 

The problem with using EventDispatchAction is we don't know the event
parameter name is (ie what method Struts is going to execute) - to check
if the user has access to this action/event/method.

 

I think I will need to access the struts-config (module relative) and
EventDispatch logic from the Filter in order to deduce the current
event.  Does this sound feasible and is there any good example to do
this.

 

Thanks,

Paul

 

Note - our approach works fine for urls mapped with
MappingDispatchAction and DispatchAction (eg for the latter we know what
the dispatch param name is)


**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**


Re: S2 + REST urls

2007-07-26 Thread Aram Mkhitaryan
First of all, put that constants in struts.properties file next to
struts.xml
there are some problems with constants defined in struts.xml, some of them
does not work correctly

Then, you can create your namespace and mappings for images and csses, this
will add security,
and you will be able to hide real resource names

Also, to use restful urls you need only DefaultActionMapper, the other ones
are parameter automappers of restful urls, I do not use them

You can define your actions like this


  
  
  
  
  


Best,
Aram

Aram Mkhitaryan

52, 25 Lvovyan, Yerevan 375000, Armenia

Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]


Re: Chart generator servlet

2007-07-26 Thread Aram Mkhitaryan
I use jfreechart,

I'm generating the chart in the page's servlet (where the html is
generated),
I'm putting the image's url so that it is mapped to the chart viewer
servlet.

See examples of jfreechart, it's too simple.

Best,
Aram

Aram Mkhitaryan

52, 25 Lvovyan, Yerevan 375000, Armenia

Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]


Re: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Frank W. Zammetti

souravm wrote:
Regarding going for JSF due to componentization, I'm again not sure what additional componentizations JSF does compared to struts. 


JSF is inherently a component-based framework, meaning you aren't really 
thinking in terms of pages, your thinking in terms of components of a 
"view".  Struts doesn't really offer this, although S2 gets closer to it 
in many ways (and yes, there's some JSF support in S2 is you want it, 
although I'm not too familiar with it myself).


> Apart from the fact that JSF does not need a layer like Action 
Classes, all other components (validator, managed bean, html tag libs 
etc.) are already there in Struts. May be I'm missing something here.


I think your looking at the pieces and comparing them rather than 
looking at the overarching paradigm of one framework vs. the other.  The 
distinction has been diminished a bit with S2, but it's still there.


A component-based approach means your looking at individual elements 
that make up a a particular view and thinking in terms of the 
interactions the user can have with each.  You don't think in terms of 
state transitions, you think in terms of events.


With Struts, it's about state transitions.  The user submits a form and 
transitions to a new application state entirely.  I'm throwing AJAX out 
of this for the moment of course :)


Also, I'm yet to appreciate the real value add event handling mechanism of JSF can bring in a web application scenario. 


It's the ease, in theory, that it provides, and the fact that your 
inherently thinking along those lines, rather than shoe-horning it in. 
That's the value-add IML (in theory!)


> Especially given the fact that all those events (associated with a 
single http request) would be fired only in a sequential way at server 
side.


I'm not quite sure what you mean by that...

>
I really cannot think a usage scenario of multiple event handler feature 
of JSF. Even in case of RIAs, I believe what is more required feature is 
dynamic loading of part of a html page (which is currently the space 
where AJAX is becoming popular). So any further explanation/example on 
how you have found this feature of JSF to be useful for RIAs would be 
helpful for me to understand your point.


It's not just about partial page loads, although that's clearly a big 
part of it.  As I was describing before, it's more about the approach to 
developing the application.


Are you familiar at all with Visual Basic?  If so, let me try and make 
this analogy... working with JSF is more akin to developing in VB than 
in Struts because your creating a given view that is a collection of 
components, and then determining what events each component can trigger, 
and coding for them.  When you write a VB app, you aren't typically 
thinking in terms of this form leads to that form which leads to another 
form (unless your talking a wizard flow, but that's a specialized case). 
With Struts, it's always about a transition from one view to another, 
from one form to another in VB, triggered by some user input (again, 
putting AJAX aside for the moment).  The VB paradigm, is frankly more 
logical to most developers.  It's more like Swing too if you think about it.


Now *with* AJAX in the mix, and with client-side component libraries 
coming fast and furious, a lot of what made JSF potentially attractive 
has, again IMO, been significantly diminished.  People have realized 
that you don't need the full JSF stack, so to speak, and you can do 
components without JSF too, so maybe it's not as valuable.  Now, JSF 
still provides value there because it gives you a standardized component 
model, something that is sorely lacking in client-side component 
libraries these days (i.e., Dojo widgets and YUI widgets and APT widgets 
aren't generally compatible, and certainly aren't designed to some 
common pattern).


That's kind of what's happened in Struts land too... there's been a bit 
of a melding of the component paradigm and the non-component paradigm, 
largely with AJAX as the catalyst.



Regards,
Sourav


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!

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



[s2] Developing Portlets with Eclipse tutorial available

2007-07-26 Thread Don Brown
I wrote up a simple tutorial showing how to start developing portlets
using Struts 2 and Eclipse.  It takes advantage of the fact that
Struts 2 portlets can be deployed as normal web applications, the
tutorial is more how to use a Maven 2 archetype with Eclipse, but with
portlet-specific bits.

I'm a newbie with Eclipse, so I'd appreciate any corrections,
suggestions, etc.  Or better yet, submit a CLA and get write access to
fix it yourself ;)

http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html

Don

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



Re: ValidatorActionForm and Collection refill for the jsp

2007-07-26 Thread Paul Benedict

You could make the collection persistent -- session scope?

Zmaj wrote:

I have a form (ValidatorActionForm ) which is has a select and a input field
and my problem is when is 
validate the input field with the validator framework to see if the input

string matches a certain pattern.
When the pattern is wrong and the validator forwards back to the input jsp
the collection is of corse lost and
the jsp can not be rendered. Is there a way to refill the collection thats
needed for the select box
after the validation is over ? If so how can i achive this. I mean without
writing my own validation class but use the given "mask" validator.
greetz
Zmaj
  


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



RE: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread souravm

Hi Frank,

Thanks again for sharing the anecdotes of those projects which used JSF. I 
fully agree with your observations/comments regarding RAD tools. I work for a 
software service provider organization and seen the same things happening (for 
the projects using RAD tools) many a times.

Regarding going for JSF due to componentization, I'm again not sure what 
additional componentizations JSF does compared to struts. Apart from the fact 
that JSF does not need a layer like Action Classes, all other components 
(validator, managed bean, html tag libs etc.) are already there in Struts. May 
be I'm missing something here.

Also, I'm yet to appreciate the real value add event handling mechanism of JSF 
can bring in a web application scenario. Especially given the fact that all 
those events (associated with a single http request) would be fired only in a 
sequential way at server side. I really cannot think a usage scenario of 
multiple event handler feature of JSF. Even in case of RIAs, I believe what is 
more required feature is dynamic loading of part of a html page (which is 
currently the space where AJAX is becoming popular). So any further 
explanation/example on how you have found this feature of JSF to be useful for 
RIAs would be helpful for me to understand your point.

Regards,
Sourav



From: Frank W. Zammetti [EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 10:45 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Is Struts still a better choice over JSF as on today ?

On Thu, July 26, 2007 1:23 pm, souravm wrote:
> For me so far I don't see any reason why people should go for JSF except
> for moving ahead with a standard. As such I don't even see much use of
> event handling at UI layer - I always like to keep UI layer simple.

But remember that something can be a standard and still not be
successful... I wouldn't say that EJBs were unsuccessful, but it's
certainly true that people were looking for alternatives almost from the
beginning.  Witness how quickly Spring gained popularity for instance
(note that I'm talking pre-EJB3, which seems to have gotten a ton better).

As for event handling on the UI, I do have to disagree there.  I think
when you start doing a lot of RIA work, event handling is a big
consideration.  It's one of the reasons I eased up on my JSF criticisms
some months ago... while I still think there's better alternatives, it
does offer some value in that area, and I think it's an important area.

> Now knowing that you have already seen some projects where JSF was used
> here are my couple of Qs -
>
> a) What made them to go for JSF ?

I've seen three projects that went with JSF, none of which I was involved
in day-to-day development on... with one I know the decision was simply as
you said, because JSF is a "standard", and someone thought that was enough
of a reason to go with it :)  I can tell you that while that project
ultimately delivered, it had a ton of pain along the way, more so than if
it had gone with something better known, that was the conclusion at the
end.  I wasn't intimately involved with that project so I don't know all
the details, but I do know that some developers I trust said JSF was a
headache for them the whole time, even when the learning curve was
overcome (that's not necessarily a criticism of JSF mind you, it may well
be that it just wasn't the right choice for that particular case).

The other two projects went with JSF because the idea of a component-based
framework is attractive to many (myself included for the most part).  They
generally went alright, no huge complaints or anything.  I was again not
involved in day-to-day development of those, but I didn't hear any big
complaints.  Interestingly, one of them is now being rewritten using AJAX
under Struts 1.2.7 and using a handful of component libraries (YUI, Dojo
and APT).  The reason for the rewrite: the JSF version had become a pain
to maintain (this was a case of the generated code having to be mucked
with to get it right, and it turned into a big, heaping plate of spaghetti
in the process).  This again isn't necessarily a criticism of JSF because
it may well be that it just wasn't developed well in the first place, but
these are the facts of the case, draw what conclusions from it you may :)

The one conclusion I draw from this last experience is that if you use RAD
tools and are fortunate enough to never have to mess with the code, JSF is
probably no worse than anything else, and probably has some nice benefits.
 The first time you have to touch the code though, you may be heading down
a road you don't want to travel.  Me, I don't trust *any* tool to generate
code *that* much!

> b) What type of RAD tool was used (if at all) ?

One of them used no RAD tools at all (interestingly, it was the one that
seemed to go the smoothest and isn't be rewritten), the other two used
Java Studio Creator.  I can't give you any meaningful feed

Re: Captcha in Struts2

2007-07-26 Thread Dale Newfield

aarthy wrote:
How Can I implement Captcha in Struts2? 


Simplest way is to use recaptcha , although 
you're then tying your site to the network being up, and their site 
being up.


http://tanesha.net/projects/recaptcha4j/

-Dale


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



Captcha in Struts2

2007-07-26 Thread aarthy

How Can I implement Captcha in Struts2? 
-- 
View this message in context: 
http://www.nabble.com/Captcha-in-Struts2-tf4154321.html#a11819699
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: Need to forward to Nothing

2007-07-26 Thread Manisha M Sathe
Thanks, it worked

Manisha



   "Paul Benedict" <[EMAIL PROTECTED]> 
   Sent by: [EMAIL PROTECTED]
   07/26/2007 03:05 PM
   Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Re: Need to forward to Nothing






Do not be forwarding to null. Just return null.

On 7/26/07, Manisha M Sathe <[EMAIL PROTECTED]> wrote:
>
> Thanks to all, I tried that out. I am not getting any error but I am
> getting warning.
>
> My forward:
>
> return mapping.findForward(null);
>
> Warning on console:
>
> [Jul 26, 2007 13:48:52] [ExecuteThread: '14' for queue:
> 'weblogic.kernel.Default'] WARN [org.apache.struts.action.ActionMapping]
> - Unable to find 'null' forward.
>
> My entry as:
>
>  type=
> "com.freddiemac.msof.fire.common.admin.ui.action.ReconRestartAction"
> name="processReconForm"
> validate="false"
> input="reconSummaryReport.page">
> 
>
>
> Am I missing anything ? Any thoughts ?
>
> regards,
> Manisha
>
>
>
>
>"Paul Benedict" <[EMAIL PROTECTED]>
>Sent by: [EMAIL PROTECTED]
>07/26/2007 01:05 PM
>Please respond to
> "Struts Users Mailing List" 
>
>
> To
> "Struts Users Mailing List" 
> cc
>
> Subject
> Re: Need to forward to Nothing
>
>
>
>
>
>
> If you return null from an action in S1, that means you handled the
> response
> yourself -- no need for Struts to intervene. This has nothing to do with
> "killing the process" (bad news for your web container). Returning null 
is
> acceptable when sending a file for download, for example.
>
> Paul
>
> On 7/26/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote:
> >
> > Forward to null has worked for me in struts 1.2.x.
> >
> >
> > -Original Message-
> > From: Manisha M Sathe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 26, 2007 11:48 AM
> > To: user@struts.apache.org
> > Subject: Need to forward to Nothing
> >
> >
> > The action class does not forward to anything - it's like killing that
> > process if it comes to this action class. How can I specify that ?
> >
> > Thanks & regards
> > Manisha
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>



RE: Struts 2 Spring plug-in

2007-07-26 Thread Jiang, Jane (NIH/NCI) [C]
I got mine working when I took out the default-autowire="autodetect"
from my applicationContext.xml.  

Thanks David at arctechsoftware.com for suggesting the fix.  By the way,
the Struts 2 tutorial he offers is the best I have came across.  It
offers a complete example of integrating Struts 2, Tiles, Spring and
Hibernate.  I got the recommendation from this mailing list.  It saved
me days of frustration.  

Thank you all for your help,

Jane


-Original Message-
From: Deepak Kumar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 26, 2007 6:58 AM
To: Struts Users Mailing List
Subject: RE: Struts 2 Spring plug-in

Hi

Try http://www.roseindia.net/struts/hibernate-spring/

Thanks

-Original Message-
From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 3:19 AM
To: user@struts.apache.org
Subject: Struts 2 Spring plug-in


Hi,

Has anyone got Struts Spring plug-in to work?  I am getting this error
starting the application.  I removed all the beans except the dataSource
and
sessionFactory.  Please see attached.  I'd really appreciate any help
you
can offer.

Thanks,

Jane

ERROR http-8080-Processor24
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/acr] -
Exception sending context initialized event to listener instance of
class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'dataSource' while setting bean property 'dataSource'; nested exception
is
org.springframework.beans.factory.BeanCurrentlyInCreationException:
Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
Caused by:
org.springframework.beans.factory.BeanCurrentlyInCreationException:
Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
romF
actoryBean(AbstractBeanFactory.java:1238)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
orBe
anInstance(AbstractBeanFactory.java:1191)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stra
ctBeanFactory.java:211)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solv
eReference(BeanDefinitionValueResolver.java:271)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solv
eValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory
.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory
.populateBean(AbstractAutowireCapableBeanFactory.java:843)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory
.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(Ab
stractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSi
ngleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stra
ctBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.fin
dAut
owireCandidates(DefaultListableBeanFactory.java:362)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory
.autowireByType(AbstractAutowireCapableBeanFactory.java:900)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory
.populateBean(AbstractAutowireCapableBeanFactory.java:815)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory
.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(Ab
stractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSi
ngleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stra
ctBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
Inst
antiateSingletons(DefaultListableBeanFactory.java:281)
at
org.springframework.context.support.AbstractApplicationCo

Re: [S2] how to prevent the results pages get saved in the browser's cache

2007-07-26 Thread Brian Trzupek

Gabriel,

I am not certain of how S2 reacts with the settings, but I think that  
you need something like:

"Cache-Control: max-age=0"

To tell it to 'expire' that page. I used this once in a pure servlet  
app, and found some reference to it here:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.2.3
- section 13.2.5

I am not sure if that helps, but thought I would share what I did.

Thanks,
Brian Trzupek


On Jul 26, 2007, at 1:34 PM, Gabriel Belingueres wrote:


Hi,

Which is the best (right?) way of setting the HTTP headers in a S2 app
to prevent the browser to cache the result pages?

I'm testing right now with a servlet filter which match all /* URLs
but the back button is still working (i.e. the previous page is stored
in the browser cache).

Here is the filter code:

 public void doFilter(ServletRequest request, ServletResponse  
response,
  FilterChain chain) throws IOException,  
ServletException {


   HttpServletResponse res = (HttpServletResponse) response;

   res.setHeader("Cache-Control", "no-cache");
   res.setHeader("Pragma", "no-cache");
   res.addDateHeader("Expires", 0);

   chain.doFilter(request, response);
 }

Am I doing something wrong?

It is best to implement it as a servlet filter? or as an interceptor?
any other way?

TIA,
Gabriel

-
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]



[S2] Validation Input page handling the display of lists

2007-07-26 Thread Adam Ruggles
I have a form that uses the validation framework so when the user 
submits a page I have a /myform.jsp 
statement that re-renders the input form and displays the fields that 
failed validation.  The problem I'm running into is that I have a option 
transfer select field and once the form is re-rendered the list is empty 
so it doesn't render the options.


I'm trying to find a way to handle this, so the user is brought back to 
the form with everything populated just like it was.  It only fails when 
I have lists.  Is there a result type that can forward 
actionErrors/actionMessages/fieldErrors.  So I can re-render the page 
with the loading method?


Is there a best practice for handling this situation?

Thanks,
Adam

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



Re: [OT] Re: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Frank W. Zammetti
Not nearly as good would be my guess :)

-- 
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!

On Thu, July 26, 2007 2:19 pm, Antonio Petrelli wrote:
> 2007/7/26, Frank W. Zammetti <[EMAIL PROTECTED]>:
>> (this was a case of the generated code having to be mucked
>> with to get it right, and it turned into a big, heaping plate of
>> spaghetti
>> in the process).
>
> I always wonder what kind of spaghetti have you got outside of Italy :-D
>
> Antonio
>
> -
> 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: Need to forward to Nothing

2007-07-26 Thread Paul Benedict
Do not be forwarding to null. Just return null.

On 7/26/07, Manisha M Sathe <[EMAIL PROTECTED]> wrote:
>
> Thanks to all, I tried that out. I am not getting any error but I am
> getting warning.
>
> My forward:
>
> return mapping.findForward(null);
>
> Warning on console:
>
> [Jul 26, 2007 13:48:52] [ExecuteThread: '14' for queue:
> 'weblogic.kernel.Default'] WARN  [org.apache.struts.action.ActionMapping]
> - Unable to find 'null' forward.
>
> My entry as:
>
>  type=
> "com.freddiemac.msof.fire.common.admin.ui.action.ReconRestartAction"
> name="processReconForm"
> validate="false"
> input="reconSummaryReport.page">
> 
>
>
> Am I missing anything ? Any thoughts ?
>
> regards,
> Manisha
>
>
>
>
>"Paul Benedict" <[EMAIL PROTECTED]>
>Sent by: [EMAIL PROTECTED]
>07/26/2007 01:05 PM
>Please respond to
> "Struts Users Mailing List" 
>
>
> To
> "Struts Users Mailing List" 
> cc
>
> Subject
> Re: Need to forward to Nothing
>
>
>
>
>
>
> If you return null from an action in S1, that means you handled the
> response
> yourself -- no need for Struts to intervene. This has nothing to do with
> "killing the process" (bad news for your web container). Returning null is
> acceptable when sending a file for download, for example.
>
> Paul
>
> On 7/26/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote:
> >
> > Forward to null has worked for me in struts 1.2.x.
> >
> >
> > -Original Message-
> > From: Manisha M Sathe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 26, 2007 11:48 AM
> > To: user@struts.apache.org
> > Subject: Need to forward to Nothing
> >
> >
> > The action class does not forward to anything - it's like killing that
> > process if it comes to this action class. How can I specify that ?
> >
> > Thanks & regards
> > Manisha
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


ValidatorActionForm and Collection refill for the jsp

2007-07-26 Thread Zmaj

I have a form (ValidatorActionForm ) which is has a select and a input field
and my problem is when is 
validate the input field with the validator framework to see if the input
string matches a certain pattern.
When the pattern is wrong and the validator forwards back to the input jsp
the collection is of corse lost and
the jsp can not be rendered. Is there a way to refill the collection thats
needed for the select box
after the validation is over ? If so how can i achive this. I mean without
writing my own validation class but use the given "mask" validator.
greetz
Zmaj
-- 
View this message in context: 
http://www.nabble.com/ValidatorActionForm-and-Collection-refill-for-the-jsp-tf4153717.html#a11817741
Sent from the Struts - User mailing list archive at Nabble.com.


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



checking whether a button has been pressed

2007-07-26 Thread Session A Mwamufiya
Hi,

I have a jsp page with a form and a number of input buttons.  I would like my 
form action to differentiate which button has been pressed in order to show 
different pages.  I have private boolean variables that correspond to each 
button in my jsp page being pressed, but when my action runs and any button is 
pressed, all of my variables are false and the proper page isn't displayed.  
Any clues?

Thanks,
Session


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



Re: Unable to get started with Struts2 [solved]

2007-07-26 Thread Aladin
Hi Kevin,

As it turns out, it was a permission issue relating to the ognl package. 
On startup, classes from this package attempt to invoke methods from
classpath jars.  In order for it to succeed at doing this, it needs
permission (if you are running tomcat with some sort of permission
manager).

Unfortunately, the struts documentation doesn't explicitly list these for
a Tomcat installation
(http://struts.apache.org/2.0.6/docs/application-servers.html - notice
that Tomcat/JBOSS is not hyperlinked).  Luckily, it does however list the
permission dependencies for SunOne 7.0 which seem to also work for Tomcat.

Thanks.
Aladin




>
>
> Michelle Baert wrote:
>> Aladin wrote:
>>
>>> I have the simplest of Struts2 application and I keep getting an error
>>> in
>>> the logs stating:
>>>
>>> ERROR TP-Processor5 org.apache.catalina.core.StandardContext - Error
>>> filterStart
>>> ...
>> This looks very similar to what I get with all my struts2 apps.
>> See thread: "I still cannot run a basic struts2 app on"
>>
>
> I was getting this error when running struts/tomcat inside IntelliJ. The
> console just said "Error filterStart" but the log had a full stack trace.
>
> I encountered a multitude of different stack traces as I worked through
> getting the configuration correct - each with the same "Error
> filterStart "message - but, ultimately they were all caused by an
> incorrect classpath. Usually a missing jar but, occasionally, having two
> versions of the same jar would cause it.
>
> I am not a struts expert - and IDE magic obscured the true location of
> the logs - but maybe you could look for another log that would contain
> the full stack trace? Or an expert could tell you how to enable
> additional logging.
>
> Kevin
>
> www.junitfactory.com
> You send us code. We send back tests. For free.
>
> -
> 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: Need to forward to Nothing

2007-07-26 Thread Manisha M Sathe
Thanks to all, I tried that out. I am not getting any error but I am 
getting warning. 

My forward: 

return mapping.findForward(null); 

Warning on console:

 [Jul 26, 2007 13:48:52] [ExecuteThread: '14' for queue: 
'weblogic.kernel.Default'] WARN  [org.apache.struts.action.ActionMapping] 
- Unable to find 'null' forward.

My entry as:





Am I missing anything ? Any thoughts ?

regards,
Manisha




   "Paul Benedict" <[EMAIL PROTECTED]> 
   Sent by: [EMAIL PROTECTED]
   07/26/2007 01:05 PM
   Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Re: Need to forward to Nothing






If you return null from an action in S1, that means you handled the 
response
yourself -- no need for Struts to intervene. This has nothing to do with
"killing the process" (bad news for your web container). Returning null is
acceptable when sending a file for download, for example.

Paul

On 7/26/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote:
>
> Forward to null has worked for me in struts 1.2.x.
>
>
> -Original Message-
> From: Manisha M Sathe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 26, 2007 11:48 AM
> To: user@struts.apache.org
> Subject: Need to forward to Nothing
>
>
> The action class does not forward to anything - it's like killing that
> process if it comes to this action class. How can I specify that ?
>
> Thanks & regards
> Manisha
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Trying to get form action attribute from template

2007-07-26 Thread Néstor Boscán
Hi
 
I'm trying to get the form action attribute in the form.ftl template.
Instead of retrieving the value that it's set in the tag it returns the
complete URL
 
/uriPrefix/theAction.action?JSESSIONID=
 
Is there a way to retrieve only what's in the action attribute?
 
Regards,
 
Néstor Boscán


Re: Need to forward to Nothing

2007-07-26 Thread Musachy Barroso
Same thing applies to S2.

musachy

On 7/26/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
> If you return null from an action in S1, that means you handled the response
> yourself -- no need for Struts to intervene. This has nothing to do with
> "killing the process" (bad news for your web container). Returning null is
> acceptable when sending a file for download, for example.
>
> Paul
>
> On 7/26/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote:
> >
> > Forward to null has worked for me in struts 1.2.x.
> >
> >
> > -Original Message-
> > From: Manisha M Sathe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 26, 2007 11:48 AM
> > To: user@struts.apache.org
> > Subject: Need to forward to Nothing
> >
> >
> > The action class does not forward to anything - it's like killing that
> > process if it comes to this action class. How can I specify that ?
> >
> > Thanks & regards
> > Manisha
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


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

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



[S2] how to prevent the results pages get saved in the browser's cache

2007-07-26 Thread Gabriel Belingueres

Hi,

Which is the best (right?) way of setting the HTTP headers in a S2 app
to prevent the browser to cache the result pages?

I'm testing right now with a servlet filter which match all /* URLs
but the back button is still working (i.e. the previous page is stored
in the browser cache).

Here is the filter code:

 public void doFilter(ServletRequest request, ServletResponse response,
  FilterChain chain) throws IOException, ServletException {

   HttpServletResponse res = (HttpServletResponse) response;

   res.setHeader("Cache-Control", "no-cache");
   res.setHeader("Pragma", "no-cache");
   res.addDateHeader("Expires", 0);

   chain.doFilter(request, response);
 }

Am I doing something wrong?

It is best to implement it as a servlet filter? or as an interceptor?
any other way?

TIA,
Gabriel

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



Re: passing data(object) from jsp to action class thru HTTP request.

2007-07-26 Thread Mateusz Nowakowski

I have to pass object,so I think I should go for session?

Am I right?


Yes, you should use session, but ... i dissuade from save something to 
session from JSP. Firstly, after a month you won't remember what you 
have in session, and session will grown because you won't remember to 
clean it probably. Besides, any logic you can do in view, you can and 
should do in action.


If you want to remember something from one request to another and if you 
use the same action as input action and action you submit to, you can 
store action object (in s2 or ScopeInterceptor) or action form (in s1) 
is session.  If you want to remember something across different actions 
save it as normal object in session.


The are 2 other things with session:
-- any object you put into session should be serializable (less troubles 
when you cluster application for example)
-- session is like memory in C/C++, it can grows when is bad used; you 
have to remember to clean it when you know you don't need some objects 
anymore, and use session as small as possible. Remember that each user 
has session.


--
Mateusz Nowakowski

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



S2: Bug in struts or dojo? was Re: S2: Getting info from server via topic

2007-07-26 Thread Scott Nesbitt

Is this a bug in Struts 2.0.6 or Dojo 0.4?  Why would
there be garbage in the data argument?

Is this not the right way to subscribe to a topic?

Surely somebody out there is doing this.

Thank you,

Scott

--- Scott Nesbitt <[EMAIL PROTECTED]> wrote:

> 
> Hmm, when I print out the value of the "data"
> argument
> it seems to have the complete text of the JSP (in
> both
> before and load sections of the function.)
> 
> All the JavaScript and HTML is in this argument. 
> Could it be because this JSP is included from
> another
> JSP like this?
> 
> <%@ include file="sports.jsp" %>
> 
> Thanks for the help,
> 
> Scott
> 
> --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> 
> > Anything that you write to the output stream on
> your
> > action will be
> > available on the "data" argument.
> > 
> > musachy
> > 
> > On 7/17/07, Scott Nesbitt <[EMAIL PROTECTED]>
> > wrote:
> > >
> > >
> > > For this topic:
> > >
> > > dojo.event.topic.subscribe("/saveTopic",
> > > function(data, type, e)
> > > {
> > > // data : text returned
> > > // type : "before", "load" or "error"
> > > // e: request object
> > >   if ('load' == type)
> > >   {
> > >
> > >   }
> > > }
> > >
> > > When my action on the server is successful the
> > type is
> > > set to load and things work great.  However, I
> > would
> > > like to send some data back from the server also
> > (in
> > > the "data" arg, I presume.)
> > >
> > > I posted this a week ago but got no response. 
> Is
> > this
> > > better asked in the Dojo list?
> > >
> > > Thanks,
> > >
> > > Scott
> > >
> > >
> > >
> > >  
> >
>

> > > Park yourself in front of a world of choices in
> > alternative vehicles.
> > > Visit the Yahoo! Auto Green Center.
> > > http://autos.yahoo.com/green_center/
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> > -- 
> > "Hey you! Would you help me to carry the stone?"
> > Pink Floyd
> > 
> 
> 
> 
>  
>

> Fussy? Opinionated? Impossible to please? Perfect. 
> Join Yahoo!'s user panel and lay it on us.
>
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



   

Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

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



[OT] Re: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Antonio Petrelli

2007/7/26, Frank W. Zammetti <[EMAIL PROTECTED]>:

(this was a case of the generated code having to be mucked
with to get it right, and it turned into a big, heaping plate of spaghetti
in the process).


I always wonder what kind of spaghetti have you got outside of Italy :-D

Antonio

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



Re: Need to forward to Nothing

2007-07-26 Thread Paul Benedict
If you return null from an action in S1, that means you handled the response
yourself -- no need for Struts to intervene. This has nothing to do with
"killing the process" (bad news for your web container). Returning null is
acceptable when sending a file for download, for example.

Paul

On 7/26/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote:
>
> Forward to null has worked for me in struts 1.2.x.
>
>
> -Original Message-
> From: Manisha M Sathe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 26, 2007 11:48 AM
> To: user@struts.apache.org
> Subject: Need to forward to Nothing
>
>
> The action class does not forward to anything - it's like killing that
> process if it comes to this action class. How can I specify that ?
>
> Thanks & regards
> Manisha
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Can I integrate Struts 2 + JSF and Facelets?

2007-07-26 Thread mraible



mraible wrote:
> 
> Thanks for your help. I was able to get it working with Sun's RI +
> Facelets. I'm confident I could get it working with MyFaces 1.2 as well -
> but since they require a JSP 2.1 container (Sun's RI doesn't), I'll stick
> with the RI.
> 
> Here's the two ways I discovered:
> 
> 1. Create a faces-config.xml file with the following contents:
> 
> 
> http://java.sun.com/xml/ns/javaee";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd";
>   version="1.2">
> 
> 
> com.sun.facelets.FaceletViewHandler
> 
> 
> 
> 2. Integrate Ajax4JSF (no faces-config.xml required) and add the following
> to your web.xml:
> 
> 
> org.ajax4jsf.VIEW_HANDLERS
> com.sun.facelets.FaceletViewHandler
> 
> 
> There does seem to be a bug with this integration however. The
> content-type returned from a Facelets page by default is:
> 
> Content-Type: application/xhtml+xml; charset=UTF-8
> 
> Since I'm using SiteMesh, my Facelets pages don't get decorated by
> default. The workaround seems to be adding the following at the top of my
> pages:
> 
> 
> 
> This doesn't happen when using JSP for the view. It also doesn't happen
> when I use JSF standalone.
> 
> Matt
> 

Adding the following to sitemesh.xml allows me to remove the  tags
from my Facelets pages:



Matt

-- 
View this message in context: 
http://www.nabble.com/Can-I-integrate-Struts-2-%2B-JSF-and-Facelets--tf4138220.html#a11815698
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: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Frank W. Zammetti
On Thu, July 26, 2007 1:23 pm, souravm wrote:
> For me so far I don't see any reason why people should go for JSF except
> for moving ahead with a standard. As such I don't even see much use of
> event handling at UI layer - I always like to keep UI layer simple.

But remember that something can be a standard and still not be
successful... I wouldn't say that EJBs were unsuccessful, but it's
certainly true that people were looking for alternatives almost from the
beginning.  Witness how quickly Spring gained popularity for instance
(note that I'm talking pre-EJB3, which seems to have gotten a ton better).

As for event handling on the UI, I do have to disagree there.  I think
when you start doing a lot of RIA work, event handling is a big
consideration.  It's one of the reasons I eased up on my JSF criticisms
some months ago... while I still think there's better alternatives, it
does offer some value in that area, and I think it's an important area.

> Now knowing that you have already seen some projects where JSF was used
> here are my couple of Qs -
>
> a) What made them to go for JSF ?

I've seen three projects that went with JSF, none of which I was involved
in day-to-day development on... with one I know the decision was simply as
you said, because JSF is a "standard", and someone thought that was enough
of a reason to go with it :)  I can tell you that while that project
ultimately delivered, it had a ton of pain along the way, more so than if
it had gone with something better known, that was the conclusion at the
end.  I wasn't intimately involved with that project so I don't know all
the details, but I do know that some developers I trust said JSF was a
headache for them the whole time, even when the learning curve was
overcome (that's not necessarily a criticism of JSF mind you, it may well
be that it just wasn't the right choice for that particular case).

The other two projects went with JSF because the idea of a component-based
framework is attractive to many (myself included for the most part).  They
generally went alright, no huge complaints or anything.  I was again not
involved in day-to-day development of those, but I didn't hear any big
complaints.  Interestingly, one of them is now being rewritten using AJAX
under Struts 1.2.7 and using a handful of component libraries (YUI, Dojo
and APT).  The reason for the rewrite: the JSF version had become a pain
to maintain (this was a case of the generated code having to be mucked
with to get it right, and it turned into a big, heaping plate of spaghetti
in the process).  This again isn't necessarily a criticism of JSF because
it may well be that it just wasn't developed well in the first place, but
these are the facts of the case, draw what conclusions from it you may :)

The one conclusion I draw from this last experience is that if you use RAD
tools and are fortunate enough to never have to mess with the code, JSF is
probably no worse than anything else, and probably has some nice benefits.
 The first time you have to touch the code though, you may be heading down
a road you don't want to travel.  Me, I don't trust *any* tool to generate
code *that* much!

> b) What type of RAD tool was used (if at all) ?

One of them used no RAD tools at all (interestingly, it was the one that
seemed to go the smoothest and isn't be rewritten), the other two used
Java Studio Creator.  I can't give you any meaningful feedback on that
tool though... I've played with it a little, didn't think anything
particularly good or bad about it from that admittedly limited experience.
 I'm very much a text editor kind of guy, so my opinions are frankly
tainted by experience hand-coding JSF (which, to be honest, hasn't been
all *that* bad really, but I've never done a truly substantial JSF
application personally, I've only watched others do so).

> Regards,
> Sourav

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!

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



RE: Need to forward to Nothing

2007-07-26 Thread Asthana, Rahul
Forward to null has worked for me in struts 1.2.x.


-Original Message-
From: Manisha M Sathe [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 11:48 AM
To: user@struts.apache.org
Subject: Need to forward to Nothing


The action class does not forward to anything - it's like killing that 
process if it comes to this action class. How can I specify that ?

Thanks & regards
Manisha

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



Re: Can I integrate Struts 2 + JSF and Facelets?

2007-07-26 Thread mraible

Thanks for your help. I was able to get it working with Sun's RI + Facelets.
I'm confident I could get it working with MyFaces 1.2 as well - but since
they require a JSP 2.1 container (Sun's RI doesn't), I'll stick with the RI.

Here's the two ways I discovered:

1. Create a faces-config.xml file with the following contents:


http://java.sun.com/xml/ns/javaee";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd";
  version="1.2">


com.sun.facelets.FaceletViewHandler



2. Integrate Ajax4JSF (no faces-config.xml required) and add the following
to your web.xml:


org.ajax4jsf.VIEW_HANDLERS
com.sun.facelets.FaceletViewHandler


There does seem to be a bug with this integration however. The content-type
returned from a Facelets page by default is:

Content-Type: application/xhtml+xml; charset=UTF-8

Since I'm using SiteMesh, my Facelets pages don't get decorated by default.
The workaround seems to be adding the following at the top of my pages:



This doesn't happen when using JSP for the view. It also doesn't happen when
I use JSF standalone.

Matt

Laurie Harper wrote:
> 
> mraible wrote:
>> I'm trying to integrate JSF into a Struts 2 prototype. AFAICT, I need to
>> add
>> the struts-jsf-plugin to my pom.xml and add FacesServlet to my web.xml.
>> Are
>> there any other steps needed?
>> 
>> I'm using Sun's RI since it run's on Tomcat 5.x with JSP 2.0. How do I
>> tell
>> JSF to use Facelets w/o a faces-config.xml file? Does the plugin only
>> work
>> with MyFaces + JSP?
> 
> The JSF plugin should work with either MyFaces or the RI, and Facelets 
> should work too. I don't think you can get Facelets configured without 
> making the usual additions to web.xml and faces-config.xml, though, so 
> you'll need to do that as normal.
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-integrate-Struts-2-%2B-JSF-and-Facelets--tf4138220.html#a11815395
Sent from the Struts - User mailing list archive at Nabble.com.


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



passing dada from jsp to action class thru HTTP request.

2007-07-26 Thread Kameshwaran

I am trying to pass some values from the jsp to action class.

I did something like this in the jsp:request.setAttribute("InvVOX",
inventoryVOX);

but when I try to get it in the action class(when the jsp gets submitted).I
am getting null.

Is there something I am missing here?

Please do help me out.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/passing-dada-from-jsp-to-action-class-thru-HTTP-request.-tf4152921.html#a11814773
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: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread souravm

Hi Frank,

Thanks a lot for your opinions/inputs. Found it very informative.

For me so far I don't see any reason why people should go for JSF except for 
moving ahead with a standard. As such I don't even see much use of event 
handling at UI layer - I always like to keep UI layer simple.

Now knowing that you have already seen some projects where JSF was used here 
are my couple of Qs -

a) What made them to go for JSF ?
b) What type of RAD tool was used (if at all) ?

Regards,
Sourav



-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 4:41 PM
To: Struts Users Mailing List
Subject: Re: Is Struts still a better choice over JSF as on today ?

souravm wrote:
> Will you consider Struts to be a better choice today compared to JSF ?

In *most* cases, for me, yes I would, but that's just my opinion, and
I'm about to invalidate it at the end of this :)

 > Especially, given the fact that JSF has better controller
flexibility, event handling capability and ease of development using a
RAD tool ?

I don't think any of those "facts" are "givens" in any way, shape or
form.  You could convince me event handling is better, maybe, but not
the other two.

Controller flexibility is AT BEST a wash in my opinion (which is what
you asked for), especially when your talking about S2.  The interceptor
stacks and result types, I believe, gives you just about all the
flexibility you could ask for, and it's far from rocket science.  Even
with S1 you now have a chain-based request processor, and that gives you
a ton of flexibility it you choose to use it.

As for ease of development with a RAD tool, you may well be right there,
but to me, a big part of development is maintenance over time, and any
time you have to rely on tooling to create an application, even in part,
your asking for trouble down the road.  Besides, I've heard stories of
people who have used those RAD tools you speak of, only to find that
they spend just as much time mucking around with the code they generate
to get it to do exactly what they want/need as they would have spent
just hand-coding is all in Struts.  In the end, they saved little or no
time, and possibly even wound up costing themselves some in the worst cases.

At the end of the day though, my belief still stands: look at your
requirements and choose the right tool for the job.  I used to be pretty
strongly anti-JSF, but I've calmed down considerably... at this point
I'm simply indifferent to it.  I've had a couple of instances where JSF
was seriously considered as a platform for a project, and I would have
had little trouble going with it and working with it, there just wound
up being some factors that made other choices be judged as better for
the given situation.  You should always do that, it's not just a matter
of this or that is better than this or that in absolute terms, you can't
make a general statement like that in my opinion.  Don't use JSF because
it's the "standard", don't use Struts because it's the most popular
still after all this time, use one or the other (or something else
entirely!) because it suits your needs better than the other for a given
project, simple as that.

> Regards,
> Sourav

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!

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


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Re: passing data(object) from jsp to action class thru HTTP request.

2007-07-26 Thread Kameshwaran

I have to pass object,so I think I should go for session?

Am I right?


newton.dave wrote:
> 
> --- Kameshwaran <[EMAIL PROTECTED]> wrote:
>> I am trying to pass some values from the jsp to
>> action class.
>> 
>> I did something like this in the
>> jsp:request.setAttribute("InvVOX", inventoryVOX);
>> 
>> but when I try to get it in the action class(when
>> the jsp gets submitted).I am getting null.
>> 
>> Is there something I am missing here?
> 
> Yep; most definitely.
> 
> If you make a new request values in the old request
> are no longer there.
> 
> To answer your next question, either in session or as
> a URL parameter.
> 
> d.
> 
> 
> 
>
> 
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more. 
> http://mobile.yahoo.com/go?refer=1GNXIC
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/passing-data%28object%29-from-jsp-to-action-class-thru-HTTP-request.-tf4152921.html#a11815014
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: Need to forward to Nothing

2007-07-26 Thread Musachy Barroso
Are you talking about Struts 1 or 2? If S2, then you can return
Action.NONE (not sure if that's what you expect as 'killing the
process').

musachy

On 7/26/07, Manisha M Sathe <[EMAIL PROTECTED]> wrote:
> The action class does not forward to anything - it's like killing that
> process if it comes to this action class. How can I specify that ?
>
> Thanks & regards
> Manisha
>


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

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



Re: There is no Action mapped for action name HelloWorld. - [unknown location]

2007-07-26 Thread boriskerzner

Thanks a lot. I figured that one out too... after 6 hours!! ;)


temp_checker wrote:
> 
> I had the same problem. In case you haven't already figured it out, simply
> moving my struts.xml from WEB-INF to WEB-INF/classes/ solved the problem.
> I hope it works for you.
> 
> 
> 
> boriskerzner wrote:
>> 
>> Hi. I setup Struts 2 on my computer and tried to run the HelloWorld
>> example, but am running into the same problem mentioned at the beginning
>> of this chain. Was the problem resolved? Any help would be greatly
>> appreciated. I am stuck. 
>> - Boris
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/There-is-no-Action-mapped-for-action-name-HelloWorld.unknown-location--tf3362312.html#a11814885
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: passing data(object) from jsp to action class thru HTTP request.

2007-07-26 Thread Dave Newton
--- Kameshwaran <[EMAIL PROTECTED]> wrote:
> I am trying to pass some values from the jsp to
> action class.
> 
> I did something like this in the
> jsp:request.setAttribute("InvVOX", inventoryVOX);
> 
> but when I try to get it in the action class(when
> the jsp gets submitted).I am getting null.
> 
> Is there something I am missing here?

Yep; most definitely.

If you make a new request values in the old request
are no longer there.

To answer your next question, either in session or as
a URL parameter.

d.



   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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



Re: [s2] broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread David Durham, Jr.

On 7/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:

I thought IE's broken button behavior was already
documented, including on the wiki?


That may be.  Here's the rendered HTML:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>





   Cancel Test




   
   Submit



   
   Cancel



   





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



Re: [s2] broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread Dave Newton
I thought IE's broken button behavior was already
documented, including on the wiki?

d.

--- "David Durham, Jr." <[EMAIL PROTECTED]>
wrote:

> > > Things like:
> > >
> > > 
> > > 
> > >  value="Cancel"/>
> > > 
> > >
> > > work for me in firefox, but don't seem to work
> in IE.
> >
> > Could you provide the rendered HTML that works in
> one browser but not the
> > other?
> 
> Sure.
> 
> TestCancel.jsp
> --
> 
>  Transitional//EN"
>
>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> 
> <%@ taglib prefix="s" uri="/struts-tags"%>
> 
> 
> 
> Cancel Test
> 
> 
> 
>  action="TestCancel!submit" value="Submit"/>
>  action="TestCancel!cancel" value="Cancel"/>
> 
> 
> 
> 
> struts-config.xml
> --
> class="com.TestCancel">
> 
type="redirect">/TestCancel.jsp?cancelled=false
> 
type="redirect">/TestCancel.jsp?cancelled=true
>
> 
> com.TestCancel
> 
> package com;
> 
> public class TestCancel {
> 
> public String submit() {
> return "submit";
> }
> 
> public String cancel() {
> return "cancel";
> }
> 
> }
> 
> 
> Removing "type=button" will fix the IE issue.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


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



Re: [s2] broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread David Durham, Jr.

> Things like:
>
> 
> 
> 
> 
>
> work for me in firefox, but don't seem to work in IE.

Could you provide the rendered HTML that works in one browser but not the
other?


Sure.

TestCancel.jsp
--

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<%@ taglib prefix="s" uri="/struts-tags"%>



   Cancel Test


   
   
   
   



struts-config.xml
--
  
   /TestCancel.jsp?cancelled=false
   /TestCancel.jsp?cancelled=true
  

com.TestCancel

package com;

public class TestCancel {

   public String submit() {
   return "submit";
   }

   public String cancel() {
   return "cancel";
   }

}


Removing "type=button" will fix the IE issue.

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



Re: S2 + REST urls

2007-07-26 Thread Ted Husted
It's possible that the use case of a an empty action extension was not
considered when the filter was first designed. It does seem like a
valid use case, and it may be time to patch the filter.

-Ted.

On 7/26/07, matihost <[EMAIL PROTECTED]> wrote:
> I wondering why filter dispatcher do not check existence of mapping returned 
> from ActionMapper and if it doesn't exist, behave as when ActionMapper is 
> null. Probably it is faster for not empty "struts.action.extension" actions.
>
> I found also solution to use /someName/* for struts filter dispatcher 
> mapping, but i don`t want to use it.
>
> --
> Greetings
> Mateusz Nowakowski

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



Re: Unable to get started with Struts2

2007-07-26 Thread Kevin Lawrence



Michelle Baert wrote:

Aladin wrote:


I have the simplest of Struts2 application and I keep getting an error
in
the logs stating:

ERROR TP-Processor5 org.apache.catalina.core.StandardContext - Error
filterStart
...

This looks very similar to what I get with all my struts2 apps.
See thread: "I still cannot run a basic struts2 app on" 
 


I was getting this error when running struts/tomcat inside IntelliJ. The 
console just said "Error filterStart" but the log had a full stack trace.


I encountered a multitude of different stack traces as I worked through 
getting the configuration correct - each with the same "Error 
filterStart "message - but, ultimately they were all caused by an 
incorrect classpath. Usually a missing jar but, occasionally, having two 
versions of the same jar would cause it.


I am not a struts expert - and IDE magic obscured the true location of 
the logs - but maybe you could look for another log that would contain 
the full stack trace? Or an expert could tell you how to enable 
additional logging.


Kevin

www.junitfactory.com
You send us code. We send back tests. For free.

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



Need to forward to Nothing

2007-07-26 Thread Manisha M Sathe
The action class does not forward to anything - it's like killing that 
process if it comes to this action class. How can I specify that ?

Thanks & regards
Manisha


Fwd: Popup from struts

2007-07-26 Thread Carlos González López

-- Forwarded message --
From: Carlos González López <[EMAIL PROTECTED]>
Date: 26-jul-2007 16:40
Subject: Popup from struts
To: user@struts.apache.org

Hi,

I need to open a popup from struts-conf.xml.
this is possible?

thank you


Re: autocompleter works at firefox but broken at IE 6

2007-07-26 Thread 宁波新希望信息技术有限公司 -- 俞宏伟

I found that struts 2 " link two autocompleter" of showcase apps can not
work correctly with IE 6, I test both struts 2.0.8 and struts 2.0.9 have
same javascript exception.

as metioned prior message, the struts live showcase also can not works with
IE 6.
http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/

it looks that dojo.js has some exception, but I do not know how to solved
the problem. has anyone help me, thanks


2007/7/25, NHSoft.YHW <[EMAIL PROTECTED]>:



>>but I found follow URL works with IE 6:
>>http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/

today I found that the
URL(http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/
)executed
failure IE 6 when click Autocompleter 2 of  "Link two autocompleter
elements.", the IE throws Excption message "4871 object error"



NHSoft.YHW wrote:
>
> deploy showcase apps at tomcat 5.5.17 & JDK1.5.11, when I test "Link two
> autocompleter elements" example, when click "Autocompleter 2", the same
> error found at IE 6(Firefox works)
>
> but I found follow URL works with IE 6:
> http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/
>
> :(
>
> My Env Detail:
> windows 2000 server + tomcat 5.5.17+jdk1.5.11+struts 2.0.8
>
> thanks
>

--
View this message in context:
http://www.nabble.com/autocompleter-works-at-firefox-but-broken-at-IE-6-tf4097298.html#a11784783
Sent from the Struts - User mailing list archive at Nabble.com.


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





--
新希望信息技术有限公司---俞宏伟
Addr:宁波海曙新高路47弄7号四楼新希望软件
Site: http://www.nhsoft.cn
MSN/GTalk: [EMAIL PROTECTED]
Tel: 0574-87280538
Fax: 0574-56226219
Mobile:13780081921


Re: Re: A problem using Struts Tiles

2007-07-26 Thread Antonio Petrelli

2007/7/26, Paul Benedict <[EMAIL PROTECTED]>:


Antonio, are you doing the same with the Tiles2 plugin? Using a command
not
a custom controller?




Do you mean this?
http://svn.apache.org/repos/asf/struts/struts1/trunk/tiles2/src/main/resources/org/apache/struts/tiles2/chain-config.xml
I simply copied it from Tiles and changed the part about the pre-processor.

Antonio


Re: Re: A problem using Struts Tiles

2007-07-26 Thread Paul Benedict
Ah, it just occurred to me: Are you using Struts 1.3? If so, you need a
custom chain file. You don't need a custom controller in 1.3, but you do
need a custom chain-config to insert the Tiles command. Search the Struts
wiki on the 1.3 upgrade notes which explain how to do this.

Antonio, are you doing the same with the Tiles2 plugin? Using a command not
a custom controller?

Paul

On 7/26/07, matihost <[EMAIL PROTECTED]> wrote:
>
> I think you forgot to override controller class (as i remember i had the
> same problem):
>
> Your configuration should have also:
>
>  contentType="text/html;
> charset=UTF-8"/>
>
>
> >My configurations:
> >
> > struts-config.xml
> >
> >
> >...
> >
> >  
> >  
> >  
> >...
> >
> >
> >   >   value="/WEB-INF/tiles-defs.xml" />
> > 
> >...
> >
>
> --
> Greetings
> Mateusz Nowakowski
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


asterisk wildcar for result name (non(?) documented feature)

2007-07-26 Thread Hubert Grininger
Hi,

just figured out that it is possible to use a asterisk (*) for action
tag's name property. Eg:


  /WEB-INF/pages/view/help.jsp


That's very convenient because thus it's possible to chain to this
action from every possible state.


  /view/result.action  
  /view/help.action  
  /view/help.action   


Sadly, I didn't find anything about the possibility to use an asterisk
in the documentation, so I wanted to be sure that this feature will stay
and is meant to be used in the way I described.

Thanks for any clearing.

Notice: I am in a portlet environment, not sure if the above applies for
non-portlet mode.

br, Hubert


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



Chart generator servlet

2007-07-26 Thread Balazs Michnay
Hi there,

I wanted to generate charts from my web-app and I found jCharts 
(http://jcharts.sourceforge.net/) as one good choice.
I deployed the example war, so I saw how to set up a simple "chart generator" 
servlet.
It works just fine.
If my chart is generated from a servlet, only the resulting chart is displayed 
on the page. Since I'd like to embed my chart into a struts application (I'd 
like to get the chart displayed on one a jsp page), I must find a way to 
display not only the chart, but other HTML content as well.
There is also an example that generates a chart directly from a JSP, but 
nothing else can be displayed again, but the chart itself.
Can you please tell me how to use my "chart generator" servlet to get the 
result embedded into my jsp page (as an image file or in any other way)?


Thanks a lot.

Regards,

MB



   
Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Re: Re: A problem using Struts Tiles

2007-07-26 Thread matihost
I think you forgot to override controller class (as i remember i had the same 
problem):

Your configuration should have also:




>My configurations: 
>
> struts-config.xml
>
>
>...
>
>  
>  
>  
>...
>
>
> value="/WEB-INF/tiles-defs.xml" />
> 
>...
>

-- 
Greetings
Mateusz Nowakowski

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



[S2] how to access struts.properties values in a custom tag

2007-07-26 Thread David Binder

Hi,

I'm trying to get the i18n encoding value from the parameters we set in
struts.properties for our project. I'm trying to do it in a tag (in the
component part). I don't manage to access it. I cant find the object
carrying the information. Does someon have an idea ?

David


Re: 答复: 答复: Radio Buttons in Struts

2007-07-26 Thread merryba

It is working now after clearing my cache.

Real wrote:
> 
> A bit strange, it does work in my test app.
> 
> Crazyreal
> -邮件原件-
> 发件人: merryba [mailto:[EMAIL PROTECTED] 
> 发送时间: 2007年7月26日 9:27
> 收件人: user@struts.apache.org
> 主题: Re: 答复: Radio Buttons in Struts
> 
> 
> It doesn't work .Still I am not getting as one of the radio buttons to be
> selected by default.
> 
> Real wrote:
>> 
>> As following:
>> 
>> > value="%{'F'}"/>
>> 
>> Crazyreal
>> 
>> -邮件原件-
>> 发件人: merryba [mailto:[EMAIL PROTECTED] 
>> 发送时间: 2007年7月26日 7:13
>> 收件人: user@struts.apache.org
>> 主题: Radio Buttons in Struts
>> 
>> 
>> Hi,
>> 
>> Please I am newbie to Sruts2.
>> I want the radio button to display "Male" as the selected one.
>> 
>> 
>> 
>> 
>> How can I do it? Please help me.
>> 
>> Thanks,
>> -- 
>> View this message in context:
>> http://www.nabble.com/Radio-Buttons-in-Struts-tf4148450.html#a11801418
>> 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]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Radio-Buttons-in-Struts-tf4148450.html#a11802728
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Radio-Buttons-in-Struts-tf4148450.html#a11811972
Sent from the Struts - User mailing list archive at Nabble.com.


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



S2 + REST urls

2007-07-26 Thread matihost
Hi everyone

What is the best practice to use REST url notation in Struts2 application ? 
Does anyone have successful solution ?


Below are my consideration about the available solutions:

I used /* filter mapping for struts filter and set 



and tried all available mappers for constant "struts.mapper.class"  - 
DefaultActionMapper, RestfulActionMapper and  Restful2ActionMapper and 
everytime i had the same problem. 

Application is unable to serve static content (css, images, etc.) both from 
application directory and from /struts/*.

I read some FilterDispatcher and mappers code and i noticed that when 
"struts.action.extension" is empty all mappers return always instance of   
ActionMapping of action which doesn't exist. For example action 'xxx.jpg', but 
it should return null and then s2 provides static web content. Thats why i 
provide temporary own mapper which returns null when action name contains dot. 
But it is workaround solution.

I wondering why filter dispatcher do not check existence of mapping returned 
from ActionMapper and if it doesn't exist, behave as when ActionMapper is null. 
Probably it is faster for not empty "struts.action.extension" actions.

I found also solution to use /someName/* for struts filter dispatcher mapping, 
but i don`t want to use it.

--
Greetings
Mateusz Nowakowski



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



Popup from struts

2007-07-26 Thread Carlos González López

Hi,

I need to open a popup from struts-conf.xml.
this is possible?

thank you


Re: A problem using Struts Tiles

2007-07-26 Thread Paul Benedict
I use global forwards as well. There is something else at play here.
Whenever that error occurs, it means some other problem occured. Perhaps the
definitions never load, etc.

On 7/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> I don't believe that global-forwards were ever able to
> point to tile definitions, but it's been awhile.
> Inside the action-mappings a forward can point to a
> tile.
>
> d.
>
> --- Antonio Petrelli <[EMAIL PROTECTED]>
> wrote:
>
> > 2007/7/26, Paul Benedict <[EMAIL PROTECTED]>:
> > >
> > > Of course you can forward to a tile. That's the
> > point of tiles :-)
> >
> >
> >
> > Maybe I have not been clear.
> > The following works:
> >  > />
> > but the following does not seem to work:
> > 
> >
> > Antonio
> >
>
>
>
>
>
> 
> Be a better Globetrotter. Get better travel answers from someone who
> knows. Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


AW: AW: Struts 2 requires input result on failed type conversion

2007-07-26 Thread Martin Simons
Since nobody was able to help me so far I tried to dive into the matter
myself. To this point in time I was not able to understand how Struts type
conversion works though. Especially I was not able to find the spot in the
code where Struts returns the "input" result-string on a failed validation
since this is where my problem lies. I want to prevent this from happening,
but have no idea how to achieve it. 
Nobody around who has an idea on how to solve my problem?




-Ursprüngliche Nachricht-
Von: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 11. Juli 2007 19:00
An: Struts Users Mailing List
Betreff: Re: AW: Struts 2 requires input result on failed type conversion

I haven't tried but it seems possibile

http://struts.apache.org/2.0.8/docs/type-conversion.html


Il giorno 11/lug/07, alle ore 18:55, Martin Simons ha scritto:

> Well, the app has grown for quite some time now and consists of a  
> lot of
> actions. Touching all of the them and exchanging all number-setters  
> with
> some kind of string parsing would be a whole lot of work.
> So my favourite solution would be something that easily achieved by  
> struts
> default functionality. After all, this problem doesn't seem too  
> exotic :)
>
>
> -Ursprüngliche Nachricht-
> Von: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 11. Juli 2007 18:47
> An: Struts Users Mailing List
> Betreff: Re: Struts 2 requires input result on failed type conversion
>
> it's not what you want but why don't use String getter/setter on the
> action and do the conversion later ?
>
> Il giorno 11/lug/07, alle ore 18:37, Martin Simons ha scritto:
>
>> Hi everybody, this is my first mailing list :-)
>>
>> I'm currently developing a web-app based on Struts 2. My visitors
>> are mainly
>> German and whenever they enter numbers, they usually type a decimal
>> number
>> like 1,23 instead of 1.23. If the setter of the action requires a
>> double,
>> type conversion will fail and ask for an "input" result. For historic
>> reasons this doesn't exist in my application. Input errors are  
>> handled
>> separately and if type conversion fails, null or 0 is expected. How
>> can I
>> get Struts to use this behaviour, or even better, cast a comma-
>> separated
>> decimal to a double correctly.
>>
>> Thanks for your help,
>> Martin
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> --
> Ing. Andrea Vettori
> Consulente per l'Information Technology
>
>
>
> -
> 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]
>

--
Ing. Andrea Vettori
Consulente per l'Information Technology



-
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 http path question

2007-07-26 Thread Scott Trafton
Thanks Phillip, that worked. I knew there was something I was missing.
-Scott

-Original Message-
From: Phillip Grenier [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 4:57 PM
To: Struts Users Mailing List
Subject: RE: Struts http path question

Try setting the namespace on the package of the action or in the call to
the action. I think im new to this

- Phillip 

-Original Message-
From: Scott Trafton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 3:41 PM
To: Struts Users Mailing List
Subject: Struts http path question

Hello,

I am in the process of converting old code over to struts2 with tiles.  
The problem I am having is trying to get the url path correct to work
with some of our other code.

The server is set up to resolve to /account so when I submit to an
action to go to another page is it resolving the url to
/account/page2.action

My question is how can I make this resolve to
/account/address/page2.action  instead of just /account/page2.action  ??

I have to find a way to use existing url directory structures.

Any ideas?

Thanks,
Scott

-
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: A problem using Struts Tiles

2007-07-26 Thread Dave Newton
I don't believe that global-forwards were ever able to
point to tile definitions, but it's been awhile.
Inside the action-mappings a forward can point to a
tile.

d.

--- Antonio Petrelli <[EMAIL PROTECTED]>
wrote:

> 2007/7/26, Paul Benedict <[EMAIL PROTECTED]>:
> >
> > Of course you can forward to a tile. That's the
> point of tiles :-)
> 
> 
> 
> Maybe I have not been clear.
> The following works:
>  />
> but the following does not seem to work:
> 
> 
> Antonio
> 



   

Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

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



Re: A problem using Struts Tiles

2007-07-26 Thread Antonio Petrelli

2007/7/26, Paul Benedict <[EMAIL PROTECTED]>:


Of course you can forward to a tile. That's the point of tiles :-)




Maybe I have not been clear.
The following works:

but the following does not seem to work:


Antonio


Re: A problem using Struts Tiles

2007-07-26 Thread Paul Benedict

Of course you can forward to a tile. That's the point of tiles :-)

Antonio Petrelli wrote:

2007/7/26, brossir <[EMAIL PROTECTED]>:






If I remember well, I think that there is a bug in Struts that 
prevents from

using ActionForward with a Tiles definition as a forward.
I don't know if there is an open issue for this, because the JIRA server
seems to be down :-(
Just to be sure, did you try creating a simple action and forward using a
normal forward?

Antonio



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



Vanishing parameters

2007-07-26 Thread Thom Burnett

I have a struts application with an intermittent problem of losing all it's
parameters from the request.
Is there any known problem, mis-coding, or whatever that would cause that?

The application has a set of jsp pages each with one or more buttons for
submit, cancel, and other actions. The JSPs have unremarkable forms with
some text and textArea inputs, a few 'hidden' types, etc. All of these get
put into the request upon hitting submit and processing the action.  On the
page in question most submits process normally but one out of every 5 (or
fewer) times the submit doesn't happens but the various parameters of the
request don't reach the struts Action.execute().

To add to my puzzlement, this page uses standard (I hope) struts validation.
This has been tested and without the required inputs validation blocks
processing in the way that it should.

When I look at my logs, I read out the parameters as the very first thing in
the execute() method. At that point the parameters are missing for that one
in five (or whatever) intermittent problem.

So it seems that somewhere after validation but before reaching the execute
of my action the parameters are being lost. Another point to make is that my
requests have a session object with contents and a few other attributes.
None of those attributes are being lost - just the parameters.

Any ideas on what could be causing this or suggestions about how to
investigate it?


RE: Access to pages according to profile

2007-07-26 Thread Corro Fuentes, Gerardo
Cheers!!! It's clear now...

-Mensaje original-
De: Aram Mkhitaryan [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 26 de julio de 2007 14:33
Para: Struts Users Mailing List
Asunto: Re: Access to pages according to profile

Struts, especially S2 is action based, not page based.
I mean, your "search" and "delete" are different actions,
or even the same action, but the methods are different,

anyway they should have different mappings that you can configure your
Acegi

for example, action configs may be

/.../some/path/your/page/search
/.../some/path/your/page/delete...

or

/.../some/path/your/page!search...
/.../some/path/your/page!delete...

or even

/.../some/path/your/page?search=true&...
/.../some/path/your/page?delete=true&...

Best,
Aram

Aram Mkhitaryan

52, 25 Lvovyan, Yerevan 375000, Armenia

Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]


Este mensaje  de correo electronico y sus documentos adjuntos estan dirigidos  
EXCLUSIVAMENTE a los destinatarios especificados. La informacion contenida 
puede ser CONFIDENCIAL y/o estar LEGALMENTE PROTEGIDA y no necesariamente 
refleja la opinion de ENDESA. Si usted recibe este mensaje por ERROR, por favor 
comuniqueselo inmediatamente al remitente y  ELIMINELO ya que usted  NO ESTA 
AUTORIZADO al uso, revelacion, distribucion, impresion o copia de toda o alguna 
parte de la informacion contenida. Gracias. 

This e-mail message and any attached files are intended SOLELY for the 
addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY 
PRIVILEGED  information and may not necessarily represent the opinion of 
ENDESA. If you receive this message in ERROR, please immediately notify the 
sender and DELETE it since you ARE NOT AUTHORIZED  to use, disclose, 
distribute, print or copy all or part of the contained information. Thank you

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



Re: Access to pages according to profile

2007-07-26 Thread Aram Mkhitaryan

Struts, especially S2 is action based, not page based.
I mean, your "search" and "delete" are different actions,
or even the same action, but the methods are different,

anyway they should have different mappings that you can configure your Acegi

for example, action configs may be

/.../some/path/your/page/search
/.../some/path/your/page/delete...

or

/.../some/path/your/page!search...
/.../some/path/your/page!delete...

or even

/.../some/path/your/page?search=true&...
/.../some/path/your/page?delete=true&...

Best,
Aram

Aram Mkhitaryan

52, 25 Lvovyan, Yerevan 375000, Armenia

Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]


Re: A problem using Struts Tiles

2007-07-26 Thread Antonio Petrelli

2007/7/26, brossir <[EMAIL PROTECTED]>:






If I remember well, I think that there is a bug in Struts that prevents from
using ActionForward with a Tiles definition as a forward.
I don't know if there is an open issue for this, because the JIRA server
seems to be down :-(
Just to be sure, did you try creating a simple action and forward using a
normal forward?

Antonio


Unable to resolve package.properties

2007-07-26 Thread Indu rekha Meduri, TLS-Chennai

Hi,

 

I am trying Struts2CrudStep1 tutorial sample application. 

I am not able to resolve package. properties file. 

I have placed it in the same location where the action class resides and
tried placing it in all of its root directories. But could not resolve.

Is there any configuration that I need to set to enable struts2 resolve
properties file.

 

Thanks 

 

Regards,

Indu

 



DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

Re: Stop Struts 2 from adding request parameters to all links?

2007-07-26 Thread Dave Newton
--- Anton Pussep <[EMAIL PROTECTED]> wrote:
> When I call a page or action with a request
> parameter (like
> "index.jsp?param=xyz") then Struts seems to
> automatically add it to all
> links on the page. In my case I have a parameter
> that should not be
> added to any links, it should just be set for this
> one page/action call.
> Is there a way to do that?

Yes.

http://struts.apache.org/2.x/docs/strutsproperties.html

Note the "struts.url.includeParams" property.

You can also set this on a tag-by-tag basis; see

http://struts.apache.org/2.x/docs/url.html

and note the "includeParams" attribute.

d.



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

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



RE: Access to pages according to profile

2007-07-26 Thread Corro Fuentes, Gerardo
Thanks, I wonder if there's a way to do Page/Action-Level security
checks with Acegi+Struts.

I mean, maybe a user in one page can do a "search" but not a "delete",
whereas a different profile user could do both.

Thanks again!



-Mensaje original-
De: Aram Mkhitaryan [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 26 de julio de 2007 10:15
Para: Struts Users Mailing List
Asunto: Re: Access to pages according to profile

I use Spring with Struts2 and Acegi Security!

The last one provides great solutions for both URI and Domain Object
security.

Best,
Aram

Aram Mkhitaryan

52, 25 Lvovyan, Yerevan 375000, Armenia

Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]


Este mensaje  de correo electronico y sus documentos adjuntos estan dirigidos  
EXCLUSIVAMENTE a los destinatarios especificados. La informacion contenida 
puede ser CONFIDENCIAL y/o estar LEGALMENTE PROTEGIDA y no necesariamente 
refleja la opinion de ENDESA. Si usted recibe este mensaje por ERROR, por favor 
comuniqueselo inmediatamente al remitente y  ELIMINELO ya que usted  NO ESTA 
AUTORIZADO al uso, revelacion, distribucion, impresion o copia de toda o alguna 
parte de la informacion contenida. Gracias. 

This e-mail message and any attached files are intended SOLELY for the 
addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY 
PRIVILEGED  information and may not necessarily represent the opinion of 
ENDESA. If you receive this message in ERROR, please immediately notify the 
sender and DELETE it since you ARE NOT AUTHORIZED  to use, disclose, 
distribute, print or copy all or part of the contained information. Thank you

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



Stop Struts 2 from adding request parameters to all links?

2007-07-26 Thread Anton Pussep
When I call a page or action with a request parameter (like
"index.jsp?param=xyz") then Struts seems to automatically add it to all
links on the page. In my case I have a parameter that should not be
added to any links, it should just be set for this one page/action call.
Is there a way to do that?

Best,
Anton



signature.asc
Description: OpenPGP digital signature


RE: Struts 2 Spring plug-in

2007-07-26 Thread Deepak Kumar
Hi

Try http://www.roseindia.net/struts/hibernate-spring/

Thanks

-Original Message-
From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 3:19 AM
To: user@struts.apache.org
Subject: Struts 2 Spring plug-in


Hi,

Has anyone got Struts Spring plug-in to work?  I am getting this error
starting the application.  I removed all the beans except the dataSource and
sessionFactory.  Please see attached.  I'd really appreciate any help you
can offer.

Thanks,

Jane

ERROR http-8080-Processor24
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/acr] -
Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'dataSource' while setting bean property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
Caused by:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromF
actoryBean(AbstractBeanFactory.java:1238)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBe
anInstance(AbstractBeanFactory.java:1191)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:211)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv
eReference(BeanDefinitionValueResolver.java:271)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv
eValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:843)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAut
owireCandidates(DefaultListableBeanFactory.java:362)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.autowireByType(AbstractAutowireCapableBeanFactory.java:900)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:815)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:281)
at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:352)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
ntextLoader.java:241)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:184)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:49)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java

A problem using Struts Tiles

2007-07-26 Thread brossir
My configurations: 

 struts-config.xml


...

  
  
  
...


  
 
...


tiles-defs.xml


   
   
   
   
 
 
 
   
 


But i got:

javax.servlet.ServletException: Path welcome.page does not start with a "/" 
character

org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


I searched for some helps via Google, and got this forum: 
http://forum.java.sun.com/thread.jspa?threadID=618218&messageID=3459714
But there are still problems!
My env:
jdk1.5.0_12, struts-1.3.8, 

anyone help me, thanks!


Re: Struts 2 Spring plug-in

2007-07-26 Thread David Binder

can you post your spring filter and listener configuration (web.xml) as well
as the application context corresponding to those guilty beans :) ?

David

2007/7/25, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]>:


Hi,

Has anyone got Struts Spring plug-in to work?  I am getting this error
starting the application.  I removed all the beans except the dataSource and
sessionFactory.  Please see attached.  I'd really appreciate any help you
can offer.

Thanks,

Jane

ERROR http-8080-Processor24 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/acr]
- Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'dataSource' while setting bean property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
Caused by:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFactoryBean
(AbstractBeanFactory.java:1238)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance
(AbstractBeanFactory.java:1191)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:211)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:271)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1047)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:843)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
AbstractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates
(DefaultListableBeanFactory.java:362)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType
(AbstractAutowireCapableBeanFactory.java:900)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:815)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
AbstractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:281)
at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:352)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(
ContextLoader.java:241)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:184)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:760)
at org.apache.catalin

Re: Access to pages according to profile

2007-07-26 Thread Aram Mkhitaryan

I use Spring with Struts2 and Acegi Security!

The last one provides great solutions for both URI and Domain Object
security.

Best,
Aram

Aram Mkhitaryan

52, 25 Lvovyan, Yerevan 375000, Armenia

Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]


Access to pages according to profile

2007-07-26 Thread Corro Fuentes, Gerardo
Hi,

 

I'm building a web application that has hundreds of pages and many users
classified in different profiles. These profiles have different
permission access to pages and resources, my question is; Is there a
utility in Struts that might be helpfull in creating this kind of
functionality.

 

I'm aware that the "security-constraint" of "web-resource-collection" of
the deployment descriptor can do that, however I wonder if Struts has
something that could help to implement a freindlier control.

 

Thanks a lot!

 

 

 



Este mensaje  de correo electronico y sus documentos adjuntos estan dirigidos  
EXCLUSIVAMENTE a los destinatarios especificados. La informacion contenida 
puede ser CONFIDENCIAL y/o estar LEGALMENTE PROTEGIDA y no necesariamente 
refleja la opinion de ENDESA. Si usted recibe este mensaje por ERROR, por favor 
comuniqueselo inmediatamente al remitente y  ELIMINELO ya que usted  NO ESTA 
AUTORIZADO al uso, revelacion, distribucion, impresion o copia de toda o alguna 
parte de la informacion contenida. Gracias. 

This e-mail message and any attached files are intended SOLELY for the 
addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY 
PRIVILEGED  information and may not necessarily represent the opinion of 
ENDESA. If you receive this message in ERROR, please immediately notify the 
sender and DELETE it since you ARE NOT AUTHORIZED  to use, disclose, 
distribute, print or copy all or part of the contained information. Thank you