scope question

2004-03-17 Thread Rajat Pandit
Hello, I know this could be a dumb question, but how do access the objects stored in the ServletContext object using bean:write a quick answer would help!!

RE: scope question

2004-03-17 Thread Shahak.Nagiel
bean:write name=foo property=bar scope=application/ Application scope, aka global, aka servlet context -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 5:14 AM To: Struts Users Mailing List Subject: scope question Hello, I know this could

Tile scope List

2004-03-04 Thread rick
tiles:useAttribute has the classname attribute which could make the list accessible, but tiles:put can only put Strings. So, the short question is, if tiles:useAttribute can export an object of any class to another scope, how do you put objects in to tile scope other than Strings? Rick DeBay

RE: Problem with loss form (session scope)

2004-02-28 Thread Andrew Hill
: Saturday, 28 February 2004 06:03 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Problem with loss form (session scope) One thing I found out that the reset method was getting called everytime if there is no error return from validation. This could cause the form to be reset

RE: Problem with loss form (session scope)

2004-02-27 Thread Andrew Hill
: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 15:39 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Problem with loss form (session scope) I am sorry. I only have 1 action map to this form. So, I guess the name doesn't matter in this case. Basically, what

Re: Problem with loss form (session scope)

2004-02-27 Thread rick
Perhaps your form implements reset()? Rick DeBay On Fri, 27 Feb 2004 05:06 , Niall Pemberton [EMAIL PROTECTED] sent: Without seeing your jsp/struts-config.xml/action its a bit of a guessing game. I'm a bit confused by you saying ...at this point, I set up this form bean as session scope. To me

RE: Problem with loss form (session scope)

