Re: Tiles: definition without path

2007-08-22 Thread Paul Benedict
Please see: https://issues.apache.org/struts/browse/STR-1981 Paul On 8/21/07, Jose Luis Martinez Avial [EMAIL PROTECTED] wrote: I've tried to modify the execute method of TilesPreProcessor from ... if(uri == null) { log.debug(no uri computed, so pass to next

how to use confirm dialog box

2007-08-22 Thread kushi
Hello experts, please suggest how to use confirmation dialog box in web application. i want to use this box in my application, where i list multiple files in JSP page. if i want to delete any file then first i want to show confirmation dialog like are u sure to delete? with yes or no option. if

RE how to use confirm dialog box

2007-08-22 Thread MLENEVEUT
Google ? Search in nabble's forum ? http://www.nabble.com/how-to-use-confirmdialog-box-tf4303548.html#a12249806 kushi [EMAIL PROTECTED] 22/08/2007 08:56 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A user@struts.apache.org cc Objet how to use confirm dialog box

Re: the icons of datatimepicker cannot be displayed

2007-08-22 Thread vamsi
I kept that one too. that's why I said all the script files are getting loaded also. maybe you forget to add s:head theme=ajax/ between the head/ tag 2007/8/21, vamsi [EMAIL PROTECTED]: I am facing some problem with datetimepicker datetimepicker not showing up any thing on the

Re: Trouble getting to portlet render phase

2007-08-22 Thread Nils-Helge Garli
Have you resolved this yet? Did you find anything in your startup logs? Nils-H On 8/16/07, Frederick N. Brier [EMAIL PROTECTED] wrote: I have deployed the struts-portlet example, and it works. I continue to make comparison's between all of its configuration files, my own, and other examples.

Re: [S2] tree tag and nodes customization

