Re: Problems with Struts 1.3.8

2007-09-04 Thread Antonio Petrelli
2007/9/4, Dave Newton <[EMAIL PROTECTED]>: > > --- "Slattery, Tim - BLS" wrote: > > But isn't 1.3.9 still beta? > > Looks that way. Anyway that problem is fixed. Tim, you may have two options: use 1.3.9 or wait untile 1.3.10 (or 1.4?) is released. Or don't use the "filter" attribute :-) Antonio

Re: struts 2 + tiles - add list in tiles definition

2007-09-04 Thread Antonio Petrelli
This is a Tiles 2 issue. Can you post it to the Tiles Users mailing list? http://tiles.apache.org/mail.html Antonio 2007/9/5, Mirbek Nosinov <[EMAIL PROTECTED]>: > hi everybody > > I need you help > so next is the problem > i use struts 2.0.9 together with tiles 2.0.4 > everything is ok, but whe

struts 2 + tiles - add list in tiles definition

2007-09-04 Thread Mirbek Nosinov
hi everybody I need you help so next is the problem i use struts 2.0.9 together with tiles 2.0.4 everything is ok, but when i have next definition for tiles and then i try to use this list in my jsp page and on this point i got the error: org.apache.tiles.TilesExc

RE: Problems with Struts 1.3.8

2007-09-04 Thread Dave Newton
--- "Slattery, Tim - BLS" wrote: > But isn't 1.3.9 still beta? Looks that way. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: YUI plug in display issue

2007-09-04 Thread Musachy Barroso
Are you applying any styles to it? musachy On 9/4/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use YUI calendar plug in. It works fine except that the > pop up calendar is as wide as the screen. It opened at the right > position, but extended past the visibl

YUI plug in display issue

2007-09-04 Thread Jiang, Jane (NIH/NCI) [C]
Hi, I am trying to use YUI calendar plug in. It works fine except that the pop up calendar is as wide as the screen. It opened at the right position, but extended past the visible area of the screen. Is there anything I can do to make it look right? Thanks, Jane ---

RE: Problems with Struts 1.3.8

2007-09-04 Thread Slattery, Tim - BLS
> 2007/9/4, Slattery, Tim - BLS <[EMAIL PROTECTED]>: > > /index.jsp(3): Error in using tag library > > uri='http://struts.apache.org/tags-html-el' prefix='html-el': type > > mismatch for property 'filter', for Tag class > > 'org.apache.strutsel.taglib.html.ELOptionTag': tld says boolean, > > imp

Re: Problems with Struts 1.3.8

2007-09-04 Thread Antonio Petrelli
2007/9/4, Slattery, Tim - BLS <[EMAIL PROTECTED]>: > /index.jsp(3): Error in using tag library > uri='http://struts.apache.org/tags-html-el' prefix='html-el': type > mismatch for property 'filter', for Tag class > 'org.apache.strutsel.taglib.html.ELOptionTag': tld says boolean, > implementation typ

Problems with Struts 1.3.8

2007-09-04 Thread Slattery, Tim - BLS
I'm trying to use Struts 1.3.8 with one of my applications. I copy the 1.3.8 libraries into the /WEB-INF/lib directory. When I try to run the app, I get this: Parsing of JSP File '/index.jsp' failed: /index.jsp(3): Error in using tag library uri='http://struts.apache.org/tags-html-el' prefix='h

S2 and FTL : parameters (issue?)

2007-09-04 Thread j alex
Please let me know if the following behavior is an issue or not : I've a form where validation needs to be enabled/disabled dynamically based on some condition. So, instead of having "validate" attribute within s:form, i'm having it as an s:param , like : ... ... ... ... In th

RE: Animated Tutorial for Struts2

2007-09-04 Thread Hayrol Reyes Mejía
Hi Mohammad, I have read your introductory Struts tutorial and I have the following comments: Good: 1).- The tutorial is a very good overview of Struts. 2).- The shapes used are all they corrects for my point of view. 3).- The flow of both scenario are very good, and show the process correctly. 4

Re: Animated Tutorial for Struts2

2007-09-04 Thread m . s . alavi
Hello Alexandre, Thanks for your attention. This problem that you pointed is because of inconsistency between open office and MS power point. According to your request I will upload the open office version of this tutorial as soon as possible. Another time, thanks a lot. --kin

Re: Animated Tutorial for Struts2

2007-09-04 Thread Alexandre Seabra
Hello Mohammad, I had some problems running your tutorial with Open Office. So, I am not sure that all images appeared correctly. For example, the animation of "class" variable when looking on struts.xml never appeared. I understood cause i new how it worked. The second scenario were more underst