2004-02-27 Thread Betty Koon
AM To: Struts Subject: RE: Problem with loss form (session scope) Hmm. That does sound rather odd! Like you say, should not be like that. :-( Only thing I can thing of here is: Is it the same session? (grasping at straws now!) Try println/logging the sessionId from the action and see if its

Re: need help converting from session to request scope

2004-02-26 Thread Craig R. McClanahan
Lowe [mailto:[EMAIL PROTECTED] Sent: 26 February 2004 13:24 To: Struts Users Mailing List Subject: Re: need help converting from session to request scope Niall Any opinions on read and writing to flat files to avoid additional ram use? Or you reckon that the reading and writing

Re: need help converting from session to request scope

2004-02-26 Thread Niall Pemberton
] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 4:13 PM Subject: RE: need help converting from session to request scope My application has an Asset search form. The user can enter many criteria to search on. Most of these criteria themselves are looked up

Re: need help converting from session to request scope

2004-02-26 Thread Mark Lowe
instead of developer time... Paul -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 26 February 2004 13:24 To: Struts Users Mailing List Subject: Re: need help converting from session to request scope Niall Any opinions on read and writing to flat files to avoid additional ram

Problem with loss form (session scope)

2004-02-26 Thread Betty Koon
Anyone has experience lost of form that are scoped in session? Thanks -Betty - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Problem with loss form (session scope)

2004-02-26 Thread Betty Koon
to the detail. So I wrote the link to do a form post it back to the caller action. In that case, I can collect some information, at this point, I set up this form bean as session scope. But everytime the post happened, it seems like the form content got wiped out. -Betty -Original Message- From

Re: Problem with loss form (session scope)

2004-02-26 Thread Niall Pemberton
[EMAIL PROTECTED] Sent: Friday, February 27, 2004 3:30 AM Subject: RE: Problem with loss form (session scope) friday Yeh. I like had one, and like I went out to lunch, and it was like a long lunch, and like when I came back my form was like you know totally like gone. In fact like, I couldnt even

Re: Problem with loss form (session scope)

2004-02-26 Thread Niall Pemberton
Without seeing your jsp/struts-config.xml/action its a bit of a guessing game. I'm a bit confused by you saying ...at this point, I set up this form bean as session scope. To me this implies your getting a form not in session scope (i.e. request) and saving it yourself in session scope

RE: Problem with loss form (session scope)

2004-02-26 Thread Andrew Hill
could be a bit more specific about the problem you encountered? -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 10:09 To: 'Struts Users Mailing List' Subject: Problem with loss form (session scope) Anyone has experience lost of form

Re: need help converting from session to request scope

2004-02-26 Thread Mark Lowe
help converting from session to request scope Niall Any opinions on read and writing to flat files to avoid additional ram use? Or you reckon that the reading and writing would consume similar amounts of ram? I'll get around to trying it when i get a moment. On 26 Feb 2004, at 14:04, Niall

RE: need help converting from session to request scope

2004-02-26 Thread Paul McCulloch
13:24 To: Struts Users Mailing List Subject: Re: need help converting from session to request scope Niall Any opinions on read and writing to flat files to avoid additional ram use? Or you reckon that the reading and writing would consume similar amounts of ram? I'll get around

Re: need help converting from session to request scope

2004-02-26 Thread Niall Pemberton
Mailing List [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 1:24 PM Subject: Re: need help converting from session to request scope Niall Any opinions on read and writing to flat files to avoid additional ram use? Or you reckon that the reading and writing would consume similar amounts

Re: need help converting from session to request scope

2004-02-26 Thread Mark Lowe
' [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 4:13 PM Subject: RE: need help converting from session to request scope My application has an Asset search form. The user can enter many criteria to search on. Most of these criteria themselves are looked up from the database (e.g the Person

RE: Problem with loss form (session scope)

2004-02-26 Thread Betty Koon
I don't think it's a timeout issue. I lost the form right after I posted a page. -Betty -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 8:34 PM To: Struts Users Mailing List Subject: Re: Problem with loss form (session scope) Thats

RE: Problem with loss form (session scope)

2004-02-26 Thread Betty Koon
In struts config's action definition, I set up the action to use a form in session scope. What I found out was, somehow the form constructor get called the 2nd time the action get called. To my understanding, if you set up the form in session, the form will only get created once. Any idea

RE: Problem with loss form (session scope)

2004-02-26 Thread Andrew Hill
What attribute did you set the form to be stored under? If none will default to form name. You are storing under same attribute key yes? Both actions mapping also defined the scope to be session? -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004

RE: Problem with loss form (session scope)

2004-02-26 Thread Betty Koon
I specify my own name in the struts config. In my action, I just grabbed the action form from the execute method. And I am assumming struts fw get that from session for me in this case, rather than creating a new one for this request since my form is in session scope. Is this right assumption

RE: Problem with loss form (session scope)

2004-02-26 Thread Andrew Hill
Ah, but you didnt actually answer my question. Is it the same name for the form in both actions mappings, and do both these action mappings specify the scope to be session? My suspicion is that the problem is that struts is trying to find the form under a different key in the second action

RE: Problem with loss form (session scope)

2004-02-26 Thread Betty Koon
I am planning to do next, download the source code and stepped through it. -Betty -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 11:18 PM To: Struts Subject: RE: Problem with loss form (session scope) Ah, but you didnt actually answer my

RE: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
You don't neccessarily have to worry that much about storing things in session. Once the session is terminated (either through logout, or via the timeout of your container) the garbage collector will do that for you. In my application all form beans are session scope. My users only use one form

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
logout, or via the timeout of your container) the garbage collector will do that for you. In my application all form beans are session scope. My users only use one form at a time, so when they start using a new form I read through the session and get rid of any other 'old' form beans

Re: need help converting from session to request scope

2004-02-25 Thread Niall Pemberton
+1 - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 11:36 AM Subject: Re: need help converting from session to request scope I have to say I'm changing sides in this debate. The only 'need' i see

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
, Paul McCulloch wrote: You don't neccessarily have to worry that much about storing things in session. Once the session is terminated (either through logout, or via the timeout of your container) the garbage collector will do that for you. In my application all form beans are session scope. My users

Re: need help converting from session to request scope

2004-02-25 Thread Niall Pemberton
in request scope as the nested bean won't exist and nothing tells the form that the get(name) being called is trying to retrieve a bean to do a set(name, value) on one of its properties. I don't have that scenario, so its not an issue I've had to addresss - but off the top of my head I don't think

RE: need help converting from session to request scope

2004-02-25 Thread Paul McCulloch
on my search form. The view element displays details about that Person on the search form until the search form is cleared. Many requests will be made to find the criteria before the Asset search itself is performed. To do this using a request scope form would require that I transfer all

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
I agree that manually hiding the values in hidden form elements is dirty, I'd still store values that are required beyond a request in the session (until i find a clean alternative or I run out of memory). But thats not the same as all form beans are session scope. My change of sides was more

need help converting from session to request scope

2004-02-24 Thread Janice
Hi Gang, I've been doing things badly... putting everything in session scope. The good news is that everything works beautifully :) But now that I've got 100+ actions I've decided to go put stuff into request scope. The bad news is that everything grinds to a halt. Here's an example of where

RE: need help converting from session to request scope

2004-02-24 Thread Paul McCulloch
Firstly I'd ask what is wrong with using session scope - has load testing your applcation shown that session scope is too memory intensive? It looks like the 'years' list was stored in the form bean. You will need to recreate all of your lists etc (e.g. years) in every action if you are going

Re: need help converting from session to request scope

2004-02-24 Thread Hubert Rabago
(mapping.getScope()). The mapping object you have at this point is for ActionA, but the form's scope is defined in ActionB, so mapping.getScope() doesn't give you the scope of the form you're after. That's why it's not working as you expected. - Hubert --- Janice [EMAIL PROTECTED] wrote: Oh

Re: need help converting from session to request scope

2004-02-24 Thread Hubert Rabago
type=ActionA forward name=showForm path=.formATile /action action path=/submitForm type=ActionB name=formA input=.formATile/ To use request scope, you can either: 1) Leave your Strings/ArrayLists in session scope 2) Put them in application scope 3) Put them in request scope