2007-08-22 Thread Paolo Beccari
Hi, is there a way to specify different images for each node? Or are property such expandIconSrcPlus immutable for the entire tree? Thanks, P. ...ping? (Btw, I think it's not possibile because it's a tree attribute. Shouldn't properties like this belong to treenode?)

XWorkConversion of Date from string

2007-08-22 Thread vamsi
Hi all, In my aplication I need to String to Date, it is working only for MM/dd/ format only I found strange that it is hardcode inside the XWorkConversion class. Is there any other place where I can set this date format. thanks to all regards Vamsi

Re: How to use the s:param tag with s:textfield?

2007-08-22 Thread Kishen Simbhoedatpanday
Ok... so you could create a Number format type converter, but what about getting the locale (i18n) format from resource bundles? I could not find a way to get a text from the message resource bundles (like getText('format.number') in the Action classes). Anyone facing the same problem? Luiz

Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
Hi I'm encountering this exception (when trying to iterate a list of orders for a specific customer in JSP), failed to lazily initialize a collection of role: com.dummy.Customer.orders, no session or session was closed at

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread Toni Lyytikäinen
You can't use the OpenSessionInViewInterceptor from Spring in Struts 2. Struts 2 interceptors are not compatible with Spring interceptors as they have their own interface. You'll have to use OpenSessionInViewFilter. Take a look here:

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
With OpenSessionInViewFilter, my web.xml will look like this filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter filter-namesessionFilter/filter-name

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread Roberto Nunnari
probably you'll need to invert the filter-mapping declaration order. hezjing wrote: With OpenSessionInViewFilter, my web.xml will look like this filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread Toni Lyytikäinen
And, is there a better alternative than using OpenSessionInViewInterceptor? Yes. It's important to realise that while OpenSessionInView feels very handy, it is not a particularly nice design pattern, as it can stress your database with lots of small queries. It's best to learn how to do eager

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
This is something new to me, I always thought that lazy initialization is to boost performance. So we should really use eager fetching by default and minimize the use of OSIV. On 8/22/07, Toni Lyytikäinen [EMAIL PROTECTED] wrote: And, is there a better alternative than using

Re: [S2] how to get the constants in struts.xml programmatically?

2007-08-22 Thread Joe Lam
Anyone know the answer? Thank you very much Joe Lam wrote: In my class, I want to read a constant in struts.xml. I see some examples using @inject , somehow I cant make it work. May someone help me? just wanna to get those constants in struts.xml (don't want to use java properties

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread Toni Lyytikäinen
Lazy initialization is to boost performance. The problem is that it doesn't apply to all cases. In cases where you have to iterate over a list of objects and those have lazy loading properties that you need, it will generate a lot of extra queries to to database. In those cases it's best to use

Re: [S2] File Upload: the request was rejected because its size (...) exceeds the configured maximum (2097152)

2007-08-22 Thread Sandro Giessl
On Friday 17 August 2007 17:35:32 Pedro Herrera wrote: hi, putting the constant in strut.xls works fine ? constant name=struts.multipart.maxSize value=2597152 / This works great, thank you! Also thanks for pointing me to the JIRA issue, James. Herrera Bye, Sandro Sandro Giessl-2

Re: [S2] how to get the constants in struts.xml programmatically?

2007-08-22 Thread Don Brown
First, ensure that the object that Struts will be injecting to is created by Struts. Then, you can do: @Inject(StrutsConstants.SOME_CONSTANT_HERE) public void setSomeConstant(String val) {...} For example, Actions, Interceptors, and Result objects are generally processed for injections by

Re: [S2] File Upload: the request was rejected because its size (...) exceeds the configured maximum (2097152)

2007-08-22 Thread Sandro Giessl
On Friday 17 August 2007 17:35:32 Pedro Herrera wrote: hi, putting the constant in strut.xls works fine ? constant name=struts.multipart.maxSize value=2597152 / This works great, thank you! Also thanks for pointing me to the JIRA issue, James. Herrera Bye, Sandro Sandro Giessl-2

Re: [S2] Autocompleter initial value and key

2007-08-22 Thread rrecoba
:(... so i´ve to change all my nice autocompleters :_( Pedro, I don´t know anything about DWR? have you did your own autocompleter using DWR ? or you get it from some place? do you have any link ? thanks a lot. Pedro Herrera wrote: I was having the same problem. What I did ?

RE: Tiles: definition without path

2007-08-22 Thread Jose Luis Martinez Avial
It's not as easy as modifying the code the way I did, because if you use the validation in a form, and the validation fails, it goes through the tiles processor with and uri null, and because of the modifications it fails coming back to the original screen. So I've put the old code(in fact the

Struts2 - troubles with ParameterAware

2007-08-22 Thread Riccardo Mollame
file set: Launch JSP page: TestActionParam.jsp Action: ActionParam.java Response JSP page: ActionParam.jsp Struts config file: struts.xml source code: TestActionParame.jsp ** %@ taglib prefix=s uri=/struts-tags % html head meta http-equiv=Content-Type content=text/html;

Re: Struts2 - troubles with ParameterAware

2007-08-22 Thread meeboo
I think that you'll need to declare the param, something in the likes of... action name=actionparam class=test.ActionParam result/ActionParam.jsp/result {1} !-- added this -- interceptor-ref name=servlet-config / interceptor-ref name=params/

Re: Struts2 - troubles with ParameterAware

2007-08-22 Thread Dave Newton
--- Riccardo Mollame [EMAIL PROTECTED] wrote: WHERE'S THE DAMN PROBLEM?!? The params interceptor [1] does not do what you think it does. You are assuming you have implemented ParameterAware [2, sorta], which is different. d. [1]

Re: Struts2 - troubles with ParameterAware

2007-08-22 Thread Riccardo Mollame
Thanks anyway, I'll try it immediately... All my best Riccardo ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

Problem with forward mapping when I invalidate the session

2007-08-22 Thread debussy007
Hi, My web application allows a user to authenticate via a database. When he submits his username and password, the request goes to the AuthentificationAction. In this action, I want to clean the session if he already had something in the session (e.g. he connected with a username and then he

Re: s:tree treeSelectedTopic property doesn't fire any event

2007-08-22 Thread GEDA
Struts version is 2.0.9 I will try once again and repeat the steps you wrote here. Wish me luck. One question: Where exactly did you put the folder template/ajax in your application ? Thanks. Manu Mahajan-2 wrote: This is the link to the file that I used

Sending value stack from Action A to Action B

2007-08-22 Thread wild_oscar
Being new to Struts2, I was searching for an answer to a use case I developed: - Welcome page has login form (send to LoginAction) - LoginAction reads username and password and sends to ListStuffAction - ListStuffAction reads stuff from database and sends to Stuff page - Stuff page lists the

Re: S2: OGNL beats me

2007-08-22 Thread Aram Mkhitaryan
no, standard EL is quite different, here we have value stack, if you don't specify the id by #id, then it retrieves everything from the root element which is your action, so to get from session or request, first use #request or #session Best, Aram Aram

RE Sending value stack from Action A to Action B

2007-08-22 Thread MLENEVEUT
1) How can values in the value stack be sent among actions, so that they are available in the final web page? Put your values in HttpSession wild_oscar [EMAIL PROTECTED] 22/08/2007 16:48 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A user@struts.apache.org cc

redirect to jsp when cancel button is pressed(without executing the corresponding action)

2007-08-22 Thread abhiram
Hi!! i have a small problem.. in a particular jsp (which is a form), there is a cancel button(html:cancel/). i just want to know how to redirect to another page when the cancel button is pressed (instead of executing the corresponding Action of the form). for instance.. there is a page

Re: redirect to jsp when cancel button is pressed(without executing the corresponding action)

2007-08-22 Thread sriharsha . chevuru
One of many options, I can think over the top of my head is, use just that button in a different form. Simple but I guess it would work. abhiram [EMAIL PROTECTED] 08/22/2007 08:30 AM Please respond to Struts Users Mailing List user@struts.apache.org To struts forum user@struts.apache.org

Re: S2: OGNL beats me

2007-08-22 Thread Laszlo Borsos
Thank you for your answer. I have picked up some information on OGML, and debug screen helped also. I am starting to be quite comfortable in Struts 2 and like it a lot. kuvera Aram Mkhitaryan írta: no, standard EL is quite different, here we have value stack, if you don't specify the id

Re: RE Sending value stack from Action A to Action B

2007-08-22 Thread Laszlo Borsos
I haven't tried it yet, but the Chaining Interceptor is also meant for this purpose. [EMAIL PROTECTED] wrote: 1) How can values in the value stack be sent among actions, so that they are available in the final web page? Put your values in HttpSession wild_oscar [EMAIL

RE: [S2] how to get the constants in struts.xml programmatically?

2007-08-22 Thread Crocker, Patrick
And what if you are using a different ObjectFactory... such as Spring? - Patrick. -Original Message- From: Don Brown [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 5:26 AM To: Struts Users Mailing List Subject: Re: [S2] how to get the constants in struts.xml

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread cilquirm
In my experience, just having OSIV doesn't automatically imply that you expect all your data to be retrieved ad-hoc. (maybe the users do :) OSIV doesn't prevent the user from using eager fetching when necessary or useful ( and my experience delays it until your application is working and

Re: s:tree treeSelectedTopic property doesn't fire any event

2007-08-22 Thread Manu Mahajan
I put the folder in the root of the application, at the same level as WEB-INF All the best! May the force be with you ;) GEDA wrote: Struts version is 2.0.9 I will try once again and repeat the steps you wrote here. Wish me luck. One question: Where exactly did you put the folder

Re: redirect to jsp when cancel button is pressed(without executing the corresponding action)

2007-08-22 Thread abhiram
hi!! that was a smart way.. but i could make it work only in static html..and not in a jsp with struts tags. i want to use only struts tags . it is working if i write it this way.. html:form action=/AddressAction.do -- -- html:submit/ /html:form form action=MyAccount.jsp

RE: redirect to jsp when cancel button is pressed(without executing the corresponding action)

2007-08-22 Thread Jiang, Jane (NIH/NCI) [C]
Your form buttons do not have to invoke the same action. Try this ul class=formbuttons lis:submit name=save action=maintainChangeAction!save value=Save //li lis:submit name=cancel href=otherJsp.jsp value=Cancel //li /ul -Original Message- From: abhiram [mailto:[EMAIL

How to specify derby home to the JVM

2007-08-22 Thread Ping Yu
People in the list, I would like to specify derby home to the JVM so that the JVM can pickup the database.I added one line in catalina.bat. I added the last line to JAVA_OPTS as shown below: set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Struts2 Tiles question

2007-08-22 Thread Pavel Sapozhnikov
Hi everybody. I have a question. I included all necessary things in order to take advantage of tiles in Struts2. I included listened in web.xml I included result type in struts.xml so now I know that I need tiles-config.xml in my WEB-INF right. Well how does tile-config.xml look like. Could anyone

Re: Struts2: should we use Tiles or Sitemesh - Big Thanx!

2007-08-22 Thread sol myr
Thanks so much for the detailed replies to my tiles/sitemesh question. Two thumbs up to this forum, and thanks for taking the time to share this useful information. :) Sol - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated

Re: How can I tell Struts 2 to throw/log exceptions for invalid OGNL Expressions

2007-08-22 Thread mraible
mraible wrote: I have the following class: public class TestAction { public static String concat(String str1, String str2) { return str1 + and + str2; } } In a JSP, I can write the following and it works fine: s:property value=@[EMAIL PROTECTED]('1', '2')/

value attribute in the html:checkbox tag

2007-08-22 Thread Zhang, Larry (L.)
On myForm, I have a collection (an array of Analyst objects), analystList, when I iterate through it, I want to render a check box for each row, and I specifically want to put the analyst id to value attribute of the checkbox tag, do you know how to do it? And also how to get the value of the

MutableTilesContainer

2007-08-22 Thread Pavel Sapozhnikov
Hi I am getting this error could anyone help please. I am trying to use tiles in Strut2 thanks javax.servlet.ServletException: Unable to define definition for a container which does not implement MutableTilesContainer -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Re: Action within Action result

2007-08-22 Thread Richard Sayre
Hi You need to use a different result type: action name=action class=com.rs.MyAction result type=redirect-action param name=actionNameanotherAction/param /result /action On 8/21/07, Sawan [EMAIL PROTECTED] wrote: Hello Experts, I want to

Re: S2 Validation XML -- multiple methods on same Action

2007-08-22 Thread j alex
Resend On 8/20/07, j alex [EMAIL PROTECTED] wrote: Hi, Just checking one more time if someone has an answer to my below email. We decided to go with XML validation, and as i understand it, we cannot have validation files based on action methods, but can only name it by action alias. This

MutableTilesContainer error

2007-08-22 Thread Pavel Sapozhnikov
Hello everybody. I am getting this error when I am trying to use tiles in struts2. If anybody could help that would be terrific. Any input will be greatly appreciated. Thank you. javax.servlet.ServletException: Unable to define definition for a container which does not implement

how to print check value of boolean variable

2007-08-22 Thread kushi
Hello, i want to know how i can print value of a boolean variable in struts ,which i used in my java class. thanks -- View this message in context: http://www.nabble.com/how-to-print---check-value-of-boolean-variable-tf4315530.html#a12287717 Sent from the Struts - User mailing list archive at

hide unhide hyperlink

2007-08-22 Thread kushi
Hello , i want to know how to hide unhide a hyperlink. Thanks -- View this message in context: http://www.nabble.com/hide---unhide-hyperlink-tf4315531.html#a12287720 Sent from the Struts - User mailing list archive at Nabble.com.

Re: S2 Validation XML -- multiple methods on same Action

2007-08-22 Thread Jeromy Evans
Use wildcards for your actions. action name=abc_* method={1} class=com.mypaysite.MyAction The action's alias now includes the method name. Refer to the action by it's alias matching the wildcard: s:submit value=button1 action=abc_methodA/ s:submit value=button2 action=abc_methodB/ Use the