Passing a vector to a JSP from an Action
Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Vector myvector = .. request.setAttrubute(myvector, myvector); ... c:forEach var=item items=${myvector} c:out value=${item.myproperty} / c:forEach or logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
I think you want request.setAttribute(String, Vector) and (Vector)request.getAttribute(String) (not get/set*Parameter*..). Btw, don't want to start this off once more, but memory usage is not the only (or even main?) issue against using session variables.. It's more a question of what makes sense. But you can just look up that thread for all the gory details..;) Regards, Geeta bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Thanks Mark. Mark Lowe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute(myvector, myvector); ... c:forEach var=item items=${myvector} c:out value=${item.myproperty} / c:forEach or logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Thanks Geeta. Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think you want request.setAttribute(String, Vector) and (Vector)request.getAttribute(String) (not get/set*Parameter*..). Btw, don't want to start this off once more, but memory usage is not the only (or even main?) issue against using session variables.. It's more a question of what makes sense. But you can just look up that thread for all the gory details..;) Regards, Geeta bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
I feel like an idiot asking this, but... within the logic:iterate /logic:iterate tags how am I supposed to pull out the objects I have stored in my Vector? bort Mark Lowe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute(myvector, myvector); ... c:forEach var=item items=${myvector} c:out value=${item.myproperty} / c:forEach or logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Any samples on passing an array.Thanks and vis syntax in JSTL? Thanks bort [EMAIL PROTECTED] wrote: I feel like an idiot asking this, but... within the tags how am I supposed to pull out the objects I have stored in my Vector? bort Mark Lowe wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute(myvector, myvector); ... or The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Re: Passing a vector to a JSP from an Action
Just like Mark said below: logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate item above is an item in your vector myvector with a getter for the property called myproperty.. Is there something in particular you are having a problem with..? Geeta bort wrote: I feel like an idiot asking this, but... within the logic:iterate /logic:iterate tags how am I supposed to pull out the objects I have stored in my Vector? bort Mark Lowe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute(myvector, myvector); ... c:forEach var=item items=${myvector} c:out value=${item.myproperty} / c:forEach or logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
In the example i gave i pretended i had a method called getMyproperty() so bean:write name=item property=myproperty / you can also use c:out value=${item.myproperty} / jsp:getProperty name=item property=myproperty / %= item.getMyproperty() % on tc5 ${item.myproperty} On 4 Mar 2004, at 17:49, bort wrote: I feel like an idiot asking this, but... within the logic:iterate /logic:iterate tags how am I supposed to pull out the objects I have stored in my Vector? bort Mark Lowe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute(myvector, myvector); ... c:forEach var=item items=${myvector} c:out value=${item.myproperty} / c:forEach or logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Nope! I think your response just solved my problem! Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Just like Mark said below: logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate item above is an item in your vector myvector with a getter for the property called myproperty.. Is there something in particular you are having a problem with..? Geeta bort wrote: I feel like an idiot asking this, but... within the logic:iterate /logic:iterate tags how am I supposed to pull out the objects I have stored in my Vector? bort Mark Lowe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute(myvector, myvector); ... c:forEach var=item items=${myvector} c:out value=${item.myproperty} / c:forEach or logic:iterate id=item name=myvector bean:write name=item property=myproperty / /logic:iterate The thread in question was more about nested beans and forms, i don't think anyone would suggest putting readonly stuff in the session. On 4 Mar 2004, at 17:14, bort wrote: A request parameter would probably be a better solution, you're right. I looked up the thread you were speaking of, and see that it went in the direction of memory usage by the JVM when loaded up with session variables. Fortunately, that isn't a concern for us as we've loaded up the web server with RAM. Back to my original question... I guess I can just pull the Vector from the request object and iterate through it then? ex. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
m.. cgi.. On 4 Mar 2004, at 18:14, Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a vector to a JSP from an Action
*Ouch*!! Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] was: Re: Passing a vector to a JSP from an Action
Yeah. But see the thread and what i was up against, like no large scale app has ever been released using httpsession somewhere. I think the chap with the 48,000 results scrolling issue and the next man with the html optimization suggestions have beaten me to my dealer :o) I'm gonna have take a couple of valium and go n lye down.. On 4 Mar 2004, at 18:21, Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] was: Re: Passing a vector to a JSP from an Action
Mark, m'boy, repeat after me: breathe in,... breathe out.. breathe in... breathe out that's 3 sets of 12. Didn't work? Ok, I guess it's that crack dealer's lucky day.. Geeta P.S... just kidding: I actually do (and did) agree with you..!! :) Mark Lowe wrote: Yeah. But see the thread and what i was up against, like no large scale app has ever been released using httpsession somewhere. I think the chap with the 48,000 results scrolling issue and the next man with the html optimization suggestions have beaten me to my dealer :o) I'm gonna have take a couple of valium and go n lye down.. On 4 Mar 2004, at 18:21, Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] was: Re: Passing a vector to a JSP from an Action
I thought what craig said on a different thread about configuring the container to dump to flat file or db sounded like the solution after all that. PersistentManager I'd much prefer to fiddle around with container config for a day, to solve a problem if and when legitimate use of session became an issue in terms of ram usage than all that other stuff. On 4 Mar 2004, at 18:35, Geeta Ramani wrote: Mark, m'boy, repeat after me: breathe in,... breathe out.. breathe in... breathe out that's 3 sets of 12. Didn't work? Ok, I guess it's that crack dealer's lucky day.. Geeta P.S... just kidding: I actually do (and did) agree with you..!! :) Mark Lowe wrote: Yeah. But see the thread and what i was up against, like no large scale app has ever been released using httpsession somewhere. I think the chap with the 48,000 results scrolling issue and the next man with the html optimization suggestions have beaten me to my dealer :o) I'm gonna have take a couple of valium and go n lye down.. On 4 Mar 2004, at 18:21, Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think that I was arguing in favor of always storing in session.. On 4 Mar 2004, at 17:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector to the forwarding JSP and create a table listing of the data. I'm thinking of just adding the Vector to the session in the Action class and then retrieving and iterating through it in the JSP. Is there a better way to do this? bort - -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]