[S2] paramsPrepareParamsStack and validation

2007-05-27 Thread Will Smith
I don't quite understand how the validation is handled when using the paramsPrepareParamsStack. I have an action with a view() method that will be called via a get request specifying a blog id (blog.id) which should be numeric. This is working, but I want to make sure that if someone passed in an

Re: Optiontransferselect button customization.

2007-05-27 Thread Vijay Prajapati
Jeromy, I have done it. Thank you very much for your efforts to provide me a solution. Vijay On 5/25/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: Vijay, For the last time, the doubleId attribute of optiontransferselect works in struts 2.0.6. I provided you with code from a live system th

Re: S2 tag property calls with arguments?

2007-05-27 Thread Sami Dalouche
Hi, OGNL is yet another language that one can use to access properties and methods. You can see it as a simplified language (like Groovy or Java itself) that is focused on data binding. To KISS, in Java, you would access your properties using : obj.getProperty1().getProperty2().methodCall() i

Multiple upload using Struts 1.0

2007-05-27 Thread Vikash Manoranjan
Hi all, We have very urgent requirement for multipe file upload option using Struts 1.0. The number of files to be uploaded will be decided at run-time. Kindly help me. Its very urgent waiting for reply... Thanks and Regards, Vikash Manoranjan Senior Software Engineer Infotech Enterp

Problem to subscribe a topic when trying to subscribe from an ajax called page.

