ActionMessages not displaying

2006-12-19 Thread Kranti
I am trying to get the action messages from action class as follows but not getting the message but record is inserted properly *in action class* if(isInserted==true){ ActionMessages addTaskMessages = new ActionMessages(); addTaskMessages.add(addtasksuccess, new ActionMessage(

bean method don't make function in Struts2

2006-12-19 Thread red phoenix
I use struts2 s:bean,like follows: ---SimpleCounter--- package test; public class SimpleCounter{ String foo; public void setFoo(String foo){ System.out.println(set foo=+foo); this.foo=foo; } public String getFoo(){ System.out.println(get foo=+foo); return foo; } } ---test.jsp--- %@ taglib

RE: where to download struts2.0 examples files?

2006-12-19 Thread Sakari.Isoniemi
Weren't they in Struts2 distribution ...\apps ? /S -Original Message- From: red phoenix [mailto:[EMAIL PROTECTED] Sent: 19. joulukuuta 2006 9:49 To: Struts Users Mailing List Subject: where to download struts2.0 examples files? In struts doc,I often see

Re: bean:write in struts2

2006-12-19 Thread Antonio Petrelli
red phoenix ha scritto: I want to change my code from struts1 to struts2,I use displaytag and bean:write to show following code,it can run well,bean:write name=element property=ID/ will show 1,2, I think it is better wo use JSTL c:out tag:

Re: ActionMessages not displaying

2006-12-19 Thread Niall Pemberton
Try changing to use the name attribute instead of property on the messagesPresent and messages tags: logic:messagesPresent message=true name=addTaskMessages html:messages name=addTaskMessages message=true id=addtasksuccess bean:write name=addtasksuccess/br/ /html:messages

Re: where to download struts2.0 examples files?

2006-12-19 Thread red phoenix
Struts2 distributes apps only struts2-blank-2.0.1,struts2-mailreader-2.0.1, struts2-portlet-2.0.1 and struts2-showcase-2.0.1,I can't find org.apache.struts2.example.* files! On 12/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Weren't they in Struts2 distribution ...\apps ? /S

Re: ActionMessages not displaying

2006-12-19 Thread Kranti
Hey niall, its working! Thanks On 12/19/06, Niall Pemberton [EMAIL PROTECTED] wrote: Try changing to use the name attribute instead of property on the messagesPresent and messages tags: logic:messagesPresent message=true name=addTaskMessages html:messages name=addTaskMessages

Chains - 1.3.5

2006-12-19 Thread Joseph McGranaghan
This should be simple, but for the life of me I can't get find the answer. All I want to do is have a chain execute and then go to an action forward Right now it goes through the chain and outputs a blank web page with no source code at all. struts-config: action

Re: Chains - 1.3.5

2006-12-19 Thread Joseph McGranaghan
Solved my problem: ActionContext ac = (ActionContext)context; ac.setForwardConfig(new ActionForward(/myaction.do)); If anyone has a cleaner, non-hardcoded my, I'm all ears! Thanks, Joe Joseph McGranaghan wrote: This should be simple, but for the life of me I can't get find the

Re: where to download 1.3.6 - broken link ?

2006-12-19 Thread Lixin Chu
thanks for your clarification ! On 12/19/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 12/18/06, Lixin Chu [EMAIL PROTECTED] wrote: the linked provided on WiKi seems broken: http://people.apache.org/builds/struts/1.3.6 http://people.apache.org/builds/struts/1.3.6 are we going to have

Recovery of data whith MySql

2006-12-19 Thread Nabil ALI-MOUSSA
Hi all, I make a request in my dB MySql with a variable date : PersistenceManager pm=JDOFactory.getInstance().getPM(); pm.currentTransaction().begin(); Collection c = (Collection) pm.newQuery(SuiviTraitement.class, 'date'=='+date+').execute(); //(-mm-dd)

Re: Chains - 1.3.5

2006-12-19 Thread Niall Pemberton
On 12/19/06, Joseph McGranaghan [EMAIL PROTECTED] wrote: Solved my problem: ActionContext ac = (ActionContext)context; ac.setForwardConfig(new ActionForward(/myaction.do)); If anyone has a cleaner, non-hardcoded my, I'm all ears! Can you not just do this as one action mapping and specify

RE: if in Struts2

2006-12-19 Thread Dave Newton
From: red phoenix [mailto:[EMAIL PROTECTED] % request.setAttribute(tt,new String(1)); % body s:if test=Session.tt?exists Request and session are different? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[s2]Portlet support

2006-12-19 Thread Asthana, Rahul
Hi, I dont know anything about portlets,but our project may have to migrate to it in future..This line is from the Struts 2 features.What does it mean? Easy portlets - Automatic portlet support allows portal and servlet deployments with no code changes. thanks Rahul

Struts2 Validation troubles

2006-12-19 Thread Holl Gerald
Hello, I tried a little example on validation with struts2. Here is the Login.jsp: %@ taglib prefix=s uri=/struts-tags % html head titleLogin/title /head body h2Login/h2 s:form id=login action=Login

Re: Chains - 1.3.5

2006-12-19 Thread Joseph McGranaghan
Yes, that works perfectly! A whole lot cleaner too. Now people will find this in the archives. Thanks, Joe Niall Pemberton wrote: On 12/19/06, Joseph McGranaghan [EMAIL PROTECTED] wrote: Solved my problem: ActionContext ac = (ActionContext)context; ac.setForwardConfig(new

struts 2 with jsf as plugin

2006-12-19 Thread robin bajaj
hi All, I heard that Struts2 can use JSF components selectively on per-page basis. Does this mean, I can use any JSF distribution including ICESoft, MyFaces, Sun's JSF RI etc. or does it have any limits as per the JSF distro is concerned. And can we mix match using a couple of distros, ie.

Re: struts 2 with jsf as plugin

2006-12-19 Thread Don Brown
The Struts 2 JSF plugin doesn't depend on any specific JSF implementation, so you should be able to use the one of your choice. As for whether multiple implementions can live together, if it is usually possible in the JSF world, then it should be possible here. As for JSF support in Struts

struts row rags

2006-12-19 Thread Meenakshi j
Hello, I am new to struts and would like to change the code below logic:iterate indexId=idx id=director name=ProposalSummaryForm property=directors % if ( ((idx.intValue())%2) == 0 ) { % tr class=evenrow % } else

Re: struts row rags

2006-12-19 Thread Laurie Harper
Meenakshi j wrote: Hello, I am new to struts and would like to change the code below logic:iterate indexId=idx id=director name=ProposalSummaryForm property=directors % if ( ((idx.intValue())%2) == 0 ) { % tr class=evenrow

Re: initialize a DynaValidatorForm property

2006-12-19 Thread Laurie Harper
Pille wrote: And in the action mapping specify the name of the Form Bean that you are about to use. In this case the form bean that contains the List you'r going to initiate.. i tried all of this. when i spcified the name of DynaValidatorForm in the prepare-mapping i got an exception. but it

Re: bean:write in struts2

2006-12-19 Thread Laurie Harper
red phoenix wrote: I want to change my code from struts1 to struts2,I use displaytag and bean:write to show following code,it can run well,bean:write name=element property=ID/ will show 1,2, %@ taglib uri=/struts-tags prefix=s % display:table name=testList export=false sort=external

Re: bean method don't make function in Struts2

2006-12-19 Thread Laurie Harper
red phoenix wrote: I use struts2 s:bean,like follows: ---SimpleCounter--- package test; public class SimpleCounter{ String foo; public void setFoo(String foo){ System.out.println(set foo=+foo); this.foo=foo; } public String getFoo(){ System.out.println(get foo=+foo); return foo; } }

Re: struts row rags

2006-12-19 Thread Meenakshi j
Hi Thanks for your help. I want to get rid of % if ( ((idx.intValue())%2) == 0 ) { % tr class=evenrow % } else { % tr class=oddrow % } % and

Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Piero Sartini
Hello list, the last days I've read a lot about web frameworks in java. And the more I read, the more questions I have. Just writing this down, maybe someone has some thoughts that can help me. My problem is simple, or lets say it should be simple: What webframework is a good choice to start

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Don Brown
It isn't an either/or question. You can use JSF actions, components, and configuration in a Struts 2 app, using the Struts 2 JSF Plugin. If you prefer an action-centric design, but want to use JSF components, then it is worth looking into. If you want a pure JSF approach, especially if you have

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread robin bajaj
Hi there, May I ask a corollary question in this context. What is the current status of Shale, is it build on top of SUN's JSF Ref. Implementation or MyFaces or Can I just use any JSF distro with Shale. Thanks for your replies in advance, regards robin On 12/19/06, Don Brown [EMAIL PROTECTED]

RE: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Asthana, Rahul
The roadmap has info pertaining to this thread. http://struts.apache.org/roadmap.html -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 6:04 PM To: Struts Users Mailing List Subject: Re: Struts2, Shale, Seam, pure JSF - what to use? Hi

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Don Brown
Off topic, but AFAIK, Shale doesn't depend on any specific JSF implementation. It's goal is to fill in the gaps in the JSF spec/framework for the user. Don On 12/19/06, robin bajaj [EMAIL PROTECTED] wrote: Hi there, May I ask a corollary question in this context. What is the current status

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Don Brown
I should add, it therefore would be possible to run Struts 2, Shale, and JSF in the same application. :) Don On 12/19/06, Don Brown [EMAIL PROTECTED] wrote: Off topic, but AFAIK, Shale doesn't depend on any specific JSF implementation. It's goal is to fill in the gaps in the JSF

[OT] ajaxArea embedded with displayTag

2006-12-19 Thread Joseph McGranaghan
I'm trying to use an ajaxArea for the main portion of my site. Inside it I have control panel of several tiles. One of the tiles contains a displayTag that I want ajaxified unto it's own self, not the whole main ajaxArea. Matter of fact, I can't even get it to work right with the enclosed

Re: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Musachy Barroso
I don't think ajax:area is an S2 tag. Is that form another ajax library? regards musachy Joseph McGranaghan wrote: I'm trying to use an ajaxArea for the main portion of my site. Inside it I have control panel of several tiles. One of the tiles contains a displayTag that I want ajaxified unto

Re: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Joseph McGranaghan
No it's from the AjaxTags project. I tried to post to JWP mailing list but got bounce for some reason, hence the [OT] I use struts 1.3.5 though, not s2 Musachy Barroso wrote: I don't think ajax:area is an S2 tag. Is that form another ajax library? regards musachy Joseph McGranaghan

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Craig McClanahan
On 12/19/06, Don Brown [EMAIL PROTECTED] wrote: It isn't an either/or question. You can use JSF actions, components, and configuration in a Struts 2 app, using the Struts 2 JSF Plugin. If you prefer an action-centric design, but want to use JSF components, then it is worth looking into. If

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Ted Husted
On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote: Hello list, the last days I've read a lot about web frameworks in java. And the more I read, the more questions I have. Just writing this down, maybe someone has some thoughts that can help me. My problem is simple, or lets say it should be

Re: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Musachy Barroso
If you put the displayTag inside the ajax:area it won't get reloaded after the ajax call, what you can do is put the displayTag on a page let's say A, the create a page B that has: ajax:area .. %@ include file=A.jsp % //or call the action here /ajax:area then create an action, that the

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Piero Sartini
JSF is considered a MVC framework, just as ASP.NET is a MVC framework. These frameworks are component-centric. You build pages by assembling components, and the components can each fire their own actions to obtain and maintain state. Frameworks like Struts and Spring MVC are action-centric.

basic JSTL question

2006-12-19 Thread Rick Schumeyer
These should be easy questions, but I can't find the answers...if someone could either answer them or point me to the right docs, I would appreciate it. 1. What is the proper uri for the jstl core library? According to my JSP book it should be %@ taglib prefix=c

Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Piero Sartini
As Don mentions, you can use JSF components with Struts2 pretty easily, and that can be a good avenue if you primarily want JSF for the visual components part, and don't need/want the managed beans and lifecycle controller parts. If a framework on top of JSF is what you are after (which is a

Re: basic JSTL question

2006-12-19 Thread Wendy Smoak
On 12/19/06, Rick Schumeyer [EMAIL PROTECTED] wrote: These should be easy questions, but I can't find the answers...if someone could either answer them or point me to the right docs, I would appreciate it. 1. What is the proper uri for the jstl core library? According to my JSP book it should

Re: basic JSTL question

2006-12-19 Thread Rick Schumeyer
Never mind! The solution involved some not-so-obvious steps 1. download and install the jstl (ok, this should have been obvious) 2. Change the top of my web.xml (this was not obvious...see http://forum.java.sun.com/thread.jspa?threadID=629437tstart=0) 3. read the docs on jstl and FormBeans

RE: [OT] ajaxArea embedded with displayTag

2006-12-19 Thread Sakari.Isoniemi
Hai A trivial question ? I have a problem with DisplayTags (DT) in Struts2 where OGNL throws exception from DT- parameter like 'o-434343-p'. (See discussion Struts2, DisplayTags OGNL-error Sakari.Isoniemi ) So the solution is to use Ajax to bybass Struts2-frame and OGNL ? /S -Original

For Viewing data DynaValidatorForm not working, why?

2006-12-19 Thread Mallik
HI Friends i have a problem that for viewing data DynaValidatorForm is not working well. if i create normal formbean it is displaying all the data well but when i use DynaValidatorForm, the last record only displaying repeatedly (exactly oracle count(*) returned value times ) why this is ? i

RE: Struts2, DisplayTags OGNL-error

2006-12-19 Thread Sakari.Isoniemi
Hai The OGNL-StackTrace disappeared without changing the implementation to Ajax when I set in Struts.properties dev mode=false ( struts.devMode = false ) So, there seems to be a problem with S2 / OGNL that appears in DevMode but don't prevent correct functionality in application to user.