Re: about sitemesh in struts 2.0.11

2008-02-21 Thread hardik_982

my page code in login.jsp
is

error at line 61 dojo is undefined
--


http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">



  
   

// Dojo configuration
djConfig = {
baseRelativePath: "/FrameWork/struts/dojo",
isDebug: true,
bindEncoding: "UTF-8",
debugAtAllCosts: true // not needed, but allows the Venkman debugger
to work with the includes
};








framework
  




















   






  dojo.require("dojo.widget.TabContainer");
  dojo.require("dojo.widget.LinkPane");
  dojo.require("dojo.widget.ContentPane");





 




Username
:





Pasword
:



















  


  








All 
Content © Copyright 2008 S.M.GROUP













please kindly help me
-- 
View this message in context: 
http://www.nabble.com/about-sitemesh-in-struts-2.0.11-tp15605222p15606446.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] IE does not refresh page

2008-02-21 Thread carmi_cd

hi i really think it has something to do with the showloadingText in IE. 
because when the form is save by clicking the submit button with
showLoadingText="false"
it is saved but the list was not refresh. And if I save the form by clicking
the submit button 
with showLoadingText="true" the value is from form is null but the list is
refresh with that 
particular record having null values. also If I click a link that loads the
list it does refresh because that 
link has showLoadingText set to true.

   Do you have idea how can i solve this? I think Struts are not working
fine in IE.. please 
help me. Thanks again.


Jeromy Evans - Blue Sky Minds wrote:
> 
> Hmm...this is a guess, but there's a relevant issue in IE's innerHTML 
> implementation.  Dojo uses this to insert the response into the page.  
> This particular issue is that tables must be xhtml-compliant. 
> Specifically, they must contain all the required tags including  
> and .  Try adding those tags to your response.  IE definitely 
> does not permit you to insert (most) invalid HTML into the page.
> 
> If not successful, IE is hopeless at debugging this, so simplify the 
> pages (the one making the request and the result) to isolate the cause.
> 
> Good luck!
> 
> PS.
> All your calls like this:
> 
> 
> 
> can be replaced with this:
> 
> 
> 
> as it's a javabean-compliant property name (what have works too but is 
> not the convention)
> 
> carmi_cd wrote:
>> hi, yes my submit reached my action because the record is saved/updated
>> in
>> the database.
>> yes the list is the response from the action. 
>>
>> the list is refreshing in Firefox but not in IE..here is part of list.jsp
>>
>> 
>>  
>> 
>> > fieldValue="%{getUserId()}%{nextCell.label}" 
>> theme="simple" />
>> 
>> 
>> > value="UserMgt_input.action?userid=%{getUserId()}&task=edit"/>
>> >  href="%{list}" 
>>  targets="module"
>>  errorText="Unable to load
>> list.">
>> > value="getLastName()"/>
>> ,  > value="getMiddleName()"/>
>> 
>> 
>> 
>> 
>> 
>> 
>> > value="getModules()">
>> > value="getModuleName()"/> ,
>> 
>> 
>> 
>> 
>>
>> i'm using Struts 2.0.5. The theme being use is ajax. I hope I've given
>> you
>> enough information, 
>> if not, dont hesitate to ask, i'm really new in Struts, I need help.
>> Thanks
>> again.
>>
>>
>> Jeromy Evans - Blue Sky Minds wrote:
>>   
>>>
>>> Setting showLoadingText="false" itself shouldn't affect this.
>>>
>>> Is the submit reaching your action?
>>> Is the list that's refreshed the response from the action? Or is the 
>>> refresh via a topic? Or refresh by some other means?
>>> Does your response contain any inline javascript? Or dojo widgets/ajax
>>> tags?
>>>
>>> The only other thing that frequently doesn't work is including inline 
>>> javascript in the responses and expecting theme to execute at a 
>>> particular time.
>>> Which version of struts are you using btw?
>>>
>>> regards,
>>>  Jeromy Evans
>>>
>>> -
>>> 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/-S2--IE-does-not-refresh-page-tp15560342p15606733.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: about sitemesh in struts 2.0.11

2008-02-21 Thread hardik_982

i have solved it 
it is because 
in web.xml i had wrote

 
struts2
*.do


inspite of