need help converting from session to request scope

2004-02-24 Thread Janice
all the many objects I'm putting in the session. I was doing some reading this morning that implied that the only reason to store form beans in the session is if I was doing multi-paged forms. I am not doing that in many places, so I would rather narrow the scope and not worry about taking up too

Re: need help converting from session to request scope

2004-02-24 Thread Hubert Rabago
off the phone for an hour! The joy of telecommuting...) -- And I'm in an office, and it's nearing the end of the day, so we may have to continue this later... the action mapping where I set up the scope=request is the same action mapping that does both ActionA (showForm) and ActionB

Re: need help converting from session to request scope

2004-02-24 Thread Janice
Me again, I just had some kind of breakthrough... I think. Because my .jsp form was specifying the name and type of the form, it wasn't picking up on the scope. If I add scope into the form declaration, I'm ok. Also if I take the name and type out of form I'm ok (but that was causing

Re: need help converting from session to request scope

2004-02-24 Thread Hubert Rabago
this is why I was told this stuff had to be in the session... it all makes sense now. That's where the three options come in. You can leave the drop-down values in the session, in the application scope, or in the request scope but use input=/mySetupAction. Whether the form itself is in session

Can I access an ActionForm JavaBean with a session scope?

2004-02-15 Thread Gregg Williams
on this page takes you back to the first page--very simple. The first page uses an form-bean named entryForm, which has a session scope and and two parameters, name and address. Similarly, the second page has an form-bean named displayForm. Here's my question. While I'm processing the second page

Re: Can I access an ActionForm JavaBean with a session scope?

2004-02-15 Thread cnd
the submit button on this page takes you back to the first page--very simple. The first page uses an form-bean named entryForm, which has a session scope and and two parameters, name and address. Similarly, the second page has an form-bean named displayForm. Here's my question. While I'm

RE: Data truncation in request scope

2004-02-07 Thread Namasivayam, Sudhakar (Cognizant)
thanks Rob.. that was the problem... A hidden control's value which was set by a attribute was not in the scope suds -Original Message- From: Robert Nocera [mailto:[EMAIL PROTECTED] Sent: Saturday, February 07, 2004 1:56 AM To: 'Struts Users Mailing List' Subject: RE: Data truncation

Data truncation in request scope

2004-02-06 Thread Namasivayam, Sudhakar (Cognizant)
Title: Data truncation in request scope hi all, I am passing a lot of data from the action class through the request = scope but the data is getting truncated... ie there are 50 elements in the arraylist only 25 are displayed Is there any limit on the amount of data that can

RE: Data truncation in request scope

2004-02-06 Thread Robert Nocera
] Sent: Friday, February 06, 2004 1:19 PM To: Struts Users Mailing List Subject: Data truncation in request scope hi all, I am passing a lot of data from the action class through the request = scope but the data is getting truncated... ie there are 50 elements in the arraylist only 25