Re: Re: xhtml problem

2007-09-04 Thread pablovb
I have the same problem as you had. I´d like to know if you had already solved it and, if so, I´d be very pleased if you send me a complete .jspx example. Thanks. Ray Clough wrote: > > That is absolutely my point. The jstl tags work seamlessly with the jsp > el, and allow very elegant solutio

Re: ServletRequestAware

2007-09-04 Thread Zarar Siddiqi
Try this guy: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html stanlick wrote: > > I have an action that determines the requester IP address. The action > implements ServletRequestAware, but I don't like it being all tangled up > in the Servlet

Re: How to access the ActionForm in a JSP?

2007-09-04 Thread Dave Newton
--- "REMIJAN, MICHAEL J [AG/1000]" wrote: > My question is how do get a reference to that action > object in the JSP page? The tutorials on the Struts2 > website showed examples using tags, but I > don't need to use tags. I just want to > display data. The current action is pushed on the OGN

Animated Tutorial for Struts2

2007-09-04 Thread m . s . alavi
Hi, Is there anybody who has read my tutorial. http://khorshid.ut.ac.ir/~m.s.alavi/Tutorial.zip I want to start to implement some plugin for eclipse that works like a debuger but an animated one. If you think that the shapes that was used in this tutorial is understandabl

Re: How to access the ActionForm in a JSP?

2007-09-04 Thread Frank W. Zammetti
Oh, you know what, my bad... I'm on vacation this week and my brain is shut down even more than some would say it normally is... you asked about Struts2, and I answered for Struts1. Sorry about that, ignore what I said. For S2, let's say you have a String property "name" on your HelloWorldAc

RE: How to access the ActionForm in a JSP?

2007-09-04 Thread REMIJAN, MICHAEL J [AG/1000]
So if I have "helloworld.action" defined as: /WEB-INF/jsp/helloworld.jsp Then I can retrieve the object with: MyActionForm form = (MyActionForm)request.getAttribute("helloworld"); ?? -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, Septembe

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Nils-Helge Garli
The portlet specification already defines how one should encode all elements of the page, using the portlet namespace mechanism. I guess we could use some sort of javascript to do this, but we'll have to find out what the best approach would be. The first step would be to implement the new s:html a

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Nils-Helge Garli
Hi James! Yes, that's also one of the reasons I suggested them. I have found a couple of articles related to loading of javascript libraries in a portlet environment, so we'll need to add some extra javascript code somewhere. I'll start looking into it in more detail after the 2.1 release. Nils-H

Re: [ot] multiple messages (Solved)

2007-09-04 Thread Antonio Petrelli
2007/9/4, Manu Mahajan <[EMAIL PROTECTED]>: > > Now I need to find an outlook mailing list or maybe it's time to shift to > thunderbird ;) Maybe this article can help you making the final decision :-) http://blogs.cnet.com/8301-13554_1-9770172-33.html Antonio

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Mark McLaren
Thanks Nils-H that makes sense. I'm not exactly sure how this would work but I was wondering if allowing JavaScript to dynamically create a random element id at runtime could solve the unique html id problem. For example, all AJAX divs with a given CSS className could have JS generated id at page

Re: How to access the ActionForm in a JSP?

2007-09-04 Thread Frank W. Zammetti
You can find the form as a request attribute with the same name you used in your config file, so: MyActionForm form = (MyActionForm)request.getAttribute("myFormName"); Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammet

How to access the ActionForm in a JSP?

2007-09-04 Thread REMIJAN, MICHAEL J [AG/1000]
Newbie question here. Suppose I have action, "helloworld.action" which I use to grab a bunch of data I wish to display on a JSP page. My question is how do get a reference to that action object in the JSP page? The tutorials on the Struts2 website showed examples using tags, but I don't need t

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread James Holmes
Hils-H, Could we solve some of these issues with your proposal for the , , etc.? It seems the first instance of using one of those tags would set a flag in the request or session that the Javascript had been loaded and we'd not output it again. We could also do something similar to what MyFaces T

RE: [ot] multiple messages (Solved)

2007-09-04 Thread Manu Mahajan
It seems that the error was coming from outlook. It's duplicating the incoming message. The same thing is working fine in thunderbird. Now I need to find an outlook mailing list or maybe it's time to shift to thunderbird ;) Sorry for the bother. Manu -Original Message- From: Manu Mahajan

Re: S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Nils-Helge Garli
Hi! > I also notice that the ajaxExample no longer appears in the subversion > repository. Are there other AJAX/portlet issues I should be aware of? > Ajax in a portlet, from a framework point of view, is not quite trivial. There are issues with namespacing of javascript functions, html ids and