struts2
/*





-- 
View this message in context: 
http://www.nabble.com/about-sitemesh-in-struts-2.0.11-tp15605222p15606739.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: struts2 design question

2008-02-21 Thread Maxx
On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
>  Just thought I'd mention that Dave followed this up for you in struts-dev:
>  http://www.nabble.com/StrutsStatics...-td15595866.html

Just to let you know this link does not work (seems incomplete).

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



Re: Tabbed panel problem

2008-02-21 Thread Paranoid_Fabio

Thank you for the reply.

But I can't understand how I could set this div as target of the form if the
form is in other JSP, shown as result of the invoking of an action from
inside the tab. ??



Paranoid_Fabio wrote:
> 
> Hello. I try to explain the problem as cleary as possible:
> I want to manage a jsp with two views: mainPage.jsp is a jsp with a tabbed
> panel. In the tabbed panel I've two tabs. In each tab calls an action and
> shows the resulting jsp correctly. Here's the code of mainPage.jsp tabbed
> panel:
> 
> 
>   
>key="ContentUploadMain.Option.1"
> theme="ajax" href="%{mu}">
>   
>   
>key="ContentUploadMain.Option.2"
> theme="ajax">
>   
>   
>   
> 
> where the second tab is not implemented. The first tab shows the jsp
> resulting from the call to the action "showManual", the jsp is
> "ManualContentUpload.jsp"
> When I post the form in this page, I get the ManualContentUpload action
> invoked:
> 
>   class="actions.contents.upload.ManualUpload">
> /pages/UploadSuccess.jsp
> /pages/ManualContentUpload.jsp
> /pages/ManualContentUpload.jsp
>  type="redirect">/pages/UploadDenied.jsp   
>  
> 
> What I want is that all the resulting jsp's still be shown in the tab of
> the panel. How I can do this? 
> 
> Thank you for help!
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tabbed-panel-problem-tp15547053p15606843.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Tabbed panel problem

2008-02-21 Thread Jeromy Evans
You're dealing with Ajax here, so you have to think about it from the 
client-side.


There is only one Document (or DOM), irrespective of where the parts 
have come from.
Dojo requests the JSP that's going to be placed inside the tad and 
explicitly inserts it into the page.  This means the JSP can rightly 
refer to elements that will contain it.

So even though the page is created from two JSP's, there's only one DOM.

Does that help?

Take a look at the examples on the struts 2 showcase. 
http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/


Paranoid_Fabio wrote:

Thank you for the reply.

But I can't understand how I could set this div as target of the form if the
form is in other JSP, shown as result of the invoking of an action from
inside the tab. ??



Paranoid_Fabio wrote:
  

Hello. I try to explain the problem as cleary as possible:
I want to manage a jsp with two views: mainPage.jsp is a jsp with a tabbed
panel. In the tabbed panel I've two tabs. In each tab calls an action and
shows the resulting jsp correctly. Here's the code of mainPage.jsp tabbed
panel:











where the second tab is not implemented. The first tab shows the jsp
resulting from the call to the action "showManual", the jsp is
"ManualContentUpload.jsp"
When I post the form in this page, I get the ManualContentUpload action
invoked:

 
/pages/UploadSuccess.jsp
/pages/ManualContentUpload.jsp
/pages/ManualContentUpload.jsp
type="redirect">/pages/UploadDenied.jsp   
 


What I want is that all the resulting jsp's still be shown in the tab of
the panel. How I can do this? 


Thank you for help!









  


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



Re: Struts2 connection pooling using MySQL

2008-02-21 Thread RajiR

Hi,

As struts2 comes along with spring integration with
struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable
to load that jar and getting an exception as:

SEVERE: Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/E:/Struts2WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SampleStruts2/WEB-INF/lib/struts2-spring-plugin-2.0.11.jar!/struts-plugin.xml:30:132
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:79)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3540)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4110)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:139)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:180)
... 24 more


What is the reason for this?I have checked whether I have loaded same jar
double times,but tht's not tht problem?what might b the reason?Does any body
came across this one?

Also,the link:
http://www.roseindia.net/struts/hibernate-spring/integrate.shtml helps in
integrating struts1+hibernate+springs.But, since I would like to work with
struts2+Hibernate+Spring,what modifications I have to do to satisfy my
requirement?Since ation forms concept is not there in struts2...!!!

Thanks.



RajiR wrote:
> 
> Ok,,thx for the repliesi'll try using JNDI and with spring
> integration.I have worked using struts2+hibernate,it works fine..
> 
> Laurie Harper wrote:
>> 
>> Struts1 provided a data-source configuration e

Re: about sitemesh in struts 2.0.11

2008-02-21 Thread Jeromy Evans

hardik_982 wrote:
i have solved it 
it is because 
in web.xml i had wrote


 
struts2
*.do


inspite of


struts2
/*


  

Ah, that would do it.

Since you asked, FireBug is an extension for the FireFox browser.  
https://addons.mozilla.org/en-US/firefox/addon/1843
The Web Developer plugin is also extremely useful: 
https://addons.mozilla.org/en-US/firefox/addon/60


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



Re: [S2] IE does not refresh page

2008-02-21 Thread Jeromy Evans

Try not overwriting your form with the target to see if it works.
Also, try using the formId attribute of the submit buttons.
And finally, simplify the html as much as possible and work upwards from 
there.


carmi_cd wrote:
hi i really think it has something to do with the showloadingText in IE. 
because when the form is save by clicking the submit button with

showLoadingText="false"
it is saved but the list was not refresh. And if I save the form by clicking
the submit button 
with showLoadingText="true" the value is from form is null but the list is
refresh with that 
particular record having null values. also If I click a link that loads the
list it does refresh because that 
link has showLoadingText set to true.


   Do you have idea how can i solve this? I think Struts are not working
fine in IE.. please 
help me. Thanks again.



Jeromy Evans - Blue Sky Minds wrote:
  
Hmm...this is a guess, but there's a relevant issue in IE's innerHTML 
implementation.  Dojo uses this to insert the response into the page.  
This particular issue is that tables must be xhtml-compliant. 
Specifically, they must contain all the required tags including  
and .  Try adding those tags to your response.  IE definitely 
does not permit you to insert (most) invalid HTML into the page.


If not successful, IE is hopeless at debugging this, so simplify the 
pages (the one making the request and the result) to isolate the cause.


Good luck!

PS.
All your calls like this:



can be replaced with this:



as it's a javabean-compliant property name (what have works too but is 
not the convention)


carmi_cd wrote:


hi, yes my submit reached my action because the record is saved/updated
in
the database.
yes the list is the response from the action. 


the list is refreshing in Firefox but not in IE..here is part of list.jsp


 


fieldValue="%{getUserId()}%{nextCell.label}" 
theme="simple" />




 href="%{list}" 
 targets="module"

 errorText="Unable to load
list.">

,  







value="getModuleName()"/> ,







i'm using Struts 2.0.5. The theme being use is ajax. I hope I've given
you
enough information, 
if not, dont hesitate to ask, i'm really new in Struts, I need help.

Thanks
again.


Jeromy Evans - Blue Sky Minds wrote:
  
  

Setting showLoadingText="false" itself shouldn't affect this.

Is the submit reaching your action?
Is the list that's refreshed the response from the action? Or is the 
refresh via a topic? Or refresh by some other means?

Does your response contain any inline javascript? Or dojo widgets/ajax
tags?

The only other thing that frequently doesn't work is including inline 
javascript in the responses and expecting theme to execute at a 
particular time.

Which version of struts are you using btw?

regards,
 Jeromy Evans

-
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: struts2 design question

2008-02-21 Thread Jeromy Evans

Maxx wrote:

On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
  

 Just thought I'd mention that Dave followed this up for you in struts-dev:
 http://www.nabble.com/StrutsStatics...-td15595866.html



Just to let you know this link does not work (seems incomplete).
  


Works for me in FF and IE6 and from Thunderbird!  




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



Re: Struts2 connection pooling using MySQL

2008-02-21 Thread Dave Newton
--- RajiR <[EMAIL PROTECTED]> wrote:
> As struts2 comes along with spring integration with
> struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its
> unable to load that jar and getting an exception as:

Looks more like you don't have Spring itself on your classpath:

> Caused by: java.lang.NoClassDefFoundError:
> org/springframework/context/ApplicationContextAware

Did you download Spring and include the appropriate jar(s) in your app?

Dave



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



Re: struts2 design question

2008-02-21 Thread Dave Newton
--- Jeromy Evans <[EMAIL PROTECTED]> wrote:
> Maxx wrote:
> > On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans
> > <[EMAIL PROTECTED]> wrote:
> >>  http://www.nabble.com/StrutsStatics...-td15595866.html
> > Just to let you know this link does not work (seems incomplete).
> Works for me in FF and IE6 and from Thunderbird!  

And Safari... As odd as it looks, that is the actual URL (mailing list
message subject plus a message ID).

Dave

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



struts2+Spring+Hibernate Integration

2008-02-21 Thread RajiR

Hi,

As struts2 comes along with spring integration with
struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable
to load that jar and getting an exception as:

SEVERE: Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/E:/Struts2WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SampleStruts2/WEB-INF/lib/struts2-spring-plugin-2.0.11.jar!/struts-plugin.xml:30:132
  .
Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware
at java.lang.ClassLoader.defineClass1(Native Method)
  
..com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:180)
... 24 more


What is the reason for this?I have checked whether I have loaded same jar
double times,but tht's not tht problem.what might b the reason?Does any body
came across this one?

Also,the link:
http://www.roseindia.net/struts/hibernate-spring/integrate.shtml helps in
integrating struts1+hibernate+springs.But, since I would like to work with
struts2+Hibernate+Spring,what modifications I have to do to satisfy my
requirement?Since action forms concept is not there in struts2...!!!

Thanks.

-- 
View this message in context: 
http://www.nabble.com/struts2%2BSpring%2BHibernate-Integration-tp15607260p15607260.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: struts2+Spring+Hibernate Integration

2008-02-21 Thread Deepak Kumar
Hi,

Here is and application with example code
http://www.roseindia.net/struts/hibernate-spring/index.shtml

Thanks


-Original Message-
From: RajiR [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 4:04 PM
To: user@struts.apache.org
Subject: struts2+Spring+Hibernate Integration



Hi,

As struts2 comes along with spring integration with
struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable
to load that jar and getting an exception as:

SEVERE: Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/E:/Struts2WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core
/tmp0/wtpwebapps/SampleStruts2/WEB-INF/lib/struts2-spring-plugin-2.0.11.jar!
/struts-plugin.xml:30:132
  .
Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware
at java.lang.ClassLoader.defineClass1(Native Method)

..com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regi
ster(XmlConfigurationProvider.java:180)
... 24 more


What is the reason for this?I have checked whether I have loaded same jar
double times,but tht's not tht problem.what might b the reason?Does any body
came across this one?

Also,the link:
http://www.roseindia.net/struts/hibernate-spring/integrate.shtml helps in
integrating struts1+hibernate+springs.But, since I would like to work with
struts2+Hibernate+Spring,what modifications I have to do to satisfy my
requirement?Since action forms concept is not there in struts2...!!!

Thanks.

--
View this message in context:
http://www.nabble.com/struts2%2BSpring%2BHibernate-Integration-tp15607260p15
607260.html
Sent from the Struts - User mailing list archive at Nabble.com.


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




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



Re: struts2+Spring+Hibernate Integration

2008-02-21 Thread Lukasz Lenart
Hi,

Download Spring 2 libraries and put in your WEB-INF/lib folder


Regards
-- 
Lukasz

http://www.linkedin.com/in/lukaszlenart

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



Re: struts2 design question

2008-02-21 Thread Maxx
Strangely it first freezes my browser. Re-testing it now and it's working.
I also thought the three dots could come from a shortened url, while
it's effectively not.
Apologies.

Maxx

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



Re: How to get method name in interceptor

2008-02-21 Thread stanlick
Tell me more.  One thing I have learned using Struts 2 is if you think it
should be possible, it probably is!  What are you trying?

On Thu, Feb 21, 2008 at 1:29 AM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote:

> Thanks. This approach works, but isn't quite as elegant as I was hoping.
>
> On Wed, Feb 20, 2008 at 2:47 PM, <[EMAIL PROTECTED]> wrote:
>
> > download the breadcrumb
> > interceptor
> > and look at the intercept method.  You will see what's happening right
> > away.
> >
> >
> >
> > On Wed, Feb 20, 2008 at 5:40 AM, Toni Lyytikäinen <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi,
> > >
> > > I'm trying to access the ActionMapping from an interceptor, like the
> > > following test stub:
> > >
> > > public String intercept(ActionInvocation invocation) throws Exception
> {
> > >ActionMapping am=ServletActionContext.getActionMapping();
> > >log.info("The method is "+am.getMethod());
> > >return invocation.invoke();
> > >}
> > >
> > > According to the javadocs am.getMethod() should return a String (the
> > > method), but for some reason am.getMethod() always returns null. The
> > > am.getName() and am.getNamespace() methods seem to work correctly
> > however.
> > > Is there a way (that works) to extract the name of the method that is
> > > going
> > > to be executed?
> > >
> >
> >
> >
> > --
> > Scott
> > [EMAIL PROTECTED]
> >
>



-- 
Scott
[EMAIL PROTECTED]


Re: How to get method name in interceptor

2008-02-21 Thread Toni Lyytikäinen
I'm trying to write an interceptor that makes redirecting decisions based on
an annotation on the method on that is going to be executed. Like this:


public class MyAction extends ActionSupport {
...
   @SomeAnnotation(value="value")
   public String list() {
   ...
   return SUCCESS;
   }
}

public class MyInterceptor extends AbstractInterceptor {
...
   public String intercept(ActionInvocation invocation) throws Exception {
   // check if there is an annotation on the method that is going to be
executed
   // redirect based on that:
  if (something) invocation.invoke()
  else return "someresult";
   }
}

For this reason it would be nice to get the method, or at least the name of
the method, so that the interceptor could do method.getAnnotation(
SomeAnnotation.class).

On Thu, Feb 21, 2008 at 2:59 PM, <[EMAIL PROTECTED]> wrote:

> Tell me more.  One thing I have learned using Struts 2 is if you think it
> should be possible, it probably is!  What are you trying?
>
> On Thu, Feb 21, 2008 at 1:29 AM, Toni Lyytikäinen <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks. This approach works, but isn't quite as elegant as I was hoping.
> >
> > On Wed, Feb 20, 2008 at 2:47 PM, <[EMAIL PROTECTED]> wrote:
> >
> > > download the breadcrumb
> > > interceptor
> > > and look at the intercept method.  You will see what's happening right
> > > away.
> > >
> > >
> > >
> > > On Wed, Feb 20, 2008 at 5:40 AM, Toni Lyytikäinen <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm trying to access the ActionMapping from an interceptor, like the
> > > > following test stub:
> > > >
> > > > public String intercept(ActionInvocation invocation) throws
> Exception
> > {
> > > >ActionMapping am=ServletActionContext.getActionMapping();
> > > >log.info("The method is "+am.getMethod());
> > > >return invocation.invoke();
> > > >}
> > > >
> > > > According to the javadocs am.getMethod() should return a String (the
> > > > method), but for some reason am.getMethod() always returns null. The
> > > > am.getName() and am.getNamespace() methods seem to work correctly
> > > however.
> > > > Is there a way (that works) to extract the name of the method that
> is
> > > > going
> > > > to be executed?
> > > >
> > >
> > >
> > >
> > > --
> > > Scott
> > > [EMAIL PROTECTED]
> > >
> >
>
>
>
> --
> Scott
> [EMAIL PROTECTED]
>


Re: How to get method name in interceptor

2008-02-21 Thread stanlick
Right on!  Rather than bale out of the interceptor stack, do this:


   ${destination}

and provide a get/set destination in your Action class that determines where
to go next.  It's much cleaner and intuitive than burying controller logic
in the interceptor stack.  Holler if you have questions, as there is more
love where this comes from.

Peace,
Scott


Re: struts2 design question

2008-02-21 Thread eric . jung
I wouldn't have seen that. Thanks, Jeromy. It's disturbing to see this 
kind of code in 2008 and makes me wonder what other antipatterns might 
exist in the struts2 codebase.





Dave Newton wrote:
> --- [EMAIL PROTECTED] wrote:
> 
>> I'm curious why the developers of struts2 chose to define constants in 
an 
>> interface (StrutsStatics) and then implement that interface in at least 
18 
>> classes
>> 
Just thought I'd mention that Dave followed this up for you in struts-dev:
http://www.nabble.com/StrutsStatics...-td15595866.html

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



*** IMPORTANT
NOTE* The opinions expressed in this
message and/or any attachments are those of the author and not
necessarily those of Brown Brothers Harriman & Co., its
subsidiaries and affiliates ("BBH"). There is no guarantee that
this message is either private or confidential, and it may have
been altered by unauthorized sources without your or our knowledge.
Nothing in the message is capable or intended to create any legally
binding obligations on either party and it is not intended to
provide legal advice. BBH accepts no responsibility for loss or
damage from its use, including damage from virus.


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



Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread Musachy Barroso
Usually that means that you are missing:

 

but you have it on the section that you posted. Look at the source of
the page, is a dojo.js file getting referenced?

musachy

On Thu, Feb 21, 2008 at 10:07 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
>  :-(
>
>  debuging with fireBug I get the following message: dojo is not defined
>  --
>  View this message in context: 
> http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15612900.html
>
>
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
"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: reflect.InvocationTargetException

2008-02-21 Thread Rose India (http://www.roseindia.net)
Hi

Check given URL for the solution

http://www.roseindia.net/answers/viewanswers/30.html

Regards
Neelam

-Original Message-
From: Richard Sayre [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 20, 2008 8:21 PM
To: Struts Users Mailing List
Subject: reflect.InvocationTargetException


Hi All,

I am getting the following error in my Struts 2 application.   "class
java.lang.reflect.InvocationTargetException : null"

None of my classes are showing up in the stack trace.  But it is
happening at the same spot in my application.

Has anyone encountered this before?  Any suggestons on how to fix this?

Here is the beginning of the stack trace:

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionIn
vocation.java:404)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActi
onInvocation.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:229)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(D
efaultWorkflowInterceptor.java:221)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:221)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Validati
onInterceptor.java:150)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.do
Intercept(AnnotationValidationInterceptor.java:48)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionI
nvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack
.java:455)

Thank you,

Rich

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



Struts2: Ajax call throws an exception --> catch?

2008-02-21 Thread Otto, Frank
hi,
 
I use ajax (yui) with struts2. 
My method throws an exception, if there is something wrong. How is the best way 
to catch the exception?
 
 
kind regards,
 
Frank


RE: datetimepicker version 2.0.11 issue

2008-02-21 Thread Rose India (http://www.roseindia.net)
Hi

A small change is required to get the desired output.
You can find answer here at
http://www.roseindia.net/answers/viewanswers/29.html with source code.

Good Luck!

Best Regards


-Original Message-
From: akash agrawal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 8:23 AM
To: Struts Users Mailing List
Subject: s:datetimepicker version 2.0.11 issue


Hi,

My code is:


Issue:
1. Time cannot be edited by going straight to the text field and entering
using keyboard. It only allows to pick up the time from the popup. However
popup only gives minutes granularity in 5 minutes interval.

Any workaround? Is there a better mailing list to post this question.

Thanks,

-Akash




-
Never miss a thing.   Make Yahoo your homepage.


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



problem in populating Maps

2008-02-21 Thread ravi_eze

hi,

I am trying to populate a LinkedHashMap located in a DTO from a
 When i turn on the debug mode i seed the following error
on the console:

ERROR (com.opensymphony.xwork2.interceptor.ParametersInterceptor:199) -
Developer Notification (set struts.devMode to false to disable this
message):
Error setting expression 'currentEvent.excludeRulesValues['dd']' with value
'[Ljava.lang.String;@1f09665'
424209 [http-8080-Processor24] ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor  - Developer
Notification (set struts.devMode to false to disable this message):

I am using the following syntax in the jsp:
< td >
Ignore people who have been given >= 
offers previously from EDS< /td > 

The action class is having current defined as a Dto with getters and
setters, and rules is the LinkedHashMap defined in the DTO with getters and
setters. The constructor of the Action class instantiates the 'current'
variable and constructor of Dto instantiates the 'rules' variable of DTO.

and in the textbox generated i entered dd as the input text.

Any ideas why this is not working??? 

regards,
ravi 
-- 
View this message in context: 
http://www.nabble.com/problem-in-populating-Maps-tp15613167p15613167.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread xianwinwin

:-(

debuging with fireBug I get the following message: dojo is not defined
-- 
View this message in context: 
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15612900.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: Struts2 field validation and conversion

2008-02-21 Thread Rose India (http://www.roseindia.net)
Hi

See the solution for RequiredFieldValidator

http://www.roseindia.net/answers/viewanswers/31.html


Best Regards



-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 20, 2008 4:15 AM
To: Struts Users Mailing List
Subject: Re: Struts2 field validation and conversion


Filipe David Manana wrote:
> So my question, is the RequiredFieldValidator is applied after conversion?
> If conversion fails, the RequiredFieldValidator catches a blank value for
> the field?
>
>   
Yes, validation is performed on your action instance, after the 
parameters have all been set, which means after all conversion.  It 
should be seeing a null value.
You could setup the first case by setting the Long value to -1 within 
you converter in the case of a conversion error.

-
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: struts2 design question

2008-02-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> I wouldn't have seen that. Thanks, Jeromy. It's disturbing to see this 
> kind of code in 2008 and makes me wonder what other antipatterns might 
> exist in the struts2 codebase.

Funny; I was thinking the same thing about the static context stuff in JSF
that makes it really difficult to test in isolation. Makes me wonder what
other antipatterns exist in the JSF codebase. If only there was a perfectly
refactored, up-to-date, everything-done-as-it-"should"-be framework.

Dave


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



Re: struts2 getting current page

2008-02-21 Thread ravi_eze

http://www.nabble.com/Struts2%3A-Ajax-call-throws-an-exception---%3E-catch--td15613070.htmlcheck
this: 

Srinivas Surapaneni wrote:
> 
> I want to define a global exception handler where if this exception
> happens,
> it goes to the current page
> 
> Is there any way to get the current page and specify it as the result ?
> 
> Thanks
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2-getting-current-page-tp15519117p15613187.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



[OT] RE: reflect.InvocationTargetException

2008-02-21 Thread Dave Newton
--- "Rose India (http://www.roseindia.net)" <[EMAIL PROTECTED]>
wrote:
> Check given URL for the solution
> 
> http://www.roseindia.net/answers/viewanswers/30.html

That is not a solution.

That is a poor definition of what an InvocationTargetException is, and
completely non-responsive.

Dave


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



Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread Dave Newton
--- ravi_eze <[EMAIL PROTECTED]> wrote:
> if dojo is not defined: then probably the following should help:
> 
> 1. define a folder struts in ur project (under webinf)
> 2. copy ajax, dojo, nifty corners, simple, xhtml, CommonFunctions.js,
> inputtransferselect.js, optiontransferselect.js, tabs.css, tree.css,
> validationClient.js. Search for these in the exploded struts core.jar file.
> 3. start the webapps
> 
> i also had the problem and when i did this it got resolved. HIH

That is a possible solution, but not the ideal one, since it's masking
whatever the underlying problem is.

What does your filter mapping in web.xml look like?

Dave


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



RE: datetimepicker version 2.0.11 issue

2008-02-21 Thread Dave Newton
--- "Rose India (http://www.roseindia.net)" <[EMAIL PROTECTED]>
wrote:
> A small change is required to get the desired output.
> You can find answer here at
> http://www.roseindia.net/answers/viewanswers/29.html with source code.

This link is to a post with the **opposite** requirement of the question
being asked: the question was how do I **allow** editing via the textfield.
This link answers (or may answer, anyway) the question of how to **only**
allow editing via the popup. That's backwards.

I guess I'd prefer it if, when you attempted to answer questions, you just
posted an answer, rather than constantly trying to drive traffic to your
site.

Dave


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



RE: datetimepicker version 2.0.11 issue

2008-02-21 Thread Deepak Kumar
Hi,

Please note the attribute onchange="false" of  http://www.roseindia.net)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 8:54 PM
To: Struts Users Mailing List
Subject: RE: datetimepicker version 2.0.11 issue


Hi

A small change is required to get the desired output.
You can find answer here at
http://www.roseindia.net/answers/viewanswers/29.html with source code.

Good Luck!

Best Regards


-Original Message-
From: akash agrawal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 8:23 AM
To: Struts Users Mailing List
Subject: s:datetimepicker version 2.0.11 issue


Hi,

My code is:


Issue:
1. Time cannot be edited by going straight to the text field and entering
using keyboard. It only allows to pick up the time from the popup. However
popup only gives minutes granularity in 5 minutes interval.

Any workaround? Is there a better mailing list to post this question.

Thanks,

-Akash




-
Never miss a thing.   Make Yahoo your homepage.


-
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: Struts2: Ajax call throws an exception --> catch?

2008-02-21 Thread ravi_eze

The following captures the stack trace that the server throws:



/path/error.jsp





 
> hi,
>  
> I use ajax (yui) with struts2. 
> My method throws an exception, if there is something wrong. How is the
> best way to catch the exception?
>  
>  
> kind regards,
>  
> Frank
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2%3A-Ajax-call-throws-an-exception---%3E-catch--tp15613070p15613181.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread ravi_eze

hi,

if dojo is not defined: then probably the following should help:

1. define a folder struts in ur project (under webinf)
2. copy ajax, dojo, nifty corners, simple, xhtml, CommonFunctions.js,
inputtransferselect.js, optiontransferselect.js, tabs.css, tree.css,
validationClient.js. Search for these in the exploded struts core.jar file.
3. start the webapps

i also had the problem and when i did this it got resolved. HIH

cheers,
ravi


xianwinwin wrote:
> 
> WHAT am I possibly doing wrong here?
> 
> I want to get this result: (attention on the tabs example)
>  http://www.nabble.com/file/p15600219/good.jpeg 
> 
> 
> but I get this result:
>  http://www.nabble.com/file/p15600219/wrong.bmp 
> 
> 
> the code is:
> 
> <%@ include file="/pages/layouts/taglibs.jsp" %>
> 
> Welcome  value="%{#session.USER_SESSSION_HANDLE.fname}"/>; last login  value="%{#session.security_user_last_logged_in}"/>
> <%@ include file="tabMenu.jsp" %>
> 
>  
> 
> 
> 
> Ajax examples - tabbled panel
> 
> 
> ">
> 
> 
>  
> 
> 
> 
>cssStyle="width: 500px;
> height: 300px;" doLayout="true" closeButton="pane" labelposition="bottom">
>   
>   I'm a Tab!!!
>   
>   
>   I'm the other Tab!!!
>   
>  
>   
> 
>
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15613177.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread Dave Newton
--- xianwinwin <[EMAIL PROTECTED]> wrote:
> * I placed it under WebContent and it worked!

Note that this just masks the actual problem, and you'll now have to do this
every single time you upgrade Struts 2.

Dave


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



Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread xianwinwin

Dear Ravi 

YOU ARE THE MAN!!!

Thank you so much!

* I placed it under WebContent and it worked!
-- 
View this message in context: 
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15613516.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: reflect.InvocationTargetException

2008-02-21 Thread Allen, Daniel
I've seen similar things working with other programs than Struts, but it
might be relevant to you. Reflection frameworks tend to give back null
rather than an exception when the method in question isn't found, so go
back and check for typos in your XML where you specify any method names.

Can't say with any more certainty than that without seeing code
(although I'm sort of new at Struts, so I might not be able to say with
any more certainty regardless :)

~Dan Allen

-Original Message-
From: Richard Sayre [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 20, 2008 9:51 AM
To: Struts Users Mailing List
Subject: reflect.InvocationTargetException

Hi All,

I am getting the following error in my Struts 2 application.   "class
java.lang.reflect.InvocationTargetException : null"

None of my classes are showing up in the stack trace.  But it is
happening at the same spot in my application.

Has anyone encountered this before?  Any suggestons on how to fix this?

Here is the beginning of the stack trace:

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActi
onInvocation.java:404)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(Default
ActionInvocation.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:229)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterce
pt(DefaultWorkflowInterceptor.java:221)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo
cation.java:221)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Vali
dationInterceptor.java:150)
org.apache.struts2.interceptor.validation.AnnotationValidationIntercepto
r.doIntercept(AnnotationValidationInterceptor.java:48)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me
thodFilterInterceptor.java:86)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:224)
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct
ionInvocation.java:223)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS
tack.java:455)

Thank you,

Rich

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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided "as is", 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Re: struts2 design question

2008-02-21 Thread Musachy Barroso
I am confused here. You do know that you don't need to
extend/implement any class/interface right? Or I am missing the whole
point.

musachy

On Thu, Feb 21, 2008 at 11:39 AM,  <[EMAIL PROTECTED]> wrote:
> >Funny; I was thinking the same thing about the static context stuff in
>  JSF
>  >that makes it really difficult to test in isolation.
>
>  What makes you think that's difficult? I'm sure you're aware of mock
>  objects. There are a number of mock JSF test frameworks---JMock and Shale
>  come to mind. Writing actions and beans that extend or inherit MVC
>  classes/interfaces are worse than "static context stuff" because:
>
>  1. Java doesn't have multiple inheritance so if you want to make your own
>  base classes, you're forced to create an inheritance chain tied to the MVC
>  framework
>
>  2. Swapping out frameworks is next to impossible.
>
>  3. Classes can't stand on their own.
>
>  4. It's easier for Java beginners to mix business logic with MVC framework
>  code.
>
>  We've been down this road before with struts1. Spring-MVC brought us the
>  next generation of thinking by making all framework dependencies
>  interfaces (implementations are provided but not required, like struts2).
>  JSF takes this idea to its logical conclusion.
>
>  If your action and bean methods only refer to a framework context (which,
>  by the way, *is* injectable with Seam or with your own VariableResolver,
>  contrary to your statement in a previous post. For example,
>  http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977385), you can
>  write them to support multiple frameworks simultaneously. In practice, no
>  one does this, but it demonstrates the flexibility of the JSF approach. I
>  can, for example, write an action class that works with both Struts2 and
>  JSF:
>
>  public class CreateCustomerAction extends ActionSupport /* ActionSupport
>  req'd by struts2 */ {
>   ...
>   ...
>
>   /** Stuts2 action */
>   public String execute() throws Exception {
>   if (!customerDAO.create(...))
> addActionError("Unable to create customer");
>   return INPUT;
>   }
>
>   /** JSF action */
>   public String createCustomer() {
> if (!customerDAO.create(...))
>   FacesContext.getCurrentInstance().addMessage("someId", "Unable to
>  create customer");
> return "input";
>   }
>  }
>
>  If JSF required the extension of a framework class or implementation of a
>  framework interface like struts2 does, the code above couldn't be written
>  without a mixin/delegation (esp. if the interfaces shared the same method
>  names like execute()). I hope you can see how JSF has a lighter footprint
>  than struts2.
>
>
>
>
>  *** IMPORTANT
>  NOTE* The opinions expressed in this
>  message and/or any attachments are those of the author and not
>  necessarily those of Brown Brothers Harriman & Co., its
>  subsidiaries and affiliates ("BBH"). There is no guarantee that
>  this message is either private or confidential, and it may have
>  been altered by unauthorized sources without your or our knowledge.
>  Nothing in the message is capable or intended to create any legally
>  binding obligations on either party and it is not intended to
>  provide legal advice. BBH accepts no responsibility for loss or
>  damage from its use, including damage from virus.
>  
>
>  -
>
>
> 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]



