Re: struts-menu plugin

2007-04-23 Thread Darryl Culverwell
Great! Thanx Martin On Fri, 2007-04-20 at 11:08 -0400, Martin Gainty wrote: > Hi Darryl- > > I would deploy struts-menu-2.4.war > http://sourceforge.net/project/showfiles.php?group_id=48726&package_id=44658 > the backend jsps are missing but you can easily create those > > M-- > This email mess

Issue w/ ActionServlet.init()...

2007-04-23 Thread David Lehrian
I have an old application written using Struts 1.1 that has a subclass of ActionServlet which overrides the init() method to load data from some XML files. It works fine w/ Struts 1.1. I haven't touched it for years but now need to do some work on it. My current Netbeans environment has Strut

Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-23 Thread Alexis Pigeon
Hi again Mark, Just as a follow-up, you may have missed my message asking for the updated version of your conversation scope interceptor. Moreover, any news about the issue you entered in JIRA concerning this implementation? < http://issues.apache.org/struts/browse/WW-1514 > Thanks, alexis On 1

Re: Issue w/ ActionServlet.init()...

2007-04-23 Thread Niall Pemberton
The init() and init(ServletConfig) methods are part of the servlet API - the container calls init(ServletConfig) and that method then fires init() - so if they are not getting called then I don't think it has anything to do with Struts. Have you checked your logs for any errors? Niall On 4/23/0

Regarding tag libraries

2007-04-23 Thread Kapil Sharma
Hello to all, I am very new to struts. I am using struts 1.0. I have developed a small application. I just want to know the best tag libraries to get the elements out of collection. e.g Arraylist I m now using a lots of for loop inside the <% %> tags in jsp. But do you think it is a nice way.

Re: Regarding tag libraries

2007-04-23 Thread Antonio Petrelli
2007/4/23, Kapil Sharma <[EMAIL PROTECTED]>: Hello to all, I am very new to struts. I am using struts 1.0. I have developed a small application. Curious, you're new to Struts and you are using the 1.0 version? Therefore i would like to know the libraries present in the best appliation. I he

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues
Hi, After a weekend, we are back to reality... Some other clue to help me fix this issue? Thanks, Felipe Felipe Rodrigues wrote: > > yes. But this is not the div I'm trying to update. > > > Musachy Barroso wrote: >> >> Is the submit button inside the div? something like: >> >> >>

Struts Validation Problems