lifetime for scope page

2004-01-29 Thread Alvaro Martinez
Hi, I have written in the file struts-config.xml a bean with scope=page. This bean inherits from ValidatorForm. If I overwrite the request method and I set all the attributes of the bean to null then, after having populated the bean in a form when I use it again in the same page, the values have

AUTO {ICICICARE#005-218-314}lifetime for scope page

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your mail and assure you of a response shortly.To help us serve you better, we would request you to kindly mention your account number or any reference number you may have in your future correspondence. Kindly

request scope vs. session scope

2004-01-28 Thread struts fox
above, sets a bean up in the session before it is forwarded. The problem is in the jsp if I declare the bean via 'session' scope it sees the attribute and displays the value properly, but if I declare it as 'request' scope it doesn't and just prints null. Request scope should work here

Re: request scope vs. session scope

2004-01-28 Thread James Mitchell
PROTECTED] Sent: Wednesday, January 28, 2004 2:38 PM Subject: request scope vs. session scope I have the following weird problem. I start off with a web page, that has a hyperlink, not a submit button. When the hyperlink is selected the page goes to Tomcat/Struts. Two actions are executed

Re: request scope vs. session scope

2004-01-28 Thread struts fox
I never specified, but adding it doesn't effect anything. Same results, it just doesn't like the request scope. Other example code does work with request, just not the one I'm trying to do myself. James Mitchell [EMAIL PROTECTED] wrote:Does your action-mapping use redirect=true

Re: request scope vs. session scope

2004-01-28 Thread James Mitchell
Sorry, but there could be any number of reasons why your page isn't working. We'll need more information to help you. Check out the struts-example.war that ships with the distribution. That shows the most basic ways to send data to your jsp (in request scope). -- James Mitchell Software

Config validator plug-in to Save ActionMessages in session scope ?

2004-01-21 Thread dutrieux
Hello, I see in the Nightly Build release note that's we can now save the ActionMessages in the session scope (http://jakarta.apache.org/struts/userGuide/release-notes.html). And my question is to know if it's possible to change the parameter of validator plug-in to save the ActionMessages

Config validator plug-in to Save ActionMessages in session scope ?

2004-01-20 Thread dutrieux
Hello, I see in the Nightly Build release note that's we can now save the ActionMessages in the session scope (http://jakarta.apache.org/struts/userGuide/release-notes.html). And my question is to know if it's possible to config the validator plug-in to save the ActionMessages in the session

RE: Tiles scope problem

2004-01-15 Thread Yogi_Shridhare/BCBSRI
Richard Thanks for you reply. I don't set it to true as you can see below. This is part of my struts-config.xml action path=/providers/Eligibility type=org.bcbsri.thinui.struts.actions.EligibilityAction name=EligibilityForm scope=request input=/providers

Tiles scope problem

2004-01-14 Thread Yogi_Shridhare/BCBSRI
attribute. The body jsp iterates through the collection and tries to retrieve the properties of the collection. When I do this with Session scope, it works fine but with request scope it fails. Is there any way to make this work with request scope? Thanks. Following is the simple set up. file

RE: Tiles scope problem

