Multiple action declarations with the same Action class

2008-06-26 Thread Chandramouli P
Hi,This is my first post to the user list.We have started working in struts recently.Is it possible to use one Action class for multiple action declarations in the struts-config.xml?Consider the code below:Thanks & Regards,Chandramouli P.

Re: Struts 2 - Repopulate controls when validation fails

2008-06-26 Thread Lukasz Lenart
Hi, 2008/6/26 bob fuller <[EMAIL PROTECTED]>: > > The approach I am taking is from the Struts 2 FAQ... > > http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html > > Why should it be avoided? I don't remmeber exactly why, someone on this group mentioned that. I

Re: [struts] Slow performance with Struts2

2008-06-26 Thread yorlick kilroy
On Fri, Jun 27, 2008 at 7:25 AM, yorlick kilroy <[EMAIL PROTECTED]> wrote: > Hi Al, > > thx! you made my day :-) that did the trick! > replacing freemarker 2.3.8 with 2.3.13 speeded up my application by almost > 100% > It still doesn't come anywhere near my old struts2 application but I guess > it

Re: Struts Themes Problem - help

2008-06-26 Thread Narayana S
Hi Laurie, Thanks for your reply. i found a work around for this. if i am applying as below, my application could read the values from resource bundle. :) this problem is solved. - but here it introduced one more problem, with the xhtml them

Re: [struts] Slow performance with Struts2

2008-06-26 Thread yorlick kilroy
Hi Al, thx! you made my day :-) that did the trick! replacing freemarker 2.3.8 with 2.3.13 speeded up my application by almost 100% It still doesn't come anywhere near my old struts2 application but I guess its a fairly small trade-off when considering what struts2 has to offer. --- joe On Thu,

Re: Strange problem with content disposition

2008-06-26 Thread Jeromy Evans
Paranoid_Fabio wrote: Hello. I've a very strange problem using content disposition in stream result: ${contentType} downloadStream filename=${fileName} 1024 fileName is a field of my action class. When fil

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Jeromy Evans
Al Sutton wrote: Dave, I'm completely agree it's a great idea and useful thing to do, but the problem is what to put into the cookie and how to map it to the user. My current favourite is encrypt the properties you want to store (using AES for speed and JCE support), then decrypt and inject

Re: - how to provide an understandable error message to the enduser?