2007-04-23 Thread Ferruh Zamangör
Hi, I have some problems with using the following regular expression in the validation framework from Struts. mask ^\w{2}-\w{6}(-\w{2

Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso
Try setting formId="formVariaveis" in the submit button. musachy On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Hi, After a weekend, we are back to reality... Some other clue to help me fix this issue? Thanks, Felipe Felipe Rodrigues wrote: > > yes. But this is not the div I'm

bean scope in ApplicationContext-struts.xml

2007-04-23 Thread arunabh
Hi , In the ApplicationContext-struts.xml what are the different values for the scope attribute of bean tag . And what different values mean over there . I desperately heed help in that . with regards Arunabh Dash -- View this message in context: http://www.nabble.com/bean-scope-in-Applicat

Re: bean scope in ApplicationContext-struts.xml

2007-04-23 Thread Antonio Petrelli
2007/4/23, arunabh <[EMAIL PROTECTED]>: Hi , In the ApplicationContext-struts.xml what are the different values for the scope attribute of bean tag . And what different values mean over there . I desperately heed help in that . Are you writing about Struts or Spring? In the latter case, write

Re: bean scope in ApplicationContext-struts.xml

2007-04-23 Thread arunabh
2007/4/23, arunabh <[EMAIL PROTECTED]>: > > Hi , > In the ApplicationContext-struts.xml what are the different values for > the > scope attribute of bean tag . And what different values mean over there . > I desperately heed help in that . Are you writing about Struts or Spring? In the latter

Re: bean scope in ApplicationContext-struts.xml

2007-04-23 Thread Antonio Petrelli
2007/4/23, arunabh <[EMAIL PROTECTED]>: 2007/4/23, arunabh <[EMAIL PROTECTED]>: > > Hi , > In the ApplicationContext-struts.xml what are the different values for > the > scope attribute of bean tag . And what different values mean over there . > I desperately heed help in that . Are you writ

Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread piloupy GOTTAPIL
Hi, I'd like to do something like this in a JSP file : Email Link where contact.mail is a key from my MessageResources.properties. I think the solution is quite simple, but I can't find how to do. Thanks in advance, piloupy ---

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues
I've tried it. An interesting thing is: With anchor it works fine. using . I can do my system using anchor, but I would suggest someone else try do that in order to figure out if it is a real bug or not. If so, could create a JIRA Issue. What do you think? Did you tried to reproduce the same issu

Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso
Anchor and Submit use the same Widget. That's weird. musachy On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: I've tried it. An interesting thing is: With anchor it works fine. using . I can do my system using anchor, but I would suggest someone else try do that in order to figure out

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues
Ok. I found out one more thing. I think we are getting close to the real bug. Button (or even anchor) doesn't works when I use targets. If I remove target, then all the thing works fine. But I need to refresh my screen after submit this form. I tried use notifyTopics, but how can I say to some div

Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso
I'm not sure about that, there is a ton of examples using targets in showcase, I'm not saying there isn't a bug, just that if there is one is not as generic as "not working with targets at all". Keep going, I got the feeling you will find it soon :) musachy On 4/23/07, Felipe Rodrigues <[EMAIL P

Re: URL parameters separator

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harring, Harring Figueiredo wrote: > I am not sure if the DTD declares that (I did not take a look at it), but > basically the way to pass param on a HTML URL is the way it was generated - > Every single HTTP server will not parse the parameters corre

Re: URL parameters separator

2007-04-23 Thread Antonio Petrelli
2007/4/23, Christopher Schultz <[EMAIL PROTECTED]>: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harring, Harring Figueiredo wrote: > I am not sure if the DTD declares that (I did not take a look at it), but > basically the way to pass param on a HTML URL is the way it was generated - > Every

RE: Initializing Struts

2007-04-23 Thread Lavezzo Joseph F
The war file is definatley being fully expanded. Also, I am using Oracle 10g Application Server. -Original Message- From: Harring Figueiredo [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 3:53 PM To: Struts Users Mailing List Subject: Re: Initializing Struts Hi Joseph, Check

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues
I also don't thing it is a generic bug. Not so sure as well if it is a real bug. But to make sure we I would like somebody else try to reproduce this issue. The scenario is, a form with some fields that are not Action Attributes, try to get these fields using ActionContext or even the ParametersAw

Re: [S2][interceptors]Inserted my own interceptor => no more params value

2007-04-23 Thread Mark Menard
On 4/23/07 2:36 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > I try to insert my "AuthentificatedInterceptor" in the stack, but now > nothing works. Hi Michaël, I just did this last week. I didn't use a LoginAction though. I did all the work in the interceptor, with a backing

Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso
it is the "bug" I've been talking about all time long :), there are other threads about this on the list. The thing is: before the request is made, "loading..." (or the loading text) is set as the content of the targets, in FF, this doesn't destroy the form(form to be submitted), but in IE it does

Re: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread Lance
">Email Link piloupy GOTTAPIL wrote: Hi, I'd like to do something like this in a JSP file : Email Link where contact.mail is a key from my MessageResources.properties. I think the solution is quite simple, but I can't find how to do. Thanks in advance, piloupy

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues
Yes, So good. I've setted the showLoading text to subimmit button, but I've forgot to remove in the div. We must take it out from both. Thanks a lot man, You've saved my job. :-) Regards, Felipe Rodrigues Musachy Barroso wrote: > > it is the "bug" I've been talking about all time long :), th

Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-23 Thread Mark Menard
Hi Alexis, On 4/23/07 5:16 AM, "Alexis Pigeon" <[EMAIL PROTECTED]> wrote: > Just as a follow-up, you may have missed my message asking for the > updated version of your conversation scope interceptor. I'm sorry, quite busy the last few weeks. I have attached my latest version to the WW-1514 ticke

Re: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread piloupy GOTTAPIL
I precisely want to use the to benefit from the relative context path. Thanks, piloupy On 4/23/07, Lance <[EMAIL PROTECTED]> wrote: ">Email Link - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

DateTimePicker in time format not working with today

2007-04-23 Thread אלחנן מעין
hi all.. i've finally started to learn struts2 and trying work a sample application of an hours reporting app. i'm trying to use the DateTimePicker time format, however i have 2 issues with it: trying to specify today in the value, does not display the current time (it doesn't even work in

Re: Tiles 2 Lifecycycle

2007-04-23 Thread stanlick
Hi Antonio -- I have been teaching for the past couple weeks and now returning to S2/Tiles. I would like to understand how Tiles affects the S2 lifecycle. Scott On 4/15/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/4/13, stanlick <[EMAIL PROTECTED]>: > > Antonio -- > > Can you explain

RE: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread Rod Bollinger
Hi Piloupy, You can use JSTL to format the link before passing it to the tag: Also, take a look at: http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/link.html, you can actually specify a bundle and access key for the tooltip message directly in the tag. HTH -Rod -Original Messa

Re: DateTimePicker in time format not working with today

2007-04-23 Thread Musachy Barroso
I think this question was posted the other day. You can set startDate="dateInThePast" and have a getInThePast() methodin your action (which needs to return an string, in 2.1 it will take a Date object also). As for the time picker, the dojo datepicker widget, in version 0.4.1 was so broken that

RE: DateTimePicker in time format not working with today

2007-04-23 Thread Rod Bollinger
Hello, A cool little trick on the "today" issue is to use a little known aspect of the tag. The useBean exposes its creation datetime as a scoped variable! Beacause of this you can do the following: Now you can use ${today} anywhere you like. Personally, I use the tag to format into what

RE: DateTimePicker in time format not working with today

2007-04-23 Thread Rod Bollinger
Sorry about the last post, I guess I didn't read closely enough. The solution provided, although it works very well, will most likely not address your DateTimePicker issue. Again, my apologies for the list clutter. -Rod -Original Message- From: ××œ×—× ×Ÿ מעין [mailto:[EMAIL PROTECT

[S2] Data entry form for nested beans

2007-04-23 Thread Skip Hollowell
I have the following Bean, which represents an Account I am working on: public class PaymentBean { String acctNumber; DebtorBean debtor; // The person who owes money(s). MAkes sense to use this bean as I used it throughout the app PayorBean payor; // The person making the payment(

Iterating through a map

2007-04-23 Thread meeboo
Hey all How do I iterate through a map? My current method returns a LinkedHashMap - the map is populated and accessed by the view as my debugger shows, but it is never iterated through. Here's the JSP fragment Should iterate 12 times

RE: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-23 Thread Crawford, Preston
Thanks! That helped. Preston -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 12:24 PM To: Struts Users Mailing List Subject: Re: [S1] Is JSTL 1.1 compatible with Struts 1.2.9? On 4/19/07, Crawford, Preston <[EMAIL PROTECTED]> wrote: > Anyone

Re: Issue w/ ActionServlet.init()...

2007-04-23 Thread David Lehrian
Hello Naill, I put a bunch of System.out.print statements in the init method and learned it is actually being called. I figured I could set a breakpoint in the init() method and that Netbeans would break at that point but this doesn't appear to be the case. I find this behavior odd. Thanks f

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-23 Thread Crawford, Preston
This is really strange. So it works if I reference the taglibs as defined in the web.xml (i.e. define /bean in the web.xml and then declare the taglib in the JSP referring to that uri). So now this works... <%@ taglib uri="/bean" prefix="bean" %> But this doesn't work... <%@ taglib uri="http://

Type Conversion Issue

2007-04-23 Thread Andrew Penrose
Hi Guys, I have an ArrayList of say Car models which we are displaying on a page. The status field of the model sets the default value of a select dropdown using a tag on the page. When I go to update the status we can't seem to get type conversion working.the id of the collection object retu

Re: Iterating through a map

2007-04-23 Thread Felipe Rodrigues
I'm not so sure if you can iterate over a Map. Even in Plain Old Java Code you can't do that. A good solution is create a keySet or a list from Map's keys and iterate over that, using each object to get the Map values. Good look, Felipe meeboo wrote: > > Hey all > > How do I iterate throu

RE: DateTimePicker in time format not working with today

2007-04-23 Thread אלחנן מעין
well thanks none the less, maybe somehow, somewhere, somebody will make use of it while searching the mail list (even though i have no idea ) how to search a mailling list. From: "Rod Bollinger" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "'Struts Users Mailing List'" Sub

Re: DateTimePicker in time format not working with today

2007-04-23 Thread אלחנן מעין
you say the dojo DateTimePicker, as if there was another DateTimePicker? is there? is there an eta on 2.1? aside from that, is there another way to enter in dates and have them validated ? (aside from using text fields). what about time fields? From: "Musachy Barroso" <[EMAIL PROTECTED]> Rep

Re: Iterating through a map

2007-04-23 Thread Musachy Barroso
The value attribute for the iterator tag can be either a Collection or an Interator. If it is a map, then each entry is going to be a Map.Entryobject, with a key and a value. - should print: name-John Galt musachy On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: I'm not so sure

Re: Iterating through a map

2007-04-23 Thread meeboo
Just read from the WW in action book - "One of the nicest features about the iterator tag is that it can iterate over just about any data type that has a concept of iteration. When iterating over a Map, it iterates over the Set returned by Map.entrySet(), which is a set of Map.Entry objects, whi

[OT] Re: Iterating through a map

2007-04-23 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > name-John Galt Who is John Galt? (That's the third time I've gotten to say that, legitimately, in the last two weeks!!! Must be a resurgence in reading Rand lately or something.) d. __ Do You Yahoo

[s2] struts2-portlet-2.0.6 example

2007-04-23 Thread Bruyn, Bill-p6141c
Hi all, Is the Ajax example bundled with struts2-portlet-2.0.6 example app supposed to work out of the box? I've deployed to WebLogic 9.2, and seem to have at least a few problems with it: 1. Tags containing 'nested' quotation marks yield some sort of "attribute not recgnized" error. e.g.,

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-23 Thread Crawford, Preston
Nevermind. I figured it out. It's a WAS problem. You have to use the full URI in the Web.xml if you want to use it on the JSP page in the taglib declaration. So like this. http://struts.apache.org/tags-bean /WEB-INF/struts-bean.tld Preston -Original

Re: [OT] Re: Iterating through a map

2007-04-23 Thread Musachy Barroso
I will use "El Zorro" next time ;) On 4/23/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > name-John Galt Who is John Galt? (That's the third time I've gotten to say that, legitimately, in the last two weeks!!! Must be a resurgence in reading Rand l

Re: [S2] Data entry form for nested beans

2007-04-23 Thread Mark Menard
On 4/23/07 1:03 PM, "Skip Hollowell" <[EMAIL PROTECTED]> wrote: > I have the following Bean, which represents an Account I am working on: > > public class PaymentBean { > String acctNumber; > DebtorBean debtor; > PayorBean payor; > CreditCardBean cc; > SinglePaymentBean[] singlePaymen

Re: Iterating through a map

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Musachy, Musachy Barroso wrote: > The value attribute for the iterator tag can be either a Collection or an > Interator. Uh... a Map is neither a Collection nor an Iterator. > If it is a map, then each entry is going to be a > Map.Entryobject, with

Re: Iterating through a map

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, meeboo wrote: > Just read from the WW in action book - > > "One of the nicest features about the iterator tag is that it can iterate > over just about any data type that has a concept of iteration. When > iterating over a Map, it iterates over

Re: Iterating through a map

2007-04-23 Thread Dave Newton
--- Christopher Schultz wrote: > Did you actually try this? I would be surprised it > it worked. I'm pretty sure iterating over maps works; I don't see anything weird about it. It's just minor syntactic sugar around normal map iteration. d. __ Do

Including javascript in a plugin

2007-04-23 Thread Kertis, Dennis
Is it possible to include javascript in a plugin that will be included by freemarker files? Also, can I include jar libs since I don't expect the project including my plugin to need them? Thanks, Dennis

Re: Including javascript in a plugin

2007-04-23 Thread Martin Gainty
Good Afternoon Dennis- I dont know if this will help your specific requirement but there is script coded in test.ftl (freemarker script) from struts-showcase-2.0.1 <@s.head theme="ajax" debug="true" /> click var anchor = dojo.byId("myAnchor"); alert(anchor); dojo.event.connect(anchor,

doubleList not getting pupulated..

2007-04-23 Thread אלחנן מעין
hi... trying this: name="selectedclient" label="Client and task" listKey="id" listValue="name" list="clients" doubleName="selectedTask" doubleListKey="id" doubleListValue="name" doubleList="tasks" /> on my action i have: public List getClients(){ List l=new ArrayList();

Re: Including javascript in a plugin

2007-04-23 Thread Musachy Barroso
If what you mean is including js files that you can use from your pages, or freemarker, I don't think so. I think it would nice to have a way to map resources to paths in a plugin, like: that would at least solve the problem of packaging js and css files in plugins, as for jsps, I kind of gave

[S2] Formatting inside Iterator tag

2007-04-23 Thread chengas123
I am using the iterator tag as follows: This will give me an order date such as "20040513" and a total such as "68.7700" when what I really want is 05/13/2004 and $68.77. I have not been ab

Re: [S2] Formatting inside Iterator tag

2007-04-23 Thread Mark Menard
On 4/23/07 5:37 PM, "chengas123" <[EMAIL PROTECTED]> wrote: > > I am using the iterator tag as follows: > > > > > > > > > This will give me an order date such as "20040513" and a total such as > "68.7700

Re: [S2] Formatting inside Iterator tag

2007-04-23 Thread Dave Newton
--- Mark Menard <[EMAIL PROTECTED]> wrote: > On 4/23/07 5:37 PM, "chengas123" wrote: > value="orderDate" > /> > > That will do the date, there are some other formats > listed on the Wiki I > think. *shrug* Yes, and money is also supported (see thread from a week or two ago, but in a nutshell you

Re: [S2] Formatting inside Iterator tag

2007-04-23 Thread Martin Gainty
if you can somehow cast to bean you can use bean:write (with format option) //assuming this starts off as a hashtable Next element is http://www.servlets.com/archive/servlet/ReadMsg?msgId=361774&listName=struts-dev link courtesy of Martin Cooper Anyone? M-- This email message and any files tr

RE: [S2] Formatting inside Iterator tag

2007-04-23 Thread Rod Bollinger
The JSTL format tags are always a viable option as well. -Rod -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 18:31 To: Struts Users Mailing List Subject: Re: [S2] Formatting inside Iterator tag if you can somehow cast to bean you can use be

RE: Including javascript in a plugin

2007-04-23 Thread Kertis, Dennis
Actually, I have a lot of javascript in JS files and would like to be able to include them from an FTL file. But from looking at the plugin examples it doesn't seem like I am able to do this. Anyone have any ideas??? -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent:

Technology choice?

2007-04-23 Thread Sullivan, David
Hi, Does anyone know if I will run into problems (the really hard to solve kind) using the struts2 framework with EJB3 and the updated servlet2.5 and JSP2.1 jars with java 1.5 I am assuming that I wont. However many of the examples I have seen using the interceptor framework use Springs IoC conta

Could not load 'dojo.widget.html.Tooltip':last tried '__package__.js'

2007-04-23 Thread red phoenix
I want to use ajax in struts2,but when run my code like http://localhost:8080/test/index.html,it raise following Javascript error: Line:95 Char:1 Error:Could not load 'dojo.widget.html.Tooltip':last tried '__package__.js' Code:0 URL:http://localhost:8080/test/test/Test.action

Re: List of beans in a bean on a form

2007-04-23 Thread David Conrad
I added the tag i.e., It doesn't seem to have made any difference. I still get "customer[0].cost" instead of "firstLob.customer[0].cost". Is there something else I'm missing? Something I need to configure? Do I need to upgrade from 1.3.5 to 1.3

Set language in JSP

2007-04-23 Thread bjorn.de.bakker
I've encountered a rather annoying issue. To select the language in which our labels should be displayed, we use fmt:setLocale. Everything works fine, everybody's happy. But. To validate our forms, we use DynaValidator. In our webapp, we have 1 form which has only 1 field. When validation

How to realize ajax in struts2

2007-04-23 Thread red phoenix
I want to use ajax within Struts to realize following function,there is a textfield an a submit button which use register a username in a JSP page,then you can put you name into textfield and click register button,then will call ajax to search name is exist,if exist,there will be a message behind