session is not working with jsp

2004-06-19 Thread Jignesh Patel
Hi, I am are trying to call session object in tiles page, but it returns null. Is there any specific methodology to call session in jsp page. Since I am just using session.getAttribute("Parameter") in session. -- Jignesh Patel Project Leader _

RE: Detecting browser close

2004-06-19 Thread Joe Hertz
Youre right, they may not explicitly log off. And you are right that you need to handle the occasion that they go away without saying anything to you. But you shouldn't be worried about the occasion that this happens. You should be handling it with an entirely different paradigm. But being able

Re: Struts 1.0.2 Dynamic Forward

2004-06-19 Thread bmcgovern2004
Rick, Sorry if I the problem def I supplied wasn't complete enough. I was trying to avoid keyboard diarrhea. I'm sure that I'm making this more difficult than it need be. :-) I have a number of mappings. Each with its own unique action, form, and set of forwards comprising the jsp screen

insert tile from other web module

2004-06-19 Thread CERY Philippe
Hi all, I'm looking for a way to insert in a JSP from a web module an other JSP from an other web module. For example: example.jsp : <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> where exampleLayout.jsp, header.jsp and footer.jsp are in the main web module with contex

Re: Detecting browser close

2004-06-19 Thread mike
There are ways, if you are so adamant about this that you want to use a lot of resources. Are you? At 04:53 PM 6/19/2004, Bill Siggelkow wrote: AFAIK this cannot be done -- your best bet is to provide a Logoff link and a reasonable session timeout. ksitron wrote: Is there a way to detect when

Re: bean defines

2004-06-19 Thread Chris Cranford
Bill - The point of my discussion was the following premise: public class MyCheckboxForm extends ActionForm public class MyForm1 extends MyCheckboxForm public class MyForm2 extends MyCheckboxForm I want to be able to pass MyForm1 or MyForm2 to the same JSP and have it work because th

Re: Detecting browser close

2004-06-19 Thread ksitron
Thanks for the reply. But, I find it hard to accept that it can't be done. And, users may not be computer savy or follow good etiquette and log off. Bill Siggelkow wrote: AFAIK this cannot be done -- your best bet is to provide a Logoff link and a reasonable session timeout. ksitron wrote: Is th

Re: Detecting browser close

2004-06-19 Thread Bill Siggelkow
AFAIK this cannot be done -- your best bet is to provide a Logoff link and a reasonable session timeout. ksitron wrote: Is there a way to detect when the user closes the browser. What I want to do is do clean-up and destroy the session. Thanks in advance.

[OT] JavaOne Struts User Gathering

2004-06-19 Thread Van Riper, Mike
Hi Everyone, Depending upon the interest level, I'm willing to organize a social gathering at a bar or restaurant in San Francisco during the upcoming JavaOne conference. It would either be around 8:30pm on Sunday, June 27th, after the Welcome Reception ends. Or it would be around 8:00PM on Thursd

Detecting browser close

2004-06-19 Thread ksitron
Is there a way to detect when the user closes the browser. What I want to do is do clean-up and destroy the session. Thanks in advance. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: bean defines

2004-06-19 Thread Bill Siggelkow
Chris, your running into the problem because when you use where the value is specified in the body of that tag, it create a new String scripting variable as well as a page-scoped attribute that is also a String. Instead, you want the actual form bean itself. I am not too sure about how tiles

Re: How To Get the 'initial' in the form-property?

2004-06-19 Thread Bill Siggelkow
Hmm .. in your Action's execute method you should be able to do: DynaValidatorForm myForm = (DynaValidatorForm) form; String sort = myForm.get("sort"); String order = myForm.get("order"); This will get the current values on the form -- if the form was just created than these will be the initial va

Re: bean defines

2004-06-19 Thread Chris Cranford
Is anyone familiar with this that can help? - Original Message - From: "Chris Cranford" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 18, 2004 3:47 PM Subject: Re: bean defines > And it may be important that I point out if I use: > > > Th

RE: Theoretical debate

2004-06-19 Thread Mike Duffy
Thanks for a very interesting thread. An elucidation of many of the topics in this thread can be found in Ted Husted's book, Struts in Action; especially see chapter 5, Coping with Action Forms. It is very tempting when you first come to Struts to do a great deal of processing in the Action cla