2007-05-27 Thread Guillote
What am i trying to do? -I need to publish a topic (dojo.event.topic.publish) on the event onchange of a select tag. The workflow is: -First i access an action that prints index.jsp page. -Then from that index.jsp i have a link (ajax) that loads an action in a div (id="my

Re: S2 tag property calls with arguments?

2007-05-27 Thread Torsten Römer
Thanks Sami, That did definetely help, was just what I was looking for! > In Struts2, properties are accessed using the OGNL language Somehow I haven't really realized what this actually means... Torsten Sami Dalouche schrieb: > Hi, > > Not sure if I understand your question correctly, but it

Re: S2 tag property calls with arguments?

2007-05-27 Thread Sami Dalouche
Hi, Not sure if I understand your question correctly, but it seems you are trying to make a Java method call from your View. In Struts2, properties are accessed using the OGNL language. The OGNL reference is available from http://www.ognl.org/. In particular, it is possible to make any method ca

S2 tag property calls with arguments?

2007-05-27 Thread Torsten Römer
I guess this has been asked before but I have trouble finding an answer, if it is somehow possible to give arguments to property calls in tags. For example, if I'd have "vehicles" as list attribute in , that I could give literal arguments like "car" or "motorcycle" and have a method like getVehicle

Re: [S2] Session Beans - how to make?

2007-05-27 Thread Henry F. Camacho Jr.
I create a session class that tracks all my session information needed for each user. Since you will likely be in a action object when you want this information, you can do something like the following: Here is my session object called SessionVars. import javax.servlet.http.*; public class Se

Struts2 : create URLs programmatically

2007-05-27 Thread Sami Dalouche
Hi, In order to generate some emails (and other similar things), I would need to output the URL of some Struts2 actions. Of course, the URLs depend on the chosen ActionMapper, and I'd like my generated URLs to be compliant with the configured ActionMapper. The Component class seems to contain th

Re: how to embed struts tag inside JSP?

2007-05-27 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > inside JSP, actually what i try to do is the > following: > > inside JSP: > >... >if (result.compareTo("Success")==0) { > out.println("); >else > ... Well, that's probably a sub-optimal solution for a lot of reasons. If you

Re: how to embed struts tag inside JSP?

2007-05-27 Thread john lee
inside JSP, actually what i try to do is the following: inside JSP: ... if (result.compareTo("Success")==0) { out.println("); else ... john Dave Newton <[EMAIL PROTECTED]> wrote: --- john lee wrote: > I try to embed struts tag inside JSP Normally you "embed a

Re: how to get basename of the invoking program name ?

2007-05-27 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > could u tel me how ? http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html d. > Dave Newton <[EMAIL PROTECTED]> wrote: > --- john lee wrote: > > so, what is the correct way to extract basename of > > the involing program in s

Re: how to embed struts tag inside JSP?

2007-05-27 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > I try to embed struts tag inside JSP Normally you "embed a tag" inside a JSP by just using the tag, like you're supposed to. For example: ... etc ... > but looks like not works? how come? any idea? Because you have a fundamental misconception abou

Re: how to get basename of the invoking program name ?

2007-05-27 Thread john lee
could u tel me how ? john Dave Newton <[EMAIL PROTECTED]> wrote: --- john lee wrote: > String why=(String) PageContext.getPage(); > > but receive the following error message > > can not make a static reference to the non-static > methoid getPage() from the type pageContext, Do you under

Re: how to get basename of the invoking program name ?

2007-05-27 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > String why=(String) PageContext.getPage(); > > but receive the following error message > > can not make a static reference to the non-static > methoid getPage() from the type pageContext, Do you understand why you're getting that error? > so

how to embed struts tag inside JSP?

2007-05-27 Thread john lee
I try to embed struts tag inside JSP, but looks like not works? how come? any idea? out.println(""); but not working. tks in advance john - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & mor

how to get basename of the invoking program name ?

2007-05-27 Thread john lee
I try to use following method to get basename of the invoking program name inside JSP/struts, String why=(String) PageContext.getPage(); but receive the following error message can not make a static reference to the non-static methoid getPage() from the type pageContext,

Re: [S2] Session Beans - how to make?

2007-05-27 Thread Mansour
yitzle wrote: Hi all. I'm a Struts Newbie here, so I apologize for the stupid question ;) I'm working on making a fairly large Struts project. Most data will be passed from one page/JSP to the next. The login info has to be available on the server at every action. How do I make a session bean or

Re: Design patterns for communicating between actions

2007-05-27 Thread Mansour
Yoni Amir wrote: Hello, I am working on my first struts application, and I was wondering about design patterns for communicating between actions. For example, I have actions A and B. A runs first and creates some data (e.g., You have few opions here, you can you action chaining: http://struts.

Re: Design patterns for communicating between actions

2007-05-27 Thread Yoni Amir
The latest struts 2, I think it's 2.0.6 ... and 'hely' was a typo for 'help', of course :) On 5/27/07, Mansour <[EMAIL PROTECTED]> wrote: Which version of struts are you using? Yoni Amir wrote: > Hello, > > I am working on my first struts application, and I was wondering about > design pattern

Re: Design patterns for communicating between actions

2007-05-27 Thread Mansour
Which version of struts are you using? Yoni Amir wrote: Hello, I am working on my first struts application, and I was wondering about design patterns for communicating between actions. For example, I have actions A and B. A runs first and creates some data (e.g., a session bean). When B runs,

Have a favorite bug? Please vote!

2007-05-27 Thread Don Brown
The issue tracker Struts uses [1], JIRA, has the ability to collection "votes" on bugs, features, and improvements. As a Struts developer, when I have a rare spare moment, I sometimes tackle a few tickets that have the most votes. So, if there is any particular feature or bug you'd like to be ad

Re: [ANN] "Starting with Struts2" Book

2007-05-27 Thread Manfred Wolff
I've fixed it myself. With the internet explorer it was possible to download the book. Manfred Manfred Wolff schrieb: > Unfortunately I get only a message, that the file is damage and cannot > be downloaded. Can anybody help me? > > Manfred > > Josh Long schrieb: > >> Wonderful contribution

Re: [ANN] "Starting with Struts2" Book

2007-05-27 Thread Manfred Wolff
Unfortunately I get only a message, that the file is damage and cannot be downloaded. Can anybody help me? Manfred Josh Long schrieb: > Wonderful contribution! Congratulations! > -- === Dipl.-Inf. Manfred Wolff Software Engineer Fon : +49 421 534522 F

Re: [ANN] "Starting with Struts2" Book

2007-05-27 Thread Josh Long
Wonderful contribution! Congratulations! -- Joshua Long Sun Certified Java Programmer http://www.joshlong.com/ On 5/26/07, Nova Yu <[EMAIL PROTECTED]> wrote: i'm sorry, i don't think about this. and now i konw what to do. 2007/5/26, Al Sutton <[EMAIL PROTECTED]>: > > Emailing you a copy would

Design patterns for communicating between actions

2007-05-27 Thread Yoni Amir
Hello, I am working on my first struts application, and I was wondering about design patterns for communicating between actions. For example, I have actions A and B. A runs first and creates some data (e.g., a session bean). When B runs, it needs to verify that the data is actually available. Thi