Execute And Wait AJAX

2011-01-28 Thread Emil Dombagolla
Dear all , I have used Execute and Wait interceptor for my data search. wait page is show the data found currently. but the problem is the page is refreshed since i used http meta tag to update the current state. i want to make the wait page AJAX. then without refreshing the page i can use the

Struts2 question: ModelDriven + s:select

2011-01-28 Thread Agoston Bejo
Hey there, here's my problem: a) the action: public class SomeAction ... implements ModelDrivenSomeModel { ... public SomeModel getModel() {...} ... } b) the model: public class SomeModel implements Serializable { ... public ListMap.EntryString, String getMessageTypes() { ... } public String

Why ActionProxy is used

2011-01-28 Thread Nuwan Arambage
Hi all , this might be a trivial question and I hope this is the right place to raise my question. Why do stuts2 implementers use ActionProxy. What is the purpose of the this class. I have read the description given in the core developer guide.Yet I didn't get the idea.I appreciate if somebody

Re: Why ActionProxy is used

2011-01-28 Thread Jordi Fernández
Have you already seen this? http://struts.apache.org/2.2.1/docs/big-picture.html On Fri, Jan 28, 2011 at 10:32 AM, Nuwan Arambage nuwan.aramb...@gmail.com wrote: Hi all ,  this might be a trivial question and I hope  this is the right place to raise my question. Why do stuts2 implementers use

Fwd: Why ActionProxy is used

2011-01-28 Thread Nuwan Arambage
yeah I got you idea. it does simplify the entire struts architecture. so thing is thing.. as a design decision , why struts2 designers made the it interceptor call via ActionProxy class.What is the fundamental reason for that thanks Nuwan -- Forwarded message -- From: Jordi

Re: Why ActionProxy is used