Re: Displaytag problems

2007-09-04 Thread Toni Lyytikäinen
Yes, there are several approaches to it, using AjaxTags, Ajax Anywhere, YUI, Prototype etc. It might be possible to implement it in Dojo too, I don't know enough about Dojo to say anything certain. All solutions are somewhat hackish though, and I wouldn't really recommend using them. AjaxTags is th

Re: Displaytag problems

2007-09-04 Thread Didier Coignet
Yeah, if I leave the requestURI field empty it calls the action which loads the list from a webservice/database. But I already have so data, so I don't need to load the data again. This is why I created an empty action. After some copying from other struts actions and some republishing and restart

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
Well, yes. I tried putting format.baseValue in a package.properties file in the same folder as my action class, a MyAction.properties in the same folder, and a put the format.baseValue in the ApplicationResources.properties as well, and none of these worked. I get a {0} where the formatted value

[ot] multiple messages

2007-09-04 Thread Manu Mahajan
Hi All I had recently subscribed to the mailing list using this email id (earlier I had a subscription for another address). The problem is that I am getting two copies of all messages on *this* email id after subscription. I have tried to unsubscribe and then subscribe again but I'm still getting

Re: Formating dates and numbers

2007-09-04 Thread Nuwan Chandrasoma
Hi, Do you have a .properties file as same name as your action class and in the same package? Thanks, Nuwan Marcos Mendonça wrote: I tried that but all I get is a {0} where a formatted value should appear. Here's my jsp code: My ApplicationRes

Re: Formating dates and numbers

2007-09-04 Thread Marcos Mendonça
I tried that but all I get is a {0} where a formatted value should appear. Here's my jsp code: My ApplicationResources.properties file: format.baseValue = {0,number,R$##0.00} baseValue is of type BigDecimal. Is there anything wrong? Thanks in advan

Re: Using checkboxes

2007-09-04 Thread Pedro Herrera
Marcos, use this :: inte+ Herrera Marcos Mendonça wrote: > > Hello > > I'm trying to use checkboxes for a service/product selection. But > following the documentation I wasn't able to set the value of each > option. >

Re: [S2] Where to put hibernate's SessionFactory?

2007-09-04 Thread Antonio Petrelli
2007/8/31, wild_oscar <[EMAIL PROTECTED]>: > > I am making my first web app and I found out today I was doing something > wrong: > > I was building a SessionFactory on my HibernateEntityManager: > > _sessionFactory = configuration.buildSessionFactory(); > > This EntityManager is called on the actio

Re: [S2] Where to put hibernate's SessionFactory?

2007-09-04 Thread wild_oscar
I've created an Interceptor that takes care of creating a SessionFactory and putting it in the Application Context map. I have a question, though, about the application context. Does this mean the Session Factory is shared among every session of the application, regardless of the internet user th

Re: Struts and JNDI

2007-09-04 Thread Mary Poppins
Ray thanks for your response. I have solved the problem. FYI, I based the ThreadLocal variable solution on the HibernateUtil class developed by Christian Bauer one of the Hibernate Developers. The problem arose form another application that was being initialised directly after my web app. This ap

S2 portlet ajaxExample.jsp fix (?)

2007-09-04 Thread Mark McLaren
I am new to Struts 2 but have been a Struts bridge user for some time (and looking to migrate to Struts 2). I hope it is reasonable to expect that Struts2 portlets should work in "standalone" mode - i.e. not in a portlet container (a la Struts Bridge). I was having problems with ajaxExample.jsp f

Date validation (month and day)

2007-09-04 Thread Hiroyuki Suzuki
ello guys! How would I check my date input so that it will validate the maximum days per month. For example: Jan, Mar, May, Aug, Oct, Dec (31 days) April, June,Sept, Nov (30 days)... Please share me your ideas.. Addtional: Separate field name for month and day. Thank you Hiro -- View this me

Re: How to give a text field name dynamically?

2007-09-04 Thread Pooja Kaur
Try this: <% int i= 1; %> <% String propertyName = "Qn"+i; i++; %> Question Thanks On 8/31/07, Subhani Shaik <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have the following code... > >

Re: Formating dates and numbers

2007-09-04 Thread Nuwan Chandrasoma
http://www.roseindia.net/struts/struts2/struts-2-format.shtml Marcos Mendonça wrote: Hello How do I format dates and numbers with Struts2? I tried following this tutorial found on documentation but it didn't work. Could anyone point me to a working example or tell me how to do it. I did not wa