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 -- html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head link rel=stylesheet href=/FrameWork/struts/xhtml/styles.css type=text/css/ script

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

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 filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping inspite of filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping --

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).

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

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

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

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 filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping inspite of filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern

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.

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).

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:

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

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

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

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]

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

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; } }

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: action ... result name=success${destination}/result 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

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

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: s:head theme=ajax/ 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

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

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

problem in populating Maps

2008-02-21 Thread ravi_eze
hi, I am trying to populate a LinkedHashMap located in a DTO from a s:textfield.. / 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

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

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

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

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

[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

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,

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

RE: datetimepicker version 2.0.11 issue

2008-02-21 Thread Deepak Kumar
Hi, Please note the attribute onchange=false of s:datetimepicker (Date time picker). Thanks -Original Message- From: Rose India (http://www.roseindia.net) [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 8:54 PM To: Struts Users Mailing List Subject: RE: datetimepicker

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

2008-02-21 Thread ravi_eze
The following captures the stack trace that the server throws: package name=... namespace=/... extends=struts-default global-results result name=Throwable/path/error.jsp/result /global-results

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

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,

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:

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

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

Re: s:include 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 s:param 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

[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

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

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

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

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

dependant s:select 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, ...).

[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/

[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

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

[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: exception

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 c:url 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

RE: session tracking in struts

2008-02-21 Thread Andy
That did the trick. I was using html:form everywhere but had some links that were not using html:link. I changed to use html:link page=/action.dolink/html:link and I can see the jsessionid appended when I view source. Thanks! Date: Thu, 21 Feb 2008 20:42:56 +0100 From: [EMAIL

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: c:url var=stylesheet value=/css/MyStyle.css / LINK REL=stylesheet TYPE=text/css HREF=c:out value=${stylesheet} / / -Original Message- From: Antonio Petrelli [mailto:[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

Re: s:include 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

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.

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

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.

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) {

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

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();

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

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

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.

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.

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

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

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:

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

2008-02-21 Thread Yuval Rotem
Hi, Does the sx:submit tag (in Struts 2.1) supports non-Ajax submit? In other words, can it provide the functionality of the non-Ajax s:submit tag? (If I understand correctly it doesn't, just wanted to verify - maybe I'm missing something here). Thanks, Yuval. This message and the