Re: example?

2008-02-21 Thread Enrico Drusiani

Hi All

i'm new to struts2 so sorry for the silly question but i just don't 
understand how could you retrieve a parameter passed with  to 
the included page, then. meanwhile i still use the old jsp solution, but 
i'd prefer to learn how to do it the correct struts way


thanks for any hint on that topic.

Enrico

Ashish Jain ha scritto:

So, can we access supplied params somehow?
(I can't use <%= request.getParameters(...))%> inside 


If no, then why it accepts params? wht for?

Secondly,
i can use  with params.
but again, it's visible as request.getParameter.. but not on valuestack.



On Jan 27, 2008 11:45 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
  

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

Note, specifically, the part that says "Note: Any additional params supplied
to the included page are not accessible within the rendered page through the
 tag!"

d.


--- Ashish Jain <[EMAIL PROTECTED]> wrote:



I am new to struts2
I am struggling to include jsp in a jsp.
I am passing an param to included jsp and I want to access that param
in included jsp.

I tried different combinations.. none is seem to be working.

Only thing, working is <%= request.getParameter("configKey")%>
But how to use this param in struts tags?


here is my code
in main jsp


  



included jsp
=
<%@ include file="/tagDefinitions.jsp" %>

 
 



--
Thanks
Ashish

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



[OT] Re: struts2 design question

2008-02-21 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> 3. Classes can't stand on their own.

Neither can a class that's using a static method.

> 4. It's easier for Java beginners to mix business logic with 
> MVC framework code.

Easier? Like... typing is actually easier with S2?

Never mind, I don't get that one, and this isn't the forum to discuss it.

> If your action and bean methods only refer to a framework context (which, 
> by the way, *is* injectable with Seam

Another dependency.

>  or with your own VariableResolver, 

Isn't that a JEE dependency?

> I hope you can see how JSF has a lighter footprint 
> than struts2.

I hope you can understand that reasonable people can disagree.

Dave


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



Struts 2: datetimepicker not appearing in IBM WAS v6.1.0.2 running on Solaris 10

2008-02-21 Thread Cheng Wei Lee
The same EAR run fine on IBM WAS v6.1.0.13 on Windows machine, i.e., the
datetimepicker could appear and be used, but in the Solaris 10 and WAS
v6.1.0.2 environment, it was not showing up. Does anyone have similar
experiences? Could it be due to the operating system or a bug in the lower
version of WAS? I'm suspecting that it could be due to a bug, but can't
confirm it until the system administrator patches it.


Re: struts2 design question

2008-02-21 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> I am confused here. You do know that you don't need to
> extend/implement any class/interface right? Or I am missing the whole
> point.

The original issue was regarding error messages and how they're stored in the
action rather than in a thread/instance variable referenced through a static
class.

Dave


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



Re: struts2 design question

2008-02-21 Thread eric . jung
>Funny; I was thinking the same thing about the static context stuff in 
JSF
>that makes it really difficult to test in isolation.

What makes you think that's difficult? I'm sure you're aware of mock 
objects. There are a number of mock JSF test frameworks---JMock and Shale 
come to mind. Writing actions and beans that extend or inherit MVC 
classes/interfaces are worse than "static context stuff" because:

1. Java doesn't have multiple inheritance so if you want to make your own 
base classes, you're forced to create an inheritance chain tied to the MVC 
framework

2. Swapping out frameworks is next to impossible.

3. Classes can't stand on their own.

4. It's easier for Java beginners to mix business logic with MVC framework 
code.

We've been down this road before with struts1. Spring-MVC brought us the 
next generation of thinking by making all framework dependencies 
interfaces (implementations are provided but not required, like struts2). 
JSF takes this idea to its logical conclusion.

If your action and bean methods only refer to a framework context (which, 
by the way, *is* injectable with Seam or with your own VariableResolver, 
contrary to your statement in a previous post. For example, 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977385), you can 
write them to support multiple frameworks simultaneously. In practice, no 
one does this, but it demonstrates the flexibility of the JSF approach. I 
can, for example, write an action class that works with both Struts2 and 
JSF:

public class CreateCustomerAction extends ActionSupport /* ActionSupport 
req'd by struts2 */ {
  ...
  ...

  /** Stuts2 action */
  public String execute() throws Exception {
  if (!customerDAO.create(...))
addActionError("Unable to create customer");
  return INPUT;
  }

  /** JSF action */
  public String createCustomer() {
if (!customerDAO.create(...))
  FacesContext.getCurrentInstance().addMessage("someId", "Unable to 
create customer");
return "input";
  }
}

If JSF required the extension of a framework class or implementation of a 
framework interface like struts2 does, the code above couldn't be written 
without a mixin/delegation (esp. if the interfaces shared the same method 
names like execute()). I hope you can see how JSF has a lighter footprint 
than struts2.



*** IMPORTANT
NOTE* The opinions expressed in this
message and/or any attachments are those of the author and not
necessarily those of Brown Brothers Harriman & Co., its
subsidiaries and affiliates ("BBH"). There is no guarantee that
this message is either private or confidential, and it may have
been altered by unauthorized sources without your or our knowledge.
Nothing in the message is capable or intended to create any legally
binding obligations on either party and it is not intended to
provide legal advice. BBH accepts no responsibility for loss or
damage from its use, including damage from virus.


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



Re: datetimepicker version 2.0.11 issue

2008-02-21 Thread Giovanni Azua

hi,

Indeed, as Dave pointed out that answer is confusing. I had the same 
issue as the OP and have not been able to find a working solution, at 
least not for S 2.1.x
Unfortunately not even the opposite settings of what is suggested works 
in S 2.1.x for entering free time without this 5 minute granularity 
constraint.


There is an open JIRA ticket describing precisely this problem:
https://issues.apache.org/struts/browse/WW-2353

regards,
Giovanni

Dave Newton wrote:

--- "Rose India (http://www.roseindia.net)" <[EMAIL PROTECTED]>
wrote:
  

A small change is required to get the desired output.
You can find answer here at
http://www.roseindia.net/answers/viewanswers/29.html with source code.



This link is to a post with the **opposite** requirement of the question
being asked: the question was how do I **allow** editing via the textfield.
This link answers (or may answer, anyway) the question of how to **only**
allow editing via the popup. That's backwards.

I guess I'd prefer it if, when you attempted to answer questions, you just
posted an answer, rather than constantly trying to drive traffic to your
site.

Dave


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



dependant updated with ajax : how?

2008-02-21 Thread thogau

Hi,

I know this has been asked several times on this list but I couldn't find
what I need...

I am trying to do something that seems very basic to me, at least it was
with struts 1.x and DWR. 
Since struts 2 is shipped with dojo, I would like to use this framework only
(no DWR, nor JWP, ...). doubleselect is not an option for me since I
actually need 3 dependant select tags.

How can I have 2 select tags where the content of the second one depends on
the selected option in the first one. Of course I would like to do it ajax
flavoured (no page reload).

Has anybody an example of this running smoothly and willing to share?
Any pointer would be warmly welcome cause I didn't expect to get into
troubles implementing such a basic ajax behaviour...

Thanks.


-- 
View this message in context: 
http://www.nabble.com/dependant-%3Cs%3Aselect%3E-updated-with-ajax-%3A-how--tp15616529p15616529.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



[OT] Re: [eclipse] is it possible to debug jsp in eclipse ?

2008-02-21 Thread Dave Newton
--- temp temp <[EMAIL PROTECTED]> wrote:
>  Is there any free jsp debugger plugin for eclipse  ?

AFAIK it has that ability out-of-the-box with the web tools stuff [1].

This should be asked on an Eclipse-oriented list or forum, though.

Dave

[1] http://www.eclipse.org/webtools/



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



[eclipse] is it possible to debug jsp in eclipse ?

2008-02-21 Thread temp temp
 Is there any free jsp debugger plugin for eclipse  ?
miro

   
-
Never miss a thing.   Make Yahoo your homepage.

Struts 2.1?

2008-02-21 Thread Maria Lujan Salvadori
Hello, is it available the new version 2.1? Where can I download it? We want
to migrate our project from 2.0.11 to 2.1 but we cannot find it

Thanks in advance

ML


Re: session tracking in struts

2008-02-21 Thread Antonio Petrelli
2008/2/21, Andy Hahn <[EMAIL PROTECTED]>:
> I haven't seen many Struts1 questions since I have joined so hopefully this 
> is the right place to be asking.

Yes it is :-)

>  I am using Struts/Tomcat5.5 and I am using the pattern for session 
> management where I have a BaseAction class with executeAction().  I can't 
> remember the pattern name but hopefully you know what I'm referring to.

Err... I don't know it :-(

>  So this works great when cookies are enabled on a browser but when I disable 
> cookies the session is no longer kept around.
>
>  Maybe this is a struts setting or maybe a tomcat setting.  From all I have 
> read, it sounds like url rewriting should automatically happen but it isn't.  
> Any ideas?

Just a shot in the dark: do you use *always"  and
 tags? If not, URL rewriting won't happen.

Antonio

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



Re: Struts 2.1?

2008-02-21 Thread Dave Newton
--- Maria Lujan Salvadori <[EMAIL PROTECTED]> wrote:
> Hello, is it available the new version 2.1? Where can I download it? We
> want to migrate our project from 2.0.11 to 2.1 but we cannot find it

2.1 has not been released as a "general availability" (GA) release.

It may be built from source [1].

Dave

[1] http://struts.apache.org/2.x/docs/building-the-framework-from-source.html



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



[S1] Global Exception from Module can't find resource

2008-02-21 Thread Givler, Eric
Greetings

I have an application split into three modules.  When an application
error occurs, I have a global exception defined in the root
configuration, as well as in each module.  

When the module hits the error, the global exception's entry in the
module is:



The root module's exception handler is mapped as follows and the
corresponding action:



   


The problem is that when it goes there when an error occurs in the
module, the forward still displays the module path, and then the JSP
can't find the stylesheet referenced in the link tag.  The link tag
looks like this in files within the module:



In the AppOffline.jsp the link tag is as follows, since the css is off
the context root, but the Address bar shows we're not there (we still
have the module prefix):



What needs to be done to fix this?  

It seems like it should either be:
A) Somehow get the exception to redirect to the AppOffline. How?
B) change the link tag so it always reads from the Context Root.