2008-06-26 Thread Dave Newton
Type conversion errors are added separately from validation errors. Among the options is to remove the conversion error interceptor from your interceptor stack and use only the validation errors. Dave --- On Thu, 6/26/08, xianwinwin <[EMAIL PROTECTED]> wrote: > From: xianwinwin <[EMAIL PROTECT

- how to provide an understandable error message to the enduser?

2008-06-26 Thread xianwinwin
Hi all, If the end-user input wrong date-type (eg., date format is incorrect, or for 'number of people' he types 'Q') the 'input' is fired and it shows the error message. I do that with the 'return input' and the jsp page (this is ajax-id) looks like this: <%@ taglib prefix="s" uri="/struts-ta

Re: [S2] TypeConversion and generics

2008-06-26 Thread Chris Pratt
On Thu, Jun 26, 2008 at 3:04 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > 2008/6/26 Chris Pratt <[EMAIL PROTECTED]>: > >> How does your case differ from the example on the Type Conversion page >> you referenced? It seems to me you're trying to do exactly what that >> page says you can't? >>

Re: [S2] TypeConversion and generics

2008-06-26 Thread Pierre Thibaudeau
2008/6/26 Chris Pratt <[EMAIL PROTECTED]>: > How does your case differ from the example on the Type Conversion page > you referenced? It seems to me you're trying to do exactly what that > page says you can't? > My understanding of http://struts.apache.org/2.1.2/docs/type-conversion.html#TypeCon

Re: [S2] TypeConversion and generics

2008-06-26 Thread Chris Pratt
How does your case differ from the example on the Type Conversion page you referenced? It seems to me you're trying to do exactly what that page says you can't? (*Chris*) On Thu, Jun 26, 2008 at 12:56 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > I tried your suggestion. Unfortunately, th

Unit Testing - change ObjectFactory - override config

2008-06-26 Thread Greg Lindholm
I want to change the ObjectFactory to use for unit testing so (I think) I need to be able to override struts.xml config settings. I'm writing some code to unit test actions with the Interceptor stack. I followed the links off the Guides page under "Unit Testing (TODO)'... these gave me some hint

Re: [S2] TypeConversion and generics

2008-06-26 Thread Pierre Thibaudeau
I tried your suggestion. Unfortunately, the exception is exactly as before. (In practice, it would not have been a good idea to put the autoLogin interceptor after the prepare interceptor, but I am definitely willing to try anything!) 2008/6/26 Lukasz Lenart <[EMAIL PROTECTED]>: > Try to change

RE: Struts 2 - Repopulate controls when validation fails

2008-06-26 Thread bob fuller
The approach I am taking is from the Struts 2 FAQ... http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html Why should it be avoided? > Date: Thu, 26 Jun 2008 08:32:37 +0200 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Struts 2 - Rep

Re: [S2] TypeConversion and generics

2008-06-26 Thread Lukasz Lenart
Try to change order of your interceptors as below Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [S2] TypeConversion and generics

2008-06-26 Thread Pierre Thibaudeau
I realize that I may have been stingy on the exception stack trace. Here is more of it. Notice that, nowhere in there is my StringToIntegerConverter actually called. (It would have logged the occurrence.) 15:22:37,762 DEBUG ParametersInterceptor:58 - Setting params propertyId => [ 295 ] 15:22:37

Re: validation problem

2008-06-26 Thread Laurie Harper
Why not just validate all fields with type="requiredstring" and set short-circuit="true" on them? Wouldn't that do what you want? See the Short-Circuiting Validator section of the validation docs [1] for more details. [1] http://struts.apache.org/2.1.2/docs/validation.html L. ManiKanta G wro

Re: Newbie: Call a servlet in another application and set attribute

2008-06-26 Thread Laurie Harper
Nils-Helge Garli Hegvik wrote: I believe most servlet containers prevent sharing of session objects between applications by default. But it probably can be configured to be allowed (consult the documentation for your server to find out I know some containers support this, but it is container-sp

Re: [S2] TypeConversion and generics

2008-06-26 Thread Pierre Thibaudeau
Hi Lukasz I don't know why you use such generic action class? ;) Well, I haven't shown you the purpose of any of the objects. (In fact, the full hierarchy is highly more complex than what is shown in my previous post; there are 29 objects involved...) > And as I know OGNL support generics and

Re: Struts list

2008-06-26 Thread Laurie Harper
Sonu S wrote: HI, I have to show list in my jsp page. I am using i am getting two lists from data base and it is in employee form bean: first list is for employee no and second list is for name. i want to display employee name in and want to use employee no as VALUE in so list would have em

Re: [S2] TypeConversion and generics

2008-06-26 Thread Lukasz Lenart
Hi, I don't know why you use such generic action class? And as I know OGNL support generics and it will try to convert to given type without TypeConversion Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: [S2] autocompleter action extension

2008-06-26 Thread Laurie Harper
My guess is that using an action extension of .html creates a conflict with the Dojo template resources, which are .html files. If you look at your access logs (or use Firebug to see what XHR requests are being made during page rendering), you'll see what I mean. The easiest thing to do is pic

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
I cannot believe I missed that, my reports showed how obviously it was creating singletons and never configured it not to. Thanks for the information, resolved the problem within minutes of reading your response. Thanks again! -- View this message in context: http://www.nabble.com/Struts-2-A

[S2] TypeConversion and generics

2008-06-26 Thread Pierre Thibaudeau
I am aware that, when applying request parameters to an action, Struts cannot guess the actual type of parameters determined by a generic type (because of erasure at compile time). However, I am assuming that if a non-generic action class extends an abstract generic one, it should be possible in t

Re: Struts Themes Problem - help

2008-06-26 Thread Laurie Harper
To repeat my previous question: >> How is it failing? Note that the 'simple' theme generates a lot less >> markup, and doesn't generate everything the other themes do. Are I18N >> resources failing to get resolved, or is the theme just not generating the >> things you were expecting to see? Wi

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread Lukasz Lenart
Hi, Are you using spring to instantiate your actions? If so, did you setup to not use singletons? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts 2 And Hibernate Problem

2008-06-26 Thread cree
So I have been doing some testing and it seems the the same two action objects are persisting. So when I invoke the first action class the ActionInvocation has on the stack (for lack of a better name) [EMAIL PROTECTED] When I submit the form to the processing action I get some other arbitrary ac

ClassNotFoundException: org.apache.struts.action.ActionServlet

2008-06-26 Thread xeonyk
i want to ask about error when i creating application with struts framework the error is : ClassNotFoundException: org.apache.struts.action.ActionServlet in my glassfish server console i create web project and put struts framework form netbeans i look in my library and it's already add struts 1

How to read data from nested list elements

2008-06-26 Thread Reddy, Ramachandra (IS Consultant)
Hi Folks, I have particular requirement where I have nested elements and within that again some elements… So the nesting is up to 3 levels. Top most element is    ModulesList= it has N modules  Module = it has N  Parts Part= it has N Elements Here is the class hieirarchy Parent class that hol

Strange problem with content disposition

2008-06-26 Thread Paranoid_Fabio
Hello. I've a very strange problem using content disposition in stream result: ${contentType} downloadStream filename=${fileName} 1024 fileName is a field of my action class. When filename contains no space

Re: Help with Combobox

2008-06-26 Thread Juan Pablo Pizarro
Thanks!! It works fine! Regards. 2008/6/26 Lukasz Lenart <[EMAIL PROTECTED]>: > 2008/6/26 Juan Pablo Pizarro <[EMAIL PROTECTED]>: >> Sorry, I use: >> >> >name="technology" readonly="true" >>headerValue="--- Please Select ---" >> he

Re: Struts Validator Framework: problem with Custom Validator

2008-06-26 Thread cacodemon79
No-reply? :( However, I solved. Now all works well. ** SERVER-SIDE ** To avoid the deprecated method Resources.getActionMessage(HttpServletRequest request, ValidatorAction va, Field field) I used Resources.getActionMessage(Validator v, HttpServletRequest request, ValidatorAction

Re: Help with Combobox

2008-06-26 Thread Lukasz Lenart
2008/6/26 Juan Pablo Pizarro <[EMAIL PROTECTED]>: > Sorry, I use: > > name="technology" readonly="true" >headerValue="--- Please Select ---" > headerKey="1" > list="lstTechnology.{shortDesc}"/> It should be like this list="lstTechno

Re: Help with Combobox

2008-06-26 Thread Juan Pablo Pizarro
Sorry, I use: JP 2008/6/26 Dave Newton <[EMAIL PROTECTED]>: > Use listValue? > > Dave > > > --- On Thu, 6/26/08, Juan Pablo Pizarro <[EMAIL PROTECTED]> wrote: > >> From: Juan Pablo Pizarro <[EMAIL PROTECTED]> >> Subject: Help with Combobox >> To: "Struts Users Mailing List" >> Date: Thursday,

Re: Help with Combobox

2008-06-26 Thread Dave Newton
Use listValue? Dave --- On Thu, 6/26/08, Juan Pablo Pizarro <[EMAIL PROTECTED]> wrote: > From: Juan Pablo Pizarro <[EMAIL PROTECTED]> > Subject: Help with Combobox > To: "Struts Users Mailing List" > Date: Thursday, June 26, 2008, 11:40 AM > Hello, All. > > I've a problem, I usa a combobox to

Help with Combobox

2008-06-26 Thread Juan Pablo Pizarro
Hello, All. I've a problem, I usa a combobox to show options in a page, but I need keep the id and show the description. I use Apache Tomcat 5.5 and Struts 2.0.11 My bean has: private String technology; private Collection lstTechnology; My page has: Thanks! JP

AW: Something like getCurrentAction(...)

2008-06-26 Thread Jan Froehlich
I'm sorry - found it.. Just ignore my last message! That will return an object of this type: http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts 2/dispatcher/mapper/ActionMapping.html musachy On Thu, Jun 26, 2008 at 11:21 AM, Jan Froehlich <[EMAIL PROTECTED]> wrote: >

AW: Something like getCurrentAction(...)

2008-06-26 Thread Jan Froehlich
Well, ok - found that already - but I got no Idea what method returns my desired action. That will return an object of this type: http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts 2/dispatcher/mapper/ActionMapping.html musachy On Thu, Jun 26, 2008 at 11:21 AM, Jan Froehli

Re: Something like getCurrentAction(...)

2008-06-26 Thread Musachy Barroso
That will return an object of this type: http://struts.apache.org/2.0.11.1/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/ActionMapping.html musachy On Thu, Jun 26, 2008 at 11:21 AM, Jan Froehlich <[EMAIL PROTECTED]> wrote: > Can you give me a quick hint, how I can access what I need?

AW: Something like getCurrentAction(...)

2008-06-26 Thread Jan Froehlich
Can you give me a quick hint, how I can access what I need? Not sure what I should search for Try this: http://struts.apache.org/2.x/docs/how-do-we-access-the-action-invocation -action-name-or-namespace-from-a-view.html On Thu, Jun 26, 2008 at 10:15 AM, Jan Froehlich <[EMAIL PROTECTED]> wrot

Re: [struts] Slow performance with Struts2

2008-06-26 Thread Al Sutton
If your benchmark uses multiple threads throw in a freemarker upgrade to 2.3.13 and have another spin :). One thing you might want to bear in mind is that if you're using a persistance framework there maybe some back end fetching taking place between a.b.c and a.b.c.d. Even though you write si

Re: [struts] Slow performance with Struts2

2008-06-26 Thread yorlick kilroy
I replaced OGNL 2.6.11 with the latest 2.7.2 Version. I did a bit of benchmarking comparing the two and it absolutely surprised me, that 2.7.2 in some cases is almost twice as slow as 2.6.11 The test scenario: iterate a large java.util.List in a jsp. the List contains a pretty large tree of object

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
Dave, I'm completely agree it's a great idea and useful thing to do, but the problem is what to put into the cookie and how to map it to the user. My current favourite is encrypt the properties you want to store (using AES for speed and JCE support), then decrypt and inject when needed. Cook

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
The key(s) can be a single key per day/week/month. The date of the cookie generation can be included and the relevant key looked up. The problem with MD5 is it's one way so I'd have to have either a search and match algorithm, or a database of MD5ed text to user mappings. With AES I can extrac

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
It's going to be a problem with whatever method is used. Even if there is a server side IP address record for each cookie you still have the problem of cookies stoled and used at the same location :(. Unless you have an idea you wish to share? :). Al. Musachy Barroso wrote: Be aware of cook

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Dave Newton
Personally I kinda liked my idea of a cookie interceptor that will inject type-converted cookie values into actions; we'll probably use something like that for our new projects. Dave --- On Thu, 6/26/08, Al Sutton <[EMAIL PROTECTED]> wrote: > From: Al Sutton <[EMAIL PROTECTED]> > Subject: Re:

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Lukasz Lenart
Hi, 2008/6/26 Al Sutton <[EMAIL PROTECTED]>: > I was thinking more along the lines of encrypting the userId and password > hash using AES, store the value in the cookie, then if the cookie is > available during another session decrypt, check everything matches, and let > them back in. But you wil

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Musachy Barroso
Be aware of cookie stealing. musachy On Thu, Jun 26, 2008 at 10:32 AM, Al Sutton <[EMAIL PROTECTED]> wrote: > I was thinking more along the lines of encrypting the userId and password > hash using AES, store the value in the cookie, then if the cookie is > available during another session decrypt

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything matches, and let them back in. That way it avoids trying to maintain sync between the user a

Re: Something like getCurrentAction(...)

2008-06-26 Thread Musachy Barroso
Try this: http://struts.apache.org/2.x/docs/how-do-we-access-the-action-invocation-action-name-or-namespace-from-a-view.html On Thu, Jun 26, 2008 at 10:15 AM, Jan Froehlich <[EMAIL PROTECTED]> wrote: > Something I forgot to tell > > I already tried the way using the but as > I use a default

Re: Struts 2 - Unexpected Exception

2008-06-26 Thread Lukasz Lenart
2008/6/26 Jim Kiley <[EMAIL PROTECTED]>: > I believe what Lukasz is trying to get across is that when Struts sees the > underscore in the submitted data it assumes that it is working with a > collection or array of some kind. The fact that it referred to your value > as '[Ljava.lang.String' rather

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Lukasz Lenart
I think there isn't any solution in Struts2, so then, implement that with cookies and save such cookie also on the server side in db, you can also allow such thing for selected users, etc. Regards -- Lukasz http://www.lenart.org.pl/ --

Re: Struts 2 - Unexpected Exception

2008-06-26 Thread Lukasz Lenart
2008/6/26 Eric Hamacher <[EMAIL PROTECTED]>: > Solved it. I forgot to enter the class attribute in my configuration. > Thanks! Exactly, that was in exception, the class name was ActionSupport and not your class ;-) Regards -- Lukasz http://www.lenart.org.pl/ --

AW: Something like getCurrentAction(...)

2008-06-26 Thread Jan Froehlich
Something I forgot to tell I already tried the way using the but as I use a default action for most of my calls its not a possibility... Hi all, As I am not sure if I can explain the whole context of my problem just a short description of what I got and what I want: I got an Action extend

RE: Struts 2 - Unexpected Exception

2008-06-26 Thread Eric Hamacher
Solved it. I forgot to enter the class attribute in my configuration. Thanks! -Original Message- From: Lukasz Lenart [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 9:07 AM To: Struts Users Mailing List Subject: Re: Struts 2 - Unexpected Exception 2008/6/26 Eric Hamacher <[EMAIL

Re: Struts 2 - Unexpected Exception

2008-06-26 Thread Lukasz Lenart
2008/6/26 Eric Hamacher <[EMAIL PROTECTED]>: > Changed everything to param1. Still the same error. Could you show your jsp? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Something like getCurrentAction(...)

2008-06-26 Thread Jan Froehlich
Hi all, As I am not sure if I can explain the whole context of my problem just a short description of what I got and what I want: I got an Action extending ActionSupport where I added a getCurrentAction() method. public String getCurrentAction() { String sRequestURL = getR

Re: Struts 2 - Unexpected Exception

2008-06-26 Thread Jim Kiley
I believe what Lukasz is trying to get across is that when Struts sees the underscore in the submitted data it assumes that it is working with a collection or array of some kind. The fact that it referred to your value as '[Ljava.lang.String' rather than the String's actual value is the tipoff the

Struts 2 - Unexpected Exception

2008-06-26 Thread Eric Hamacher
Changed everything to param1. Still the same error. > What am I missing? Name of the parameter, change it to param1 and getter/setter From: Eric Hamacher Sent: Thursday, June 26, 2008 8:42 AM To: 'user@struts.apache.org' Subject: Struts 2 - U

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
... and, with dependancies, it comes to over 1MB in size, which for me is too much bloat just for one small feature. If needs be I'll do something with crypto & a cookie which will fit into a few K, I just wondered if there was an easier method. Lukasz Lenart wrote: 2008/6/26 Al Sutton <[EMA

Re: Struts 2 - Unexpected Exception

2008-06-26 Thread Lukasz Lenart
> What am I missing? Name of the parameter, change it to param1 and getter/setter Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Lukasz Lenart
2008/6/26 Al Sutton <[EMAIL PROTECTED]>: > Acegi is a bit of overkill for what I need. It's a simple app, so I'm > looking for a simple struts based solution or failing that someone to say it > can't be done :(. But it's wide used and you can find lot of examples, and the most important, someone w

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
Thank you very much, but they also seem not to find the solution. Antonio Petrelli-3 wrote: > > 2008/6/26 ezgi <[EMAIL PROTECTED]>: >> >> How can I initialize tiles in this context? > > In some ways, you have to manage to put StrutsTilesListener, or at > least its code, but I don't really know

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > > How can I initialize tiles in this context? In some ways, you have to manage to put StrutsTilesListener, or at least its code, but I don't really know how to do it. I suggest to ask the BaseStrutsTestCase developers. Antonio ---

Struts 2 - Unexpected Exception

2008-06-26 Thread Eric Hamacher
Hello again: I have the following Action: public class PrepAction extends ActionSupport { String param_1 = null; public String execute() { System.err.println("In prep execute"); return SUCCESS; } public void setParam_1(String param_1) { this.param_1 = param_1; } public String getParam_1() {

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
Acegi is a bit of overkill for what I need. It's a simple app, so I'm looking for a simple struts based solution or failing that someone to say it can't be done :(. Al. Lukasz Lenart wrote: Hi 2008/6/26 Al Sutton <[EMAIL PROTECTED]>: ... a remember me tick box on a login page? If the us

RE: InternetExplorer > View... > Encoding

2008-06-26 Thread Raghuveer
Even though if client browser has languages /different q values. In my application Language / Locale is not identified by request.getHeader("Accept-Charset") . SO this will be null. I am build local object for multiple languages based on click of button. Setting the locale object insession for Glo

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
How can I initialize tiles in this context? Antonio Petrelli-3 wrote: > > 2008/6/26 ezgi <[EMAIL PROTECTED]>: >> If you look at the link, you can understand the problem. Whose >> initialization is the one that you can't understand? > > I see, but I am sorry, without initialization Tiles won't

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > If you look at the link, you can understand the problem. Whose > initialization is the one that you can't understand? I see, but I am sorry, without initialization Tiles won't work. Antonio

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
This is the action class: public class HelloWorldTest extends BaseStrutsTestCase { HelloWorld hello; Map testSession; @Before public void setUp() throws Exception { super.setUp(); hello = createAction( HelloWorld.class, "

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > > In my action, I have a reference to Http request and it requires to access > the HttpServletRequest object, so I can not easily test the action with just > calling the execute method and comparing the result. So, I have found out a > solution from the link th

Using dojo with .

2008-06-26 Thread sharath karnati
Hi All,      I have 2 tags.     Example:       When I select 'class' it should populate teachers depending upon that class selection, right now 'onchange' I'm submitting action and it is working fine but it is refreshing entire page. I'd like to know how to use 'dojo' without refresh this pa

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
In my action, I have a reference to Http request and it requires to access the HttpServletRequest object, so I can not easily test the action with just calling the execute method and comparing the result. So, I have found out a solution from the link that I refere before, I did not write the BaseS

Re: Overriding and localizing default conversion error message

2008-06-26 Thread Jukka Välimaa
I can also use getText(fieldName) for normal validation messages, for fields I've written validation to. But it doesn't work for overriding the default conversion error. I get the blank screen of doom if write in this and try to submit a field that triggers conversion error: xwork.default.invalid.f

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > If I add the location of web.xml or any other thing to here > private static final String CONFIG_LOCATIONS = "file:src/struts.xml" ; > I got a parsing error. I am not very experienced with tiles, I just test the > code in a big project. The problem is , if I do

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
If I add the location of web.xml or any other thing to here private static final String CONFIG_LOCATIONS = "file:src/struts.xml" ; I got a parsing error. I am not very experienced with tiles, I just test the code in a big project. The problem is , if I do not include tiles, my unit test works pe

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > I have just replaced the code with the new one, isn't it the one you > suggested? Yes, but you had to adapt it to your needs. By the way, do you still receive a parsing error, at startup? Antonio --

Re: [OT] Euro 2008 (WAS: Re: [OT] Re: jUnit Testing Problem with Tiles)

2008-06-26 Thread Antonio Petrelli
2008/6/26 Antonio Petrelli <[EMAIL PROTECTED]>: > 2008/6/26 Al Sutton <[EMAIL PROTECTED]>: >> At least they made it to the tournament :( > > Ah now I got it. You know, I removed the tournament from my memory > after the penalty kicks :-D Oh by the way, Al, I have to say one little secret. We sent

Re: weird problem tag.

2008-06-26 Thread sharath karnati
Hi Pawel,      Don't know how it is working for you. I'm also having similar environment and having this problem.      I fixed this issue using top for 'deploymentVersion'.   Thanks, Sharath. --- On Thu, 6/26/08, Paweł Wielgus <[EMAIL PROTECTED]> wrote: From: Paweł Wielgus <[EMAIL PROTECTED]> Su

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
I have loaded the Tiles listener and run the jUnit test and it gave the same NullPointer Exception. Moreover, the trace is same as before. Then, I tried to load tiles servlet, and it gave the same error. Lastly, I loaded the tiles filter and it gave ther same NPE. I have already tried three of th

[OT] Euro 2008 (WAS: Re: [OT] Re: jUnit Testing Problem with Tiles)

2008-06-26 Thread Antonio Petrelli
2008/6/26 Al Sutton <[EMAIL PROTECTED]>: > At least they made it to the tournament :( Ah now I got it. You know, I removed the tournament from my memory after the penalty kicks :-D I see the positive point though, Donadoni is going away and Lippi is coming back. Antonio -

Re: [OT] Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Al Sutton
At least they made it to the tournament :( Dave Newton wrote: --- On Thu, 6/26/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Eh? I know I am supposed to laugh, but since I am Italian could you explain it a little ;-) Or cry; Spain whupped ya' 4-2. Dave ---

Re: Overriding and localizing default conversion error message

2008-06-26 Thread Dave Newton
Hmm, I've used ${getText(fieldName)} in the resources without issues... I wonder why that worked for me? Are you using the "key" attribute in the form tag? Dave --- On Thu, 6/26/08, Jukka Välimaa <[EMAIL PROTECTED]> wrote: > From: Jukka Välimaa <[EMAIL PROTECTED]> > Subject: Overriding and lo

[OT] Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Dave Newton
--- On Thu, 6/26/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > Eh? I know I am supposed to laugh, but since I am Italian > could you explain it a little ;-) Or cry; Spain whupped ya' 4-2. Dave - To unsubscribe, e-mail: [EMA

Overriding and localizing default conversion error message

2008-06-26 Thread Jukka Välimaa
Hi all, Does anybody know of a way to override the default type conversion error of Struts 2 in a way that makes it possible to localize the field name? I've tried using ${getText(fieldName)} and {0] in the overriding message, but they don't seem to work. Jukka

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > I tried three of them seperatley, but it did not work. Please clarify, what do you mean with "it did not work"? Do you receive an exception at startup? > Should I modify the configuration variable in the BaseStrutsTestCase? I did > not add there > web.xml an

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 Dave Newton <[EMAIL PROTECTED]>: > --- On Thu, 6/26/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote: >> The problem is that you are using StrutsTilesListener (that >> loads /WEB-INF/tiles.xml by default), TilesServlet and >> TilesFilter at the same time. > > Two is one, one is none! Three

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Dave Newton
I don't recall seeing any S2-y cookies stuff, but it'd be pretty easy to write an interceptor that could toss your cookies if there isn't already (and, I suppose, run cookie values through type conversion. Hrmmm.) Dave --- On Thu, 6/26/08, Al Sutton <[EMAIL PROTECTED]> wrote: > From: Al Sutton

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Dave Newton
--- On Thu, 6/26/08, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > The problem is that you are using StrutsTilesListener (that > loads /WEB-INF/tiles.xml by default), TilesServlet and > TilesFilter at the same time. Two is one, one is none! Three is... three is right out. You're just mad because

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Lukasz Lenart
Hi 2008/6/26 Al Sutton <[EMAIL PROTECTED]>: > ... a remember me tick box on a login page? > > If the user ticks the box they're don't have to log in again if they visit > the site again, if they don't click it the login times out in the same > manner as a normal session. > > Remember; I'm ideally

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
I tried three of them seperatley, but it did not work. Should I modify the configuration variable in the BaseStrutsTestCase? I did not add there web.xml and tiles-defs.xml. As you suggested, I add this code into web.xml. org.apache.tiles.web.startup.Tiles

RE: Multi-row tabular forms

2008-06-26 Thread Dave Newton
Not sure what "id" field you're talking about, but S2's type conversion handles collections. Dave --- On Thu, 6/26/08, Kleiderman, Matthew <[EMAIL PROTECTED]> wrote: > From: Kleiderman, Matthew <[EMAIL PROTECTED]> > Subject: RE: Multi-row tabular forms > To: "Struts Users Mailing List" , [EMAI

Re: [s2] Whats the most strutsy way of doing....

2008-06-26 Thread Paweł Wielgus
Hi Al, use cookie? But it's working only within one user browser at a time. Best greetings, Paweł Wielgus On 26/06/2008, Al Sutton <[EMAIL PROTECTED]> wrote: > ... a remember me tick box on a login page? > > If the user ticks the box they're don't have to log in again if they visit > the site ag

[s2] Whats the most strutsy way of doing....

2008-06-26 Thread Al Sutton
... a remember me tick box on a login page? If the user ticks the box they're don't have to log in again if they visit the site again, if they don't click it the login times out in the same manner as a normal session. Remember; I'm ideally looking for a method that stays within the framwork

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > > This is the tiles.defs.xml : > > >org.apache.struts2.tiles.StrutsTilesListener > > > > >tiles > >org.apache.tiles.web.start

Re: Multi-row tabular forms

2008-06-26 Thread Nikhil Walvekar
In generated HTML it should be like this If you can get output like this, then that collection can be populated. Regards, Nikhil On Thu, Jun 26, 2008 at 5:23 PM, Kleiderman, Matthew < [EMAIL PROTECTED]> wrote: > And I think the problem I'm having is figuring out what to do in the > absence of

RE: Multi-row tabular forms

2008-06-26 Thread Kleiderman, Matthew
OK - that could work, but would it auto magically go into the Collection on the Action if I tamper with the ID field, or would I have to start looking into HttpRequest parameters? If the latter, then creating a new tag and interceptor combination is probably the right way to go about it. - Matt

Re: InternetExplorer > View... > Encoding

2008-06-26 Thread Antonio Petrelli
2008/6/26 Raghuveer <[EMAIL PROTECTED]>: > Is there a way to identify in JSP or in Action File if the encoding has been > modified at client side by user and show a message that > > "This application has been design to work in UTF-8 Encoding " Yes, check the "Accept-Charset" header field: http://w

Re: InternetExplorer > View... > Encoding

2008-06-26 Thread Dave Newton
> I have designed a web multiannual web application in "UTF-8". It will run for years? > Is it possible to restrict the user to change > encoding option in browser? >From the *web app*?! > Is there a way to identify in JSP or in Action File if the > encoding has been modified at client side b

  1   2   >