Re: update a complex object through struts2

2011-03-20 Thread maven apache
à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > > > From: apachemav...@gmail.com > > Date: Sun, 20 Mar 2011 19:20:54 +0800 > > Subject: Fwd: update a complex object through struts2 > > To: us

Fwd: update a complex object through struts2

2011-03-20 Thread maven apache
-This post is orignal sent to Martin Gainty. It seems he maybe busy now,so I post it to the list and wonder if any other guys can do me a favor. --- -- Forwarded message -- From: maven apache Date: 2011/3/19 Subject: Re: update a complex object

Re: update a complex object through struts2

2011-03-18 Thread maven apache
Hi: I update my question and make a simple example, Please take a look this example:http://jsfiddle.net/mbwwg/ Suppose the name of the task is "Task1",it belog to Department2,and it own two tasksteps(step01 and step02). And the operators of step1 contain "jhon" and "bill",while the step02 contai

update a complex object through struts2

2011-03-17 Thread maven apache
Hi: I meet some problem when I use struts as the mvc framework in my app, They are the core classes: *Task{ private int id; private String name; private List steps; } TaskStep{ public int id; private String name; private Date startDate; private TaskStatus status; private List

iterate the list values defined inthe tile

2011-02-15 Thread maven apache

iterate the list values defined inthe tile

2011-02-15 Thread maven apache

Re: Why do we need the set/push tag?

2011-01-06 Thread maven apache
it the action's **responsibility to prepare the data which to be used in the view/page? so you can write generic, reusable jsp code (like > fragments, etc.) that doesn't reference the object name directly and > instead operates only on its generic properties. > > - Aaron > > O

Why do we need the set/push tag?

2011-01-06 Thread maven apache
Hi I am learning the struts tag,however I can't understand why we need the set/push/bean tag? In my opinion,the views like jsp just need to pull data from the Actioncontext and render them. What's the advantage of pushing new data to context? I am using my phone to ask this question,so I can't expr

How to save the valuestack when using the redirectaction result type

2010-12-28 Thread maven apache
Hi: In my application I first use the chain result type for one action:"loginSub". If login success,user should be taken to the manager page. This is the core content in struts.xml: . manager /secure /

Re: change the filename to be downloaded

2010-12-28 Thread maven apache
2010/12/29 Dave Newton > I didn't misunderstand you at all; now you're asking a different question. > > Have you checked that the content type is correct in the headers? > :) Thanks, I will have a try. > > Dave > On Dec 28, 2010 7:18 PM, "maven

Re: change the filename to be downloaded

2010-12-28 Thread maven apache
t; > On Tue, Dec 28, 2010 at 7:35 PM, maven apache >wrote: > > > Hi jlmagc: > > > > How do you set the contenttype in the result of the action? > > > > 2010/12/27 maven apache > > > > > > > > > > > 2010/12/27 > > &g

Re: change the filename to be downloaded

2010-12-28 Thread maven apache
Hi jlmagc: How do you set the contenttype in the result of the action? 2010/12/27 maven apache > > > 2010/12/27 > >> That's right. I don't have access to the code now, but I will try to send >> it later. Check the syntax, I'm sure you will find some >

Re: change the filename to be downloaded

2010-12-27 Thread maven apache
2010/12/27 > That's right. I don't have access to the code now, but I will try to send > it later. Check the syntax, I'm sure you will find some No hurry. :) Thanks. > examples > Sent via BlackBerry from T-Mobile > > -----Original Message- > From: ma

Re: change the filename to be downloaded

2010-12-27 Thread maven apache
BlackBerry from T-Mobile > > -Original Message- > From: maven apache > Date: Mon, 27 Dec 2010 19:26:16 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: change the filename to be downloaded > > Hi: > In myapplication,I h

change the filename to be downloaded

2010-12-27 Thread maven apache
Hi: In myapplication,I have to generate a ms-word file(I use the apache poi). 1)first I save the generated file to disk. 2)set the inputstream according to the file.Of course,the action result type is already set to stream. here is a exmapleI found about file downing: http://www.mkyong.com/struts2

Re: any option parameter for populating parameters to my bean?