I've had similar problems with going from the root module to another
module in that the URL has not changed (due to a forward) and the css
file cannot be found since it was reading ../css/File.  I wanted the
user to click a button to go from one screen into the application (they
had to agree to a message).  A hyperlink worked fine, but the agreement
was in module1 prior to forwarding to module2.

Anyway, that's enough rambling.  If you can share some ideas/thoughts,
I'd really appreciate it.

Thanks,

Eric

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



session tracking in struts

2008-02-21 Thread Andy Hahn
I haven't seen many Struts1 questions since I have joined so hopefully this is 
the right place to be asking.
 
I am using Struts/Tomcat5.5 and I am using the pattern for session management 
where I have a BaseAction class with executeAction().  I can't remember the 
pattern name but hopefully you know what I'm referring to.  So this works great 
when cookies are enabled on a browser but when I disable cookies the session is 
no longer kept around.
 
Maybe this is a struts setting or maybe a tomcat setting.  From all I have 
read, it sounds like url rewriting should automatically happen but it isn't.  
Any ideas?  Thanks..

 


_
Climb to the top of the charts! Play the word scramble challenge with star 
power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan

Re: [S1] Global Exception from Module can't find resource

2008-02-21 Thread Antonio Petrelli
2008/2/21, Givler, Eric <[EMAIL PROTECTED]>:
>  B) change the link tag so it always reads from the Context Root.

