[S2] Session Beans - how to make?

2007-05-26 Thread yitzle
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 whatever that'

Re: [s2] Can't get to work

2007-05-26 Thread Shibing . Chen
Actually, struts2(version 2.0.6) don't support , check the file struts-tag.tld, instead, you may have a try with , setting the type attribute to date or time (date is d default). works the same as in WebWork. The problem is, cant's work in AppFuse 2.xx but works well independently. Matt, any i

Re: session is null!

2007-05-26 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > (5) Or trying to access the session in the Action > constructor. > > I am not sure if this was my mistake. I would like > to hear form some one. As I've alluded to twice now, I believe it *is* your mistake, at least if you're using SessionAware. d. _

Re: session is null!

2007-05-26 Thread Mansour
You missed one. Paul Benedict wrote: Most people who have this problem do so because of four things: (1) they are switching protocols from HTTP/HTTPS (2) they are switching contexts (3) they are switching domains (4) they are invalidating the session. (5) Or trying to access the session in t

Re: eclipse struts2 projects "missing java project struts2-core"

2007-05-26 Thread James Mitchell
Sorry, I am jumping in late here. Here's what I do: $mvn eclipse:eclipse -Pall,xwork -Dwtpversion=1.0 - DdownloadSources=true This generates all the necessary eclipse configuration needed to bring in the projects into Eclipse. Now, there Eclipse doesn't run the apt tool, so you'll have t

Re: session is null!

2007-05-26 Thread Paul Benedict
Most people who have this problem do so because of four things: (1) they are switching protocols from HTTP/HTTPS (2) they are switching contexts (3) they are switching domains (4) they are invalidating the session. -- Paul On 5/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Mansour <[EMAIL

Re: session is null!

2007-05-26 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > Thank you Dave for replying. I think I need a lot of > help on this. The problem is even if I implement > SessionAware, using chaining doesn't work as the > setSession method is never called. Are you talking about the *second* action's setSession()? Are

Re: session is null!

2007-05-26 Thread Mansour
Thank you Dave for replying. I think I need a lot of help on this. The problem is even if I implement SessionAware, using chaining doesn't work as the setSession method is never called. Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: Still this didn't help. i am still getting nu

Re: session is null!

2007-05-26 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > Still this didn't help. i am still getting nulls for > the session in Action 2. CAn some one point me to a > link where I can get What I need ? At this point I have no idea what state your code is in. You shouldn't need to deal with ActionContext at all if

Re: session is null!

2007-05-26 Thread Mansour
OK, Here's what I was to get so far. I need to store and retrieve EntityManagers in the session Map. I am using action chaining. Action 1 can get the session using ActionContext.getContext.getSession(). However, action 2 always returns null. To make things easier for myself I created a Top Level

Re: eclipse struts2 projects "missing java project struts2-core"

2007-05-26 Thread David Durham, Jr.
On 5/26/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: There's probably an easier way, but I just create the elipse project for the project I want to use, like let's say, core and showcase, doing: core/ mvn eclipse:eclipse apps/showcase/ mvn eclipse:eclipse -Dwtpversion=1.0 and then import the

Re: session is null!

2007-05-26 Thread Mansour
I followed the dox and created an Action that implements SessionAware. I set a break point and found the setSession is never called. Can someone explain please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: session is null!

2007-05-26 Thread Mansour
I found out what I was looking for: http://struts.apache.org/2.0.6/docs/how-do-we-get-access-to-the-session.html but still wondering why would ActionContext.getContext().getSession() returns a session the first time it's called then it returns null? Mansour wrote: I am trying to setup a value

Re: [s2] Can't get to work

2007-05-26 Thread Musachy Barroso
I added one of those red warning boxes to the datetimepicker to prevent this problem. Please remember that the wiki can be edited by anyone who has submitted a CLA(http://struts.apache.org/helping.html), or you can leave comments on the page (no CLA required). Help is always welcomed :) regards m

Re: how to add new tag plugins

2007-05-26 Thread Mansour
I think you are asking about the taglib difinition so that you can use tabletags. If this is the case, you need to include the jar file in your WEB-INF/lib and then add: <%@ taglib prefix="tt" uri="/tabletags"%> in your jsp. amir nasr wrote: Hello All Is there any body who knows how can i

how to add new tag plugins

2007-05-26 Thread amir nasr
Hello All Is there any body who knows how can i introduce plugins tag to tomcat to parse it like struts tag, i mean what i must wriiten infront of uri in taglib defintion. For example for struts 2 tag we include this line in top of our jsp page. "<%@ taglib prefix="s" uri="/struts-tags"%>" for

Re: eclipse struts2 projects "missing java project struts2-core"

2007-05-26 Thread Musachy Barroso
There's probably an easier way, but I just create the elipse project for the project I want to use, like let's say, core and showcase, doing: core/ mvn eclipse:eclipse apps/showcase/ mvn eclipse:eclipse -Dwtpversion=1.0 and then import the projects, if you do it like that, you need to compile c

how to add new tag plugins

2007-05-26 Thread amir nasr
- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.

session is null!

2007-05-26 Thread Mansour
I am trying to setup a value in my session. IT works the first time I call the action, and breaks the second time. I get null pointer exception. This code is from my constructor. Map session = ActionContext.getContext().getSession(); if (session.containsKey("InvoiceManager"))

Re: [s2] Can't get to work

2007-05-26 Thread Rick Fisher
Just to add to this ... the documentation on the Apache website does not indicate the need to add the AJAX theme for the datetimepicker tag. I had the same problem which required me to do some digging. The website dox aren't always clear, nor always give you everything you need. That's why we

Re: [ANN] "Starting with Struts2" Book

2007-05-26 Thread Nova Yu
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 reduce the number of downloads InfoQ get and thus reduce the apparent popularity of the book. Doing this could give them a reason to be less interested in other St

RE: [ANN] "Starting with Struts2" Book

2007-05-26 Thread Al Sutton
Emailing you a copy would reduce the number of downloads InfoQ get and thus reduce the apparent popularity of the book. Doing this could give them a reason to be less interested in other Struts2 books. Please don't email the book around, download it from the InfoQ site, or if your network is slow