2010-12-09 Thread maven apache
2010/12/9 Dave Newton > Strange, I believe this question was asked by someone else with no name-- > try > searching the archives. > How? Using the nabble? I can not access Nabble.com :( > > Dave > > On Thu, Dec 9, 2010 at 4:37 AM, maven apache > wrote: >

Re: any option parameter for populating parameters to my bean?

2010-12-09 Thread maven apache
ks like depends on the "Locale > associated with the current request". > So, the format it takes will vary. > > If you want this, you need *create a new converter* which takes a fixed > date format. > Thanks,This is just what I need. > > I did this before, it

any option parameter for populating parameters to my bean?

2010-12-09 Thread maven apache
My action: public class MyAction{ private MyBean bean; //getter setter. } public class MyBean{ private Date start; //setter getter } If the value of start is '2010-12-12 12:00:00',the parmameter start can be populated to my bean correctly,however if the format is '2010/12/12 12

the result of the interceptor

2010-12-04 Thread maven apache
Hi: I am reading the book Struts2InAction,it is rather powerful. And I thought someting funny when reading the interceptor chapter: Example: public String intercept(ActionInvocation invocation) throws Exception { long startTime = System.currentTimeMillis(); //1 String result = invocation

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Thanks! So the way I use the interceptor is right? Nothing have to be changed except saving the session id intead of sessin it self? 2010/12/3 Li Ying > I read your code, and noticed one thing. > > You saved the whole HttpSession instance in Map, this will waste memory. > > The information you

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
vletActionContext.html > > And then, you can get the HttpSession from > HttpServletRequest.getSession(); > > See: > > http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html > > > > > 2010/12/2 maven apache : > > Thanks,your an

Re: any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Thanks,your answer can not be detailed more. :) only a little confused. Map attibutes = ActionContext.getContext().getSession() I can get the session this manner,but it seems that it is a Map,not a HttpSession,so what is the id? I have debug the session yet,and I found there is a property in th

any ideas about handle user's relogin using interceptor?

2010-12-02 Thread maven apache
Hi: In our application,if user logined in one browser or computer,then he/she login in another brower/computer,the first login information should be removed. For example. User login in computer A,then he did not logout and then login in computer B,then if he back to computer A do some Authorizatio

Re: binding paramters in struts2 without the form

2010-12-01 Thread maven apache
struts.apache.org/2.2.1/struts2-core/apidocs/com/opensymphony/xwork2/ModelDriven.html > > 2010/11/29 maven apache : > > > Maurizio Cucchiara's answer seems like a good idea excepting I have add > the > > personbean.name=xxx. (The personBean is required) > > > &g

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
terAware,why not using the ActionContext.getcontext().getParameters() instead? > > Jason > > On Mon, Nov 29, 2010 at 5:25 AM, maven apache >wrote: > > > 2010/11/29 Maurizio Cucchiara > > > > > Frankly, even after I watched your question on stackoverflow, I

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
Thanks. > struts will try to inject value inside your bean. > > Does this answer your question? > > 2010/11/29 maven apache : > > BTW,this is a cross post at > > stackoverflow< > http://stackoverflow.com/questions/4300409/binding-paramters

Re: binding paramters in struts2 without the form

2010-11-29 Thread maven apache
BTW,this is a cross post at stackoverflow<http://stackoverflow.com/questions/4300409/binding-paramters-in-struts2-without-the-form> . 2010/11/29 maven apache > > > > > > > > > > public class Register extends ActionSupport { > > >

binding paramters in struts2 without the form

2010-11-29 Thread maven apache
public class Register extends ActionSupport { private static final long serialVersionUID = 1L; private Person personBean; // } Using the s:form tag one can bind the parameter from the client to a java object(the personBean in the Register acti

Re: how does the namespace work in struts

2010-11-05 Thread maven apache
rm are submitted by a ajax request,so how about the s2 tag at this moment? > Furthermore they are not hard to learn (take a look at > http://struts.apache.org/2.2.1/docs/tag-reference.html) > > 2010/11/5 maven apache : > > :) > > > > In fact the reason I do not want

Re: how does the namespace work in struts

2010-11-05 Thread maven apache
mechanism of the action mapping,then I will use the tag :) 2010/11/5 Maurizio Cucchiara > Struts tags are not mandatory in order to deploy an application, but > as Li suggested make your life easier :) > > 2010/11/5 maven apache : > > Thanks for all your guys reply. > > >

Re: how does the namespace work in struts

2010-11-05 Thread maven apache
Thanks for all your guys reply. That's to say I have no choice but using the struts tag if I decide to use the struts?? 2010/11/5 Li Ying > >> > > This HTML code, will post your form to the RELATIVE path [space/register]. > So, the ABSOLUTE path which is requested will depend on the current >

how does the namespace work in struts

2010-11-05 Thread maven apache
I meet some problem when I try to learn the namespace of struts2,I am using struts-2.2.1. After read the docs at: http://struts.apache.org/2.2.1/docs/namespace-configuration.html I am confused for the following reason: The example: greeting.jsp bar1.jsp