Just a quick help: use  tag, that will transform your relative
path to a server-relative URL:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/url.html

HTH
Antonio

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



RE: session tracking in struts

2008-02-21 Thread Andy
That did the trick.  I was using  everywhere but had some links that 
were not using .  
 
I changed to use link and I can see 
the jsessionid appended when I view source.  Thanks!
 



> Date: Thu, 21 Feb 2008 20:42:56 +0100> From: [EMAIL PROTECTED]> To: 
> user@struts.apache.org> Subject: Re: session tracking in struts> > 2008/2/21, 
> Andy Hahn <[EMAIL PROTECTED]>:> > I haven't seen many Struts1 questions since 
> I have joined so hopefully this is the right place to be asking.> > Yes it is 
> :-)> > > I am using Struts/Tomcat5.5 and I am using the pattern for session 
> management where I have a BaseAction class with executeAction(). I can't 
> remember the pattern name but hopefully you know what I'm referring to.> > 
> Err... I don't know it :-(> > > So this works great when cookies are enabled 
> on a browser but when I disable cookies the session is no longer kept 
> around.> >> > Maybe this is a struts setting or maybe a tomcat setting. From 
> all I have read, it sounds like url rewriting should automatically happen but 
> it isn't. Any ideas?> > Just a shot in the dark: do you use *always" 
>  and>  tags? If not, URL rewriting won't happen.> > 
> Antonio> > 
> -> To 
> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
> [EMAIL PROTECTED]> 
_
Need to know the score, the latest news, or you need your Hotmail®-get your 
"fix".
http://www.msnmobilefix.com/Default.aspx