2011-01-28 Thread Jordi Fernández
ActionProxy is decorating (http://en.wikipedia.org/wiki/Decorator_pattern) the Action class you currently write by executing the interceptor stack defined by configuration in struts.xml. On Fri, Jan 28, 2011 at 12:05 PM, Nuwan Arambage nuwan.aramb...@gmail.com wrote: yeah I got you idea. it does

Re: Why ActionProxy is used

2011-01-28 Thread Dave Newton
On Fri, Jan 28, 2011 at 6:05 AM, Nuwan Arambage wrote: it does simplify the entire struts architecture. [...] why struts2 designers made the it interceptor call via ActionProxy class.What is the fundamental reason for that Didn't you just answer your question? Perhaps the web can assist in

Fwd: Why ActionProxy is used

2011-01-28 Thread Nuwan Arambage
yes . I got it.. then I do have a another simple question. how does ActioProxy is created. is it a bytecode manipulation or other technique ?. I just need to clear things out Thanks Nuwan -- Forwarded message -- From: Jordi Fernández jordi.fernan...@esilog.com Date: 2011/1/28

Re: Why ActionProxy is used

2011-01-28 Thread Dave Newton
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionProxy.html http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionProxy.html Dave On Fri, Jan 28, 2011 at 6:57 AM, Nuwan Arambage nuwan.aramb...@gmail.comwrote: yes . I got it.. then I do

Re: Why ActionProxy is used

2011-01-28 Thread Jordi Fernández
Via a Factory: http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/Dispatcher.java Look for config.getContainer().getInstance(ActionProxyFactory.class).createActionProxy(... Jordi. On Fri, Jan 28, 2011 at 12:57 PM, Nuwan Arambage

RE: AJAX Sessions

2011-01-28 Thread Biesbrock, Kevin
I'm so glad I follow this mailing list! I wasn't looking for this answer, but This is quite helpful! Thank you, Chris! Beez -Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Friday, January 28, 2011 12:08 AM To: Struts Users Mailing List Subject: Re: AJAX

Re: AJAX Sessions

2011-01-28 Thread Dale Newfield
On 1/27/11 9:28 PM, CRANFORD, CHRIS wrote: 2. Does HttpSession contain value holding time of last User request? No - Create one, store it in session, proceed Shouldn't that - LOGIN instead of proceed? -Dale - To

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Anjib Mulepati
Can anyone help to get this simple program run? Thanks Anjib On 1/27/2011 4:37 PM, Anjib Mulepati wrote: 1. JSP Files = a) Calling page - %@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean % %@ taglib uri=http://struts.apache.org/tags-html; prefix=html %

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Dave Newton
On Fri, Jan 28, 2011 at 9:50 AM, Anjib Mulepati wrote: Can anyone help to get this simple program run? I suspect you mean run correctly. When I run this app I get null as result. When describing a problem it's helpful to be specific: while reading the code leads me to *believe* what you mean

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Anjib Mulepati
1. . when you try to display a bean property in your JSP you're not seeing the value you expect in the browser. Yes, I set the bean value in execute() method and I am trying to get that display in JSP result page. 2. You also submit a form, and you might mean that the form isn't being

Convention plugin vs. wildcard mapping

2011-01-28 Thread stanlick
When it comes to an existing wildcard action mappings in XML (customer_*) where you have several methods in the Customer action, would this require an annotation on each of the methods in the action if this were to be converted to convention? If so, I get the impression this is a case where the

Localization for SiteMesh decorators

2011-01-28 Thread struts . rgm
This seems like a documentation bug. This page: http://struts.apache.org/2.2.1.1/docs/localization.html Says Internationalizing SiteMesh decorators is possible, but there are quirks. See SiteMesh Plugin for more. Unfortunately, the link in the documentation is invalid. After using Google to

Re: [S 1.3.8] Simple Struts Example

2011-01-28 Thread Dave Newton
On Fri, Jan 28, 2011 at 11:40 AM, Anjib Mulepati wrote: So what will be the solution to issue #3? Put the bean into the session. Dave

Re: Convention plugin vs. wildcard mapping

2011-01-28 Thread Dave Newton
Better in some regards, probably, yep. I've never been convinced that route maps belong in class files, although XML doesn't do much for me either. Dave On Jan 28, 2011 1:23 PM, stanl...@gmail.com wrote: When it comes to an existing wildcard action mappings in XML (customer_*) where you have

[OT?] standalone jsp

2011-01-28 Thread Dave Evans
Hello, Does anyone know of any way of using the jstl core library and el for generic templating tasks? Specifically I need to use a templating language to create the body of an email. I'd like to use the jstl el and the c:if and c:forEach tags to do it. I seem to remember some sort of jsr aiming

Another Date Time Format

2011-01-28 Thread Nick Broadhurst
Hi, I am displaying two date-time fields from my demographics object which populates from the DB: s:date name=demographics.creationDate/ s:date name=demographics.lastModificationDate/ Both fields show the full date and time. Perfect. I need the creation date to go back in unchanged on form

Re: Another Date Time Format

2011-01-28 Thread Brajesh Patel
I think it is possible with transient if you don't want to change field in the data base then use variable as transient. On Sat, Jan 29, 2011 at 9:58 AM, Nick Broadhurst hou1...@gmail.com wrote: Hi, I am displaying two date-time fields from my demographics object which populates from the

Re: [OT?] standalone jsp

2011-01-28 Thread Maurizio Cucchiara
Personally, I prefer velocity [1] or freemarker [2]. They have a good learning curve (especially velocity), they were designed for templating tasks and yes, both of them have the tags you mentioned. [1] http://velocity.apache.org/ [2] http://freemarker.sourceforge.net On 29 January 2011 05:25,

Re: Another Date Time Format

2011-01-28 Thread Maurizio Cucchiara
As far as I can remember you could use var parameter in order to reference a date variable from the value stack. Try something like this: s:date name=demographics.creationDate format=dd/MM/ hh:mm *** var=creationDate/ s:hidden name=demographics.creationDate value=#creationDate/ *** I'm not