2004-01-14 Thread Richard Hightower
/[EMAIL PROTECTED] [mailto:Yogi_Shridhare/[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 1:58 PM To: [EMAIL PROTECTED] Subject: Tiles scope problem Hi group I have a quick question for you. I really appreciate your time on this. We are trying to migrate our existing static JSP project to using

Nested tags not working with session-scope form

2004-01-02 Thread Joe Porcheddu
Hello, I have a session scope ActionForm. I have a need to use the nested tag library to iterator over some nested beans in the form. However, any use of a nested:text, nested:write, nested:iterate, etc., will not output the properties of the ActionForm. This results in a blank HTML form in my

Re: Nested tags not working with session-scope form

2004-01-02 Thread Arron Bates
advantage of the nested tags, you'll have to look at their specific needs in the documentation, or the tutorials at http://keyboardmonkey.com/next All the best. Arron. Hello, I have a session scope ActionForm. I have a need to use the nested tag library to iterator over some nested

How to put an object into the application scope from a plugin interface

2003-12-19 Thread EL AKARI Mehdi
Hi, I'm writing a struts plugin, and i need to put an object into the application scope. How can i do this. Note that the plugin interface contains the following methods: public void init(ActionServlet servlet, ModuleConfig config) throws javax.servlet.ServletException ; public void

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread Gurpreet Dhanoa
- From: EL AKARI Mehdi [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 19, 2003 4:21 PM Subject: How to put an object into the application scope from a plugin interface Hi, I'm writing a struts plugin, and i need to put an object into the application scope

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread EL AKARI Mehdi
:10 AM Subject: Re: How to put an object into the application scope from a plugin interface hi THink you are slightly wrong syntax for init method is ublic void init(ActionServlet servlet, ApplicationConfig applicationConfig) throws javax.servlet.ServletException { } So you can

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread Gurpreet Dhanoa
into the application scope from a plugin interface Which interface are you talking about, i'am using org.apache.struts.action.PlugIn isn't it the good one ? Actualy it is working for me ! Mehdi - Original Message - From: Gurpreet Dhanoa [EMAIL PROTECTED] To: Struts Users Mailing List

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread EL AKARI Mehdi
? Mehdi - Original Message - From: Gurpreet Dhanoa [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, December 19, 2003 11:47 AM Subject: Re: How to put an object into the application scope from a plugin interface Mehdi i am talking about the same interface

Re: How to put an object into the application scope from a plugin interface

2003-12-19 Thread Nathan Rogers
EL AKARI Mehdi wrote: Hi, I'm writing a struts plugin, and i need to put an object into the application scope. How can i do this. Note that the plugin interface contains the following methods: public void init(ActionServlet servlet, ModuleConfig config) throws javax.servlet.ServletException

Validation error: bean not found in any scope

2003-12-10 Thread Ciaran Hanley
find bean error in any scope error Can anybody help me with this? Thanks In Advance Ciaran

(bean-)property gets out of scope/session?

2003-12-04 Thread Engbers, ir. J.B.O.M.
I'm fairly new to Struts, java and servlets so maybe it's a stupid question but I have this problem: Based on the pattern that is used by Steve Raeburn in his struts-examples, I start my web-application with a prepareAction in which I declare ArrayList codering= new ArrayList();

SV: (bean-)property gets out of scope/session?

2003-12-04 Thread Håkan Fransson
labelProperty=label /html:options /html:select -Ursprungligt meddelande- Från: Engbers, ir. J.B.O.M. [mailto:[EMAIL PROTECTED] Skickat: den 4 december 2003 11:45 Till: '[EMAIL PROTECTED]' Ämne: (bean-)property gets out of scope/session? I'm fairly new to Struts, java and servlets

RE: (bean-)property gets out of scope/session?

2003-12-04 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: RE: (bean-)property gets out of scope/session?

2003-12-04 Thread Engbers, ir. J.B.O.M.
-Oorspronkelijk bericht- Van: John Pitchko Verzonden: donderdag 4 december 2003 15:16 Aan: [EMAIL PROTECTED] Try: html:options collection=codering / In Search.jsp I want to use this code: html:select property=landCode html:options name=codering / /html:selectBR

Re: SV: (bean-)property gets out of scope/session?

2003-12-04 Thread Hien Q Nguyen
: Engbers, ir. J.B.O.M. [mailto:[EMAIL PROTECTED] Skickat: den 4 december 2003 11:45 Till: '[EMAIL PROTECTED]' Ämne: (bean-)property gets out of scope/session? I'm fairly new to Struts, java and servlets so maybe it's a stupid question but I have this problem: Based on the pattern that is used

Session Scope ActionForm, ActionErrors and the Back Button

2003-12-02 Thread John Topley
My application has a sequence of pages that submit to a single ActionForm with session scope. The problem I have is that if the user clicks the Back button any previous ActionErrors are still displayed, even though the form fields may be populated with valid values. Is it possible to specify

RE: Session Scope ActionForm, ActionErrors and the Back Button

2003-12-02 Thread Hookom, Jacob
] Sent: Tuesday, December 02, 2003 12:31 PM To: [EMAIL PROTECTED] Subject: Session Scope ActionForm, ActionErrors and the Back Button My application has a sequence of pages that submit to a single ActionForm with session scope. The problem I have is that if the user clicks the Back button any

RE: Session Scope ActionForm, ActionErrors and the Back Button

2003-12-02 Thread Fullam, Jonathan
Topley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: Session Scope ActionForm, ActionErrors and the Back Button My application has a sequence of pages that submit to a single ActionForm with session scope. The problem I have is that if the user

Re: Session Scope ActionForm, ActionErrors and the Back Button

2003-12-02 Thread news.basebeans.com
- From: John Topley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:31 PM To: [EMAIL PROTECTED] Subject: Session Scope ActionForm, ActionErrors and the Back Button My application has a sequence of pages that submit to a single ActionForm with session scope. The problem I have

Setting ActionForm back into the scope for clusters

2003-11-29 Thread Mohan Radhakrishnan
Hi The following UserContainer user = ( UserContainer )session. getAttribute( Constant.USER_KEY ); user.setPassCode( Test ); session.setAttribute( user ); is

Passing objects from JSP to Action (in request scope)

2003-11-20 Thread Castañeda Santana, Jose Manuel
scope? JSP1-- Action1 ---JSP2 (here)--request--Action2 I mean, I want to handle this object (the vector) as I do with the data of the JSP2's form fields: to send it. Is there any way to do this? Thanks again, I hope

Re: Passing objects from JSP to Action (in request scope)

2003-11-20 Thread Adolfo Miguelez
to make it available for the whole app? If you access database from the Action you can send the Vector to the JSP by using the request. It also depends also of the lifecycle of this Vector in your app. Storing the vector in session scope is not a bad design practice, in turn this is the session

Passing objects from JSP to Action (in request scope)

2003-11-19 Thread Castañeda Santana, Jose Manuel
I would be really happy if anyone answer: Is it possible to pass an object (i.e. a vector) as an actionForm field or in any other way from a JSP to an Action, if the POST is done in request scope? I would like to do it in the JSP2 of the figure: JSP1

Re: Passing objects from JSP to Action (in request scope)

2003-11-19 Thread Adolfo Miguelez
Hi Jose Manuel, From: Castañeda Santana, Jose Manuel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Passing objects from JSP to Action (in request scope) Date: Wed, 19 Nov 2003 18:58:08 +0100 I would be really happy

RE: Passing objects from JSP to Action (in request scope)

2003-11-19 Thread Castañeda Santana, Jose Manuel
Thanks, Adolfo! But I'm a newbie: how could I set sevletContext in a JSP? If I'd want to set the object to pass in the session scope I'd write: % Vector vect = new Vector(); //for example session.setAttribute(vector, vect

RE: Passing objects from JSP to Action (in request scope)

2003-11-19 Thread Adolfo Miguelez
Hi Jose Manuel, From: Castañeda Santana, Jose Manuel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Passing objects from JSP to Action (in request scope) Date: Wed, 19 Nov 2003 20:59:28 +0100 Thanks, Adolfo

Request scope for FormBeans does not work??

2003-11-13 Thread Voinea, Marina
Hi, Heeelp: I have been struggling for the last 2 days with an issue regarding the / request / session scope of the form beans defined in action mappings. (Request scope does not work for me, I have to use session scope...). Can you please help : I have the following steps within the code

Re: Request scope for FormBeans does not work??

2003-11-13 Thread Rick Reumann
to put your MtgDayForm back into Request scope or else use Session scope. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Request scope for FormBeans does not work??

2003-11-13 Thread Phil
, so you dont have to specify it. HTH, Phil - Original Message - From: Voinea, Marina [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 13, 2003 8:42 PM Subject: Request scope for FormBeans does not work?? Hi, Heeelp: I have been struggling

RE: Request scope for FormBeans does not work??

2003-11-13 Thread Voinea, Marina
List Subject: Re: Request scope for FormBeans does not work?? Hi, i think you have to set the attribute redirect=false, than a simple forward is done. The difference between a redirect and a simple forward is that if you use redirect a new request is create when you call another resource (jsp

RE: Request scope for FormBeans does not work??

2003-11-13 Thread Voinea, Marina
Yeap, the html:base tag is used to solve page forward issues... Thanks again. (So we need: redirect= false and html:base together) ... -Original Message- From: Voinea, Marina Sent: Thursday, November 13, 2003 3:34 PM To: 'Struts Users Mailing List' Subject: RE: Request scope

RE: Accessing application scope in Action.execute()

2003-11-12 Thread Geert Van Landeghem
from the application scope by its name. This is * a convience method. */ protected Object getApplicationObject(String attrName) { return servlet.getServletContext().getAttribute(attrName); } public boolean isLoggedIn( HttpServletRequest request ){ UserContainer container

Accessing application scope in Action.execute()

2003-11-10 Thread Looser
Hi, is there any chance to access objects in application scope in my action classes ? I have to override the .execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) method but none of these parameters give me access to application scope like

RE: Accessing application scope in Action.execute()

2003-11-10 Thread David Friedman
Dear Looser, Inside the execute, you can set/get application scope properties using the Action class methods getServlet() followed by two more commands: getServlet().getServletContext().getAttribute(String); OR getServlet().getServletContext().setAttribute(String, obj); Regards, David

Re: Accessing application scope in Action.execute()

2003-11-10 Thread Frank Schaare
Hi David, getServlet() followed by two more commands: getServlet().getServletContext().getAttribute(String); OR getServlet().getServletContext().setAttribute(String, obj); Regards, this was a great help for me thank you. Hope my name is shown correctly now...

Re: Store object in application scope

2003-11-03 Thread Ruth, Brice
It ended up being one of those late Friday afternoon typos ... I was storing navXml in application scope and trying to use xmlNav in my JSP. Ooops!! Nail, Evan Burke wrote: Hey Brice, I would agree I don't think it's finding your bean, as a result its trying to instantiate a Document object

Store object in application scope

2003-10-31 Thread Ruth, Brice
I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in application scope so that they are visible from my JSPs - how best would I go about doing this from a Servlet? My Servlet class is extending HttpServlet and I'm going to be implementing the init

Re: Store object in application scope

2003-10-31 Thread Ruth, Brice
Nevermind, I think I have it, thanks. Ruth, Brice wrote: I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in application scope so that they are visible from my JSPs - how best would I go about doing this from a Servlet? My Servlet class

RE: Store object in application scope

2003-10-31 Thread Richard J. Duncan
getServletContext.setAttribute(...) Regards,   Rich -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:20 PM To: Struts Users Mailing List Subject: Store object in application scope I'm writing a servlet that will do some init jobs and I'd

RE: Store object in application scope

2003-10-31 Thread Wiebe de Jong
); Wiebe de Jong http://frontierj.blogspot.com -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 11:20 AM To: Struts Users Mailing List Subject: Store object in application scope I'm writing a servlet that will do some init jobs and I'd like

Re: Store object in application scope

2003-10-31 Thread Ruth, Brice
(I'm not using filters, so its a bit simpler). I save the org.w3c.dom.Document to application scope, then, within the JSP, I do: jsp:useBean id=varName class=org.w3c.dom.Document/ I'm getting an exception thrown of type java.lang.InstantiationException ... correct me if I'm wrong, but if its

RE: Store object in application scope

2003-10-31 Thread Nail, Evan Burke
Hey Brice, I would agree I don't think it's finding your bean, as a result its trying to instantiate a Document object, and of course being an interface Document doesn't like someone trying to instantiate it. If your object is in the app scope, your should just be able to use it. You

Struts and frames: what about the request scope?

2003-10-30 Thread Jeroen Breedveld
Hi all, I'm trying to use struts with frame but the problem I have is that forms disappear from the request scope when I forward to an jsp containing a frameset to other actions like this: !-- jsp containing form submitting to someAction -- action path=/somePage forward=/WEB-INF/pages/some

RE: Struts and frames: what about the request scope?

2003-10-30 Thread Andrew Hill
Its not found in the request scope of the frames because each frame has a DIFFERENT request. The browser will sent a seperate simultaneous request for each individual frame. If using session scope beware of potential concurrency issues as you will have multiple threads accessing the same form

Re: RE: Struts and frames: what about the request scope?

2003-10-30 Thread George Steimer
I had this same problem on the project I am working on. Based on the functionality of the application, I could not put the form in session scope. I got around this problem by having each frame call an action that recreated the form bean in request scope and then forwarded to the frame jsp

  1   2   3   4   5   6   7   >