RE: [S1] Global Exception from Module can't find resource

2008-02-21 Thread Givler, Eric
Wow, it couldn't have been any easier than that.  Thanks!  

All I did was replace that link tag with:

" />

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 21, 2008 2:46 PM
To: Struts Users Mailing List
Subject: Re: [S1] Global Exception from Module can't find resource


2008/2/21, Givler, Eric <[EMAIL PROTECTED]>:
>  B) change the link tag so it always reads from the Context Root.

Just a quick help: use  tag, that will transform your relative
path to a server-relative URL:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/url.html

HTH
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: [OT] Re: [eclipse] is it possible to debug jsp in eclipse ?

2008-02-21 Thread bhaarat Sharma
so does Netbeans but apparently it doesnt work when you create a \'web
project with existing sources\'

Or I just have missed some configuration.

x2 on the forum recommendation.

On 2/21/08, Dave Newton <[EMAIL PROTECTED]> wrote:
--- temp temp <[EMAIL PROTECTED]> wrote:
> >  Is there any free jsp debugger plugin for eclipse  ?
>
> AFAIK it has that ability out-of-the-box with the web tools stuff [1].
>
> This should be asked on an Eclipse-oriented list or forum, though.
>
> Dave
>
> [1] http://www.eclipse.org/webtools/
>
>
>
> -
> 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: example?

2008-02-21 Thread bhaarat Sharma
> Only thing, working is <%= request.getParameter(\"configKey\")%>

you can tru OGNL
#parameters[\'configKey\']


On 1/27/08, Ashish Jain <[EMAIL PROTECTED]> wrote:
I am new to struts2
> I am struggling to include jsp in a jsp.
> I am passing an param to included jsp and I want to access that param
> in included jsp.
>
> I tried different combinations.. none is seem to be working.
>
> Only thing, working is <%= request.getParameter(\"configKey\")%>
> But how to use this param in struts tags?
>
>
> here is my code
> in main jsp
> 
> 
>   
> 
>
>
> included jsp
> =
> <%@ include file=\"/tagDefinitions.jsp\" %>
> 
>  
>  
> 
>
>
> --
> Thanks
> Ashish
>
> -
> 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]



Pagination in Struts2

2008-02-21 Thread Jaarthy

Hi,

How to implement pagination as in Google in Struts2?Any Help would be
appreciated.

Thanks,
Aarthy
-- 
View this message in context: 
http://www.nabble.com/Pagination-in-Struts2-tp15619264p15619264.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Extending interceptor stacks

2008-02-21 Thread Dave Newton
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Is there a way to have one interceptor stack defined in terms of
> another? I created a log-in interceptor to check if a user is logged in
> and redirect him/her to the log-in page if not, and it will be applied
> to almost all pages, but there will be a few (index, etc.) that would
> not need that. However, most other pages use the same basic
> interceptors, just not the log-in one. So, given the below, is there a
> way to change it so that it's two stacks, one missing the log-in, and
> the other only declaring its parent and adding the log-in?
> 
>   
>   
>   
>   
>   
>   
>   
>   

Not if your added-in interceptor is in the middle of a stack, at least AFAIK.

If the added-in interceptor goes at the beginning or end of an existing stack
then just use the stack-being-extended as one of the interceptor-refs.

Dave



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



Extending interceptor stacks

2008-02-21 Thread Allen, Daniel
Is there a way to have one interceptor stack defined in terms of
another? I created a log-in interceptor to check if a user is logged in
and redirect him/her to the log-in page if not, and it will be applied
to almost all pages, but there will be a few (index, etc.) that would
not need that. However, most other pages use the same basic
interceptors, just not the log-in one. So, given the below, is there a
way to change it so that it's two stacks, one missing the log-in, and
the other only declaring its parent and adding the log-in?


  
  
  
  
  
  



I'm guessing it's not, since I didn't see anything that seemed likely in
the struts.xml documentation page,[1] but I thought I'd ask and make
sure, or find out if there's some non-XML way of doing an equivalent.
(Or possibly if there's a reason I shouldn't be doing this in the first
place?)

Thanks,
~Dan Allen

[1]http://struts.apache.org/2.x/docs/strutsxml-examples.html

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided "as is", 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Map based Struts Action Form and multibox Issue

2008-02-21 Thread MoorthyHome.com

I am using map based Struts action form 

Something like below...

public FooForm extends ActionForm {

private final Map values = new HashMap();

public void setValue(String key, Object value) {
values.put(key, value);
}

public Object getValue(String key) {
return values.get(key);
}

}

In Jsp I have something like below

  
 
 


  

Map based Form works well for others except multibox or select with
multiple=true

In setValue, The Object value always String and not String array that is
what I expect for multibox or multiple select

Since this is String, the form is selected with just one selection the first
selection..

Please help

-- 
View this message in context: 
http://www.nabble.com/Map-based-Struts-Action-Form-and-multibox-Issue-tp15623494p15623494.html
Sent from the Struts - User mailing list archive at Nabble.com.


Re: struts2 design question

2008-02-21 Thread Jeromy Evans

[EMAIL PROTECTED] wrote:
I wouldn't have seen that. Thanks, Jeromy. It's disturbing to see this 
kind of code in 2008 and makes me wonder what other antipatterns might 
exist in the struts2 codebase.



  
Actually I only linked to that discussion to show that Dave had been 
courteous enough to follow it up for you.
From a design perspective I think it's a negligible issue that people 
are opinionated about because it's rather easy to understand.


"Put First things First"

Incidentally, the most significant antipattern present in Struts 2 that 
affects me is that of the "Fragile Base Class". 
http://en.wikipedia.org/wiki/Fragile_base_class
It's caused by xwork actually and is evident because Struts 2 is used in 
scenarios that were probably not even conceived when the base classes 
were developed.


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



Struts2 Session Invalidate.

2008-02-21 Thread Sanjeewa Saman
Hi all,

 

Can somebody please tell me how can I invalidate a session in struts2 .

I tried the following ,

 

if (session instanceof org.apache.struts2.dispatcher.SessionMap) {

  try {

((org.apache.struts2.dispatcher.SessionMap)
session).invalidate();

  } catch (IllegalStateException e) {

logger.error(e);

  }

}

 

But still I can go to the pages in my web project and do the operations. Can
somebody please suggest me a solution for this.

 

Thank you very much.

 

sanjeewa



Re: [eclipse] is it possible to debug jsp in eclipse ?

2008-02-21 Thread ravi_eze

yes! its possible... but of very very less use.. 'cos u cannot see the
context variables and the varibles in the expressions... the control just
stops there at the break point.. the best way is to download the eclipse
Europa version: this has all web, javascript etc... componetns already
installed.

if its remote tomcat application then: you need to configure the java
application @ window > preferences > java application/ remote java
application .. give respective debug port over which the tomcat would
listen,.,..

in catelina.bat give the following entries:JAVA_OPTS="$JAVA_OPTS -Xmx512m
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" ..
best to the end of the file (So the debug port would be 8000 in this case)

hope this helps.. if not let me know.. shall help u out.. 

cheers,
ravi 



miro wrote:
> 
>  Is there any free jsp debugger plugin for eclipse  ?
> miro
> 
>
> -
> Never miss a thing.   Make Yahoo your homepage.
> 

-- 
View this message in context: 
http://www.nabble.com/-eclipse--is-it-possible-to-debug-jsp-in-eclipse---tp15618926p15627666.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Regarding Localization Can't Change in Struts2

2008-02-21 Thread sagarlotiya

Hi,
I have some strange problem occurs in my application with using struts2.

When i will try to change locale without login it don't work.

But once i will login in to the application i can change the locale.

can any one help what can be the problem that i can't change the locale
without login... 

I am using Interceptor for login validation , does it creates any problems.?

Than you
-- 
View this message in context: 
http://www.nabble.com/Regarding-Localization-Can%27t-Change-in-Struts2-tp15628698p15628698.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts2 Session Invalidate.

2008-02-21 Thread hardik_982

try
this
((org.apache.struts2.dispatcher.SessionMap)
ActionContext.getContext().getSession()).invalidate();
-- 
View this message in context: 
http://www.nabble.com/Struts2-Session-Invalidate.-tp15627192p15628783.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



change in struts tabbedpanel style

2008-02-21 Thread hardik_982

can anybody say
how i can change in s:tabbedpanel tabs color of tab and style
thanks in advance
-- 
View this message in context: 
http://www.nabble.com/change-in-struts-tabbedpanel-style-tp15628786p15628786.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: change in struts tabbedpanel style

2008-02-21 Thread Jeromy Evans

hardik_982 wrote:

can anybody say
how i can change in s:tabbedpanel tabs color of tab and style
thanks in advance
  

Override the CSS.

In Firefox, install the Web Developer Toolbar and inspect the generated 
source when you have tabs visible. You'll be able to see the styles on 
the html tags and notice Dojo uses the "CSS sliding doors" approach for 
rounded corners and gradients.
Use the Edit CSS feature to play with live CSS.  Use FireBug to inspect 
the elements if you like. 
You should be able to find and understand the styles pretty quickly that 
way.


PS. The styles may be documented somewhere at www.dojotoolkit.org for 
0.4.0 but I don't recall ever seeing it.


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



Re: [eclipse] is it possible to debug jsp in eclipse ?

2008-02-21 Thread hardik_982

there is one another filter called spark plugin for eclipse
i dont know it is useful or not
just googling that
-- 
View this message in context: 
http://www.nabble.com/-eclipse--is-it-possible-to-debug-jsp-in-eclipse---tp15618926p15628953.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: change in struts tabbedpanel style

2008-02-21 Thread hardik_982


-->PS. The styles may be documented somewhere at www.dojotoolkit.org for 
0.4.0 but I don't recall ever seeing it.

i think you tell about
http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/themes-and-design/overriding-and-combining-themes
-- 
View this message in context: 
http://www.nabble.com/change-in-struts-tabbedpanel-style-tp15628786p15628959.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Does the tag (in Struts 2.1) supports non-Ajax submit?

2008-02-21 Thread Yuval Rotem
Hi,

Does the  tag (in Struts 2.1) supports non-Ajax submit? In
other words, can it provide the functionality of the non-Ajax 
tag?

(If I understand correctly it doesn't, just wanted to verify - maybe I'm
missing something here).

Thanks,

Yuval.


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp