Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 31 May 2008 20:24:00 -0000 Issue 8063

user-digest-help

2008-05-31


Author LoginPost Reply

user Digest 31 May 2008 20:24:00 -0000 Issue 8063

Topics (messages 187064 through 187072):

Re: Struts 2 + Hibernate question
 187064 by: Márcio Gurgel

Re: Interceptor problem - Struts 2.0.11.1
 187065 by: Tom Ivers

Re: Struts 2 + Hibernate question [RESOLVED]
 187066 by: Márcio Gurgel
 187072 by: Márcio Gurgel

[Struts 2] s:iterator (post list back to java class doesn't work)
 187067 by: thinair
 187071 by: Volker Karlmeier

Re: Struts2+DOJo1.x
 187068 by: aum strut

Re: Session Data overlap?
 187069 by: McDowell, Paula
 187070 by: Martin Gainty

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_187064.ezm (zipped)
Hi!

Tanks Stewart and Owen!

Stewart, I tried by unit test case, and everything went well.
I guess that you discovered the reason of the problem (:

As you saw, after update I call another action (redirect) to show the data.
Now I tried to return a JSP as result, and the problem went away.
In fact the value stack from struts 2 are getting the old object state. But
I need to use redirectAction. Do you have any idea?

You made some questions here are the answers (:

"are both actions still on the stack, or just the last one to run?"
- Honestly I dont know...

"One question - how are you committing your database changes?"
- Every database operation to update a object is inside a session.begin()
and after session.commit() and session.flush()

Could the commit not be happening until after you try to get the updated
object? You mentioned doing a refresh and flush - shouldn't you do a flush
and commit first, and then the refresh?
- By debugging, I sow that after the update the comit() method is aways
called.
I also tried to flush the session before bringing the object from database,
no success too.


Thanks so much for your help and atention.

Márcio Gurgel


2008/5/30 Owen Berry <owen.berry@(protected)>:

> If you get Hibernate to log your queries, you can watch your log file and
> make sure that Hibernate is actually executing a select statement when you
> hit that page. If it's not, then it's definitely not Hibernate.
>
> On Thu, May 29, 2008 at 1:25 AM, Márcio Gurgel <marcio.rga@(protected)>
> wrote:
>
> > Hi all!
> >
> > I'm using struts 2 + hibernate.
> > I've a strange problem, if someone could give me a hand I'll be so
> > tankfull.
> >
> > If I persist a object in my app every things go well and all
> relationchips
> > are stored correctey correctly.
> > The problem occours when I update this object... After the update all
> data
> > are stored correctly too, but the problem is that my page shows the old
> > object (different from database).
> >
> > This could be some kind of cash from struts 2? Or my problem is just
> > hibernate?
> >
> > I tryed this methods to force a refresh after bring the object from
> > database
> > session.refresh(obj)
> > session.flush()
> >
> > Tank so much for attention!
> >
> > Márcio Gurgel
> >
>

Attachment: user_187065.ezm (zipped)

Ok - I found out why. It seems that an Action will utilize the defaultStack
if nothing is specified. Once I specified my 'secureInterceptor' I no
longer utilized the defaultStack. Simply adding the defaultStack as an
interceptor to my action fixed the issue. I mistakenly thought that the
action would continue to inherit the 'default-stack' with an additional
specified. The 'Guide' doesn't clearly state either way.



Tom Ivers wrote:
>
> ... fixed (from original)...
> <struts>
>   <package name="default" extends="struts-default">
>      <interceptors>
>         <interceptor name="secureInterceptor"
> class="com.a.core.struts2.interceptor.SecureInterceptor" />
>      </interceptors>
>
>      <action name="logon"
> class="com.a.core.struts2.action.LoginAction">
>         <result name="error">jsp/testing/loginfailure.jsp</result>
>         <result name="success">jsp/template/main.jsp</result>
>      </action>
>
>      <action name="Site" class="com.b.struts2.action.SiteAction">
>         <interceptor-ref name="defaultStack"/>
>         <interceptor-ref name="secureInterceptor"/>
>         <result name="success">jsp/testing/sitesuccess.jsp</result>
>         <result name="login">jsp/login.jsp</result>
>      </action>
>   </package>
> </struts>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187066.ezm (zipped)
I guess that this is the end of my saga.

Stewart showed me the way and I resolve this by calling the method to open
data.
Before I was calling this method via redirectAtion, now I just call by my
action class and just like magic everything went well.
* I changed my result to return a jsp not a action.

Thanks so much to: Sutton, Dusty, Stewart, Owen and Martin. I hope help you
also in another opportunity!

Here's the code:

---- ACTION TO UPDATE ----
* After update I called setValuesAbrirPageFsc to populate my view (mainly
autocomplers and s:selects)

public String alterarFsc(){
    try {
       String[] telefones = new String[]{telefone1, telefone2,
telefone3, telefone4};
       Integer[] cdsTipTel = new Integer[]{cdTipoTelefone1,
cdTipoTelefone2, cdTipoTelefone3, cdTipoTelefone4};
       getClienteFacade().alterarFsc(clienteFsc, getUsuarioLogado(),
cdSitCliente, telefones, cdsTipTel, cdCidadeKey);


       setClienteFsc(clienteFsc);

       //HERE I CALL THE MENTIONED METHOD
       setValuesAbrirPageFsc();

    } catch (Exception e) {
       addActionError(SgvdbaConstants.ERRO_DEFAULT + e.getMessage());
       return Action.INPUT;
    }
    return Action.SUCCESS;
  }


---- POPULATES A JSP ----
private void setValuesAbrirPageFsc(){
    if (clienteFsc != null){
       if (clienteFsc.getCd() != null){
          clienteFsc =
getClienteFacade().recuperarFscPorId(clienteFsc.getCd());
          clienteFsc.setCep(MaskUtil.maskCep(clienteFsc.getCep()));
          clienteFsc.setCpf(MaskUtil.maskCpf(clienteFsc.getCpf()));
          setQtdTelefones(clienteFsc.getTelefones().size());

          int i = 0;
          List<Telefone> telefoneList =
getTelefoneFacade().recuperarPorCliente(clienteFsc.getCd());
          for (Iterator<Telefone> it = telefoneList.iterator();
it.hasNext();){
            Telefone telefone = (Telefone) it.next();
            switch (i) {
            case 0:
               telefone1 =
MaskUtil.maskTelefone(telefone.getNumTel());
               valueTipoTelefone1 =
telefone.getTipoTelefone().getCd();
               break;
            case 1:
               telefone2 =
MaskUtil.maskTelefone(telefone.getNumTel());
               valueTipoTelefone2 =
telefone.getTipoTelefone().getCd();
               break;
            case 2:
               telefone3 =
MaskUtil.maskTelefone(telefone.getNumTel());
               valueTipoTelefone3 =
telefone.getTipoTelefone().getCd();
               break;
            case 3:
               telefone4 =
MaskUtil.maskTelefone(telefone.getNumTel());
               valueTipoTelefone4 =
telefone.getTipoTelefone().getCd();
               break;
            }
            i++;
          }
       }

    }
  }


2008/5/30 Márcio Gurgel <marcio.rga@(protected)>:

> Hi!
>
> Tanks Stewart and Owen!
>
> Stewart, I tried by unit test case, and everything went well.
> I guess that you discovered the reason of the problem (:
>
> As you saw, after update I call another action (redirect) to show the data.
> Now I tried to return a JSP as result, and the problem went away.
> In fact the value stack from struts 2 are getting the old object state. But
> I need to use redirectAction. Do you have any idea?
>
> You made some questions here are the answers (:
>
> "are both actions still on the stack, or just the last one to run?"
> - Honestly I dont know...
>
> "One question - how are you committing your database changes?"
> - Every database operation to update a object is inside a session.begin()
> and after session.commit() and session.flush()
>
> Could the commit not be happening until after you try to get the updated
> object? You mentioned doing a refresh and flush - shouldn't you do a flush
> and commit first, and then the refresh?
> - By debugging, I sow that after the update the comit() method is aways
> called.
> I also tried to flush the session before bringing the object from database,
> no success too.
>
>
> Thanks so much for your help and atention.
>
> Márcio Gurgel
>
>
> 2008/5/30 Owen Berry <owen.berry@(protected)>:
>
> If you get Hibernate to log your queries, you can watch your log file and
>> make sure that Hibernate is actually executing a select statement when you
>> hit that page. If it's not, then it's definitely not Hibernate.
>>
>> On Thu, May 29, 2008 at 1:25 AM, Márcio Gurgel <marcio.rga@(protected)>
>> wrote:
>>
>> > Hi all!
>> >
>> > I'm using struts 2 + hibernate.
>> > I've a strange problem, if someone could give me a hand I'll be so
>> > tankfull.
>> >
>> > If I persist a object in my app every things go well and all
>> relationchips
>> > are stored correctey correctly.
>> > The problem occours when I update this object... After the update all
>> data
>> > are stored correctly too, but the problem is that my page shows the old
>> > object (different from database).
>> >
>> > This could be some kind of cash from struts 2? Or my problem is just
>> > hibernate?
>> >
>> > I tryed this methods to force a refresh after bring the object from
>> > database
>> > session.refresh(obj)
>> > session.flush()
>> >
>> > Tank so much for attention!
>> >
>> > Márcio Gurgel
>> >
>>
>
>

Attachment: user_187072.ezm (zipped)
Uh Oh...
It's not really ok...
After I update a object from a jsp all field are shown in the current jsp
ok, but when I'm comming from a link (searh a object) are displayed the old
state (before update). /:
Now I just dont know what to do. Seems that struts still caching my object.
I have to run against the time, I have to present my final academic project
next month.

Any ideias? I'm really needing a hand.

Márcio Gurgel


2008/5/30 Márcio Gurgel <marcio.rga@(protected)>:

> I guess that this is the end of my saga.
>
> Stewart showed me the way and I resolve this by calling the method to open
> data.
> Before I was calling this method via redirectAtion, now I just call by my
> action class and just like magic everything went well.
> * I changed my result to return a jsp not a action.
>
> Thanks so much to: Sutton, Dusty, Stewart, Owen and Martin. I hope help you
> also in another opportunity!
>
> Here's the code:
>
> ---- ACTION TO UPDATE ----
> * After update I called setValuesAbrirPageFsc to populate my view (mainly
> autocomplers and s:selects)
>
> public String alterarFsc(){
>      try {
>         String[] telefones = new String[]{telefone1, telefone2,
> telefone3, telefone4};
>         Integer[] cdsTipTel = new Integer[]{cdTipoTelefone1,
> cdTipoTelefone2, cdTipoTelefone3, cdTipoTelefone4};
>         getClienteFacade().alterarFsc(clienteFsc, getUsuarioLogado(),
> cdSitCliente, telefones, cdsTipTel, cdCidadeKey);
>
>
>         setClienteFsc(clienteFsc);
>
>         //HERE I CALL THE MENTIONED METHOD
>         setValuesAbrirPageFsc();
>
>      } catch (Exception e) {
>         addActionError(SgvdbaConstants.ERRO_DEFAULT + e.getMessage());
>         return Action.INPUT;
>      }
>      return Action.SUCCESS;
>   }
>
>
> ---- POPULATES A JSP ----
> private void setValuesAbrirPageFsc(){
>      if (clienteFsc != null){
>         if (clienteFsc.getCd() != null){
>           clienteFsc =
> getClienteFacade().recuperarFscPorId(clienteFsc.getCd());
>           clienteFsc.setCep(MaskUtil.maskCep(clienteFsc.getCep()));
>           clienteFsc.setCpf(MaskUtil.maskCpf(clienteFsc.getCpf()));
>           setQtdTelefones(clienteFsc.getTelefones().size());
>
>           int i = 0;
>           List<Telefone> telefoneList =
> getTelefoneFacade().recuperarPorCliente(clienteFsc.getCd());
>           for (Iterator<Telefone> it = telefoneList.iterator();
> it.hasNext();){
>              Telefone telefone = (Telefone) it.next();
>              switch (i) {
>              case 0:
>                 telefone1 =
> MaskUtil.maskTelefone(telefone.getNumTel());
>                 valueTipoTelefone1 =
> telefone.getTipoTelefone().getCd();
>                 break;
>              case 1:
>                 telefone2 =
> MaskUtil.maskTelefone(telefone.getNumTel());
>                 valueTipoTelefone2 =
> telefone.getTipoTelefone().getCd();
>                 break;
>              case 2:
>                 telefone3 =
> MaskUtil.maskTelefone(telefone.getNumTel());
>                 valueTipoTelefone3 =
> telefone.getTipoTelefone().getCd();
>                 break;
>              case 3:
>                 telefone4 =
> MaskUtil.maskTelefone(telefone.getNumTel());
>                 valueTipoTelefone4 =
> telefone.getTipoTelefone().getCd();
>                 break;
>              }
>              i++;
>           }
>         }
>
>      }
>   }
>
>
> 2008/5/30 Márcio Gurgel <marcio.rga@(protected)>:
>
>> Hi!
>>
>> Tanks Stewart and Owen!
>>
>> Stewart, I tried by unit test case, and everything went well.
>> I guess that you discovered the reason of the problem (:
>>
>> As you saw, after update I call another action (redirect) to show the
>> data.
>> Now I tried to return a JSP as result, and the problem went away.
>> In fact the value stack from struts 2 are getting the old object state.
>> But I need to use redirectAction. Do you have any idea?
>>
>> You made some questions here are the answers (:
>>
>> "are both actions still on the stack, or just the last one to run?"
>> - Honestly I dont know...
>>
>> "One question - how are you committing your database changes?"
>> - Every database operation to update a object is inside a session.begin()
>> and after session.commit() and session.flush()
>>
>> Could the commit not be happening until after you try to get the updated
>> object? You mentioned doing a refresh and flush - shouldn't you do a flush
>> and commit first, and then the refresh?
>> - By debugging, I sow that after the update the comit() method is aways
>> called.
>> I also tried to flush the session before bringing the object from
>> database, no success too.
>>
>>
>> Thanks so much for your help and atention.
>>
>> Márcio Gurgel
>>
>>
>> 2008/5/30 Owen Berry <owen.berry@(protected)>:
>>
>> If you get Hibernate to log your queries, you can watch your log file and
>>> make sure that Hibernate is actually executing a select statement when
>>> you
>>> hit that page. If it's not, then it's definitely not Hibernate.
>>>
>>> On Thu, May 29, 2008 at 1:25 AM, Márcio Gurgel <marcio.rga@(protected)>
>>> wrote:
>>>
>>> > Hi all!
>>> >
>>> > I'm using struts 2 + hibernate.
>>> > I've a strange problem, if someone could give me a hand I'll be so
>>> > tankfull.
>>> >
>>> > If I persist a object in my app every things go well and all
>>> relationchips
>>> > are stored correctey correctly.
>>> > The problem occours when I update this object... After the update all
>>> data
>>> > are stored correctly too, but the problem is that my page shows the old
>>> > object (different from database).
>>> >
>>> > This could be some kind of cash from struts 2? Or my problem is just
>>> > hibernate?
>>> >
>>> > I tryed this methods to force a refresh after bring the object from
>>> > database
>>> > session.refresh(obj)
>>> > session.flush()
>>> >
>>> > Tank so much for attention!
>>> >
>>> > Márcio Gurgel
>>> >
>>>
>>
>>
>

Attachment: user_187067.ezm (zipped)

My Problem is the following :
1. When I trie to use the getThemes after the user post the submit button, I
have got a null exception value ? So I suspect the texfield name="... to be
uncorrect ?

My code is the following :

<s:form method="post" action="presidentThemes">
 <s:iterator value="themes" id="id">
     <s:textfield name="themes(%{id}).value" value="%{value}" />
<!-- code is converted to (in real html)
<input type="text" name="themes(1=Un petit theme).value" value="Un petit
theme" id="presidentThemes_themes(1=Un petit theme)_value"/>
-->
 </s:iterator>

 <s:submit name="submit" label="submit" value="submit" />
</s:form>

In the java class for the presidentThemes action ->

private Map<String, String> themes;
 public Map<String, String> getThemes() {    
   return themes;
 }

 public void setThemes(Map<String, String> themes) {
   this.themes = themes;
 }

thx in advance,
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_187071.ezm (zipped)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

maybe you mean this:

<s:form method="post" action="presidentThemes">
  <s:iterator value="themes" status="status">    
    <s:textfield name="themes(#status.index).value" value="%{value}" />
  </s:iterator>

Volker

thinair schrieb:
| My Problem is the following :
| 1. When I trie to use the getThemes after the user post the submit
button, I
| have got a null exception value ? So I suspect the texfield name="...
to be
| uncorrect ?
|
| My code is the following :
|
| <s:form method="post" action="presidentThemes">
|   <s:iterator value="themes" id="id">
|         <s:textfield name="themes(%{id}).value" value="%{value}" />
| <!-- code is converted to (in real html)
| <input type="text" name="themes(1=Un petit theme).value" value="Un petit
| theme" id="presidentThemes_themes(1=Un petit theme)_value"/>
| -->
|   </s:iterator>
|
|   <s:submit name="submit" label="submit" value="submit" />
| </s:form>
|
| In the java class for the presidentThemes action ->
|
| private Map<String, String> themes;
|   public Map<String, String> getThemes() {    
|      return themes;
|   }
|
|   public void setThemes(Map<String, String> themes) {
|      this.themes = themes;
|   }
|
| thx in advance,


- --
- -------------------------------

Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr

Tel. : (+49) 208-7785675
Mobil: (+49) 176-21056587
Mail : Volker@(protected)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD4DBQFIQbE0aEMQXBIqssERAu9fAJi+fc8/OUlY64gstblKeOw2l0ocAJ4q/uB7
6uk+0SFPTNBxVzG+h76cPw==
=cFBc
-----END PGP SIGNATURE-----


Attachment: user_187068.ezm (zipped)
Hi all,

i am able to configure it with struts2 application.
and its started working fine.

below is the code which i have written for this:


<html>

<head>

<title>Fix me!</title>

<style type="text/css">

@import "http://o.aolcdn.com/dojo/1.0.0/dijit/themes/tundra/tundra.css";

@import "http://o.aolcdn.com/dojo/1.0.0/dojo/resources/dojo.css"

</style>

<script type="text/javascript" src="
http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.js"

djConfig="parseOnLoad: true, isDebug: true"></script>

<script type="text/javascript">

dojo.require("dojo.parser");

dojo.require("dijit.form.TextBox");

dojo.require("dijit.form.Button");

</script>

<script>

function helloCallback(data,ioArgs) {

//alert(data);

alert("Hiiiiiiiiiiii");

}

function helloError(data, ioArgs) {

alert('Error when retrieving data from the server!');

}

</script>

</head>

<body class="tundra">

<form>

What's the 411? <input type="text" size="20" name="name"/ ><br>

<button dojoType="dijit.form.Button" id="helloButton" type="submit">

Hello World!

<script type="dojo/method" event="onClick">

dojo.xhrGet({

url: 'Test.action',

load: helloCallback,

error: helloError,

content: {name: dojo.byId('name').value }

});

</script>

</button>

</body>

</html>
now2 but i want that when the userclick the button the Test action will be
called, but i am not sure how will it will read the struts.xml file to find
out the appropriate action based on the configuration in struts2.xml file,

Currently it is showing the main page accurately but its not calling
the required action

any suggestion or help in this regard will be much appriciated.

Thanks
-aum

On 5/28/08, Dave Newton <newton.dave@(protected):
>
> It's no different than if you were using it with any other web
> framework.
>
> Dave
>
> --- aum strut <aum.struts@(protected):
>
> > Thanbks for the infomation.
> >
> > my question was that i want touse DOJO 1.x with STruts2 but hvae no
> > idea how
> > to configure DOJO 1.x with Struts2 Project.
> > if any body there using this can point me out the way , how to use
> > DOJo 1.x
> > independently with Struts2 without using Struts2 Ajax Tag.
> >
> >
> > Thanks in advance,
> > -aum
> >
> >
> > On 5/27/08, duschhaube <duschhaube@(protected):
> > >
> > > Hi,
> > >
> > >
> > > with dojo 1.1 you can use different versions of dojo.
> > > look here
> > >
> >
>
> http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo-and-dijit/multiple-versions-dojo-page
> > >
> > > so you can use dojo1.1 and dojo-struts-tags (dojo0.43) at the same
> > time
> > >
> > > aum strut schrieb:
> > >
> > >> Hi All,
> > >>
> > >> Is there any one who is using DOJO 1.X with the Struts2.
> > >>
> > >> we are aslo trying to use DOJO with Struts2(Without using struts2
> > ajax
> > >> tags)
> > >>
> > >>
> > >>
> > >> Thanks & Regards,
> > >> aum
> > >>
> > >>
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_187069.ezm (zipped)
My thoughts too, but this is when the sharing begins displaying the data
from another user's session. Not realizing it is NOT their account
information they proceed with submitting the form for an update. For
example, pay bill. Without looking at the account information on the
screen, the user assumes that since they authenticated with their user
id and password that it is THEIR account information being displayed, so
they continue with entering payment information and submitting the form.
Originally, it was the account stored in session, but at some point, for
example when the pay bill page displayed, it was using the account
object from another user's session.

I'm not sure why we are having the issue of session data being shared.
I'm resorting to finding someone who has either seen something similar
or can recommend a workaround.

Any suggestion at this point will be extremely helpful!

Paula

-----Original Message-----
From: news [mailto:news@(protected)
Sent: Thursday, May 29, 2008 5:59 PM
To: user@(protected)
Subject: Re: Session Data overlap?

That wouldn't be an issue, in and of itself; it's normal usage. What
makes you think that's the source of the problem?

L.

McDowell, Paula wrote:
> There are session variables that are used in the jsps to display the
> account information. I think it's here where the problem lies, but
I'm
> not sure why. Here is an example of the account session variable
being
> used on the page. Any thoughts as to why this would be an issue?
>
> Thanks,
> Paula
>
> <tr>
>  <td>
>    <c:out value="${account.custName}" />
>  </td>
> </tr>
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@(protected)]
> Sent: Thursday, May 29, 2008 10:38 AM
> To: Struts Users Mailing List
> Subject: RE: Session Data overlap?
>
> --- "McDowell, Paula" <Paula.McDowell@(protected):
>> Thanks. I don't have any static variables. . . I'm assuming you are
>> speaking of the contextRelative attribute on forwards? If not,
>> please explain actions defined as Context-level.
>
> I think he was asking if your actions have any member variables that
> shouldn't be shared across requests/sessions/etc.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> Private and confidential as detailed here:
http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access
the link, please e-mail sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


Private and confidential as detailed here: http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the link, please e-mail sender.

Attachment: user_187070.ezm (zipped)

very little we can help you with until we see the effected code
for example we have account Name clearly scoped as session
<s:set name="accountName" value="accountName" scope="session" />not much room for obfuscation here as the jobz object is clearly scoped as request
<s:property value="#session\['accountName'\]"/>

HTH
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.


> Subject: RE: Session Data overlap?
> Date: Sat, 31 May 2008 09:17:33 -0500
> From: Paula.McDowell@(protected)
> To: user@(protected)
>
> My thoughts too, but this is when the sharing begins displaying the data
> from another user's session. Not realizing it is NOT their account
> information they proceed with submitting the form for an update. For
> example, pay bill. Without looking at the account information on the
> screen, the user assumes that since they authenticated with their user
> id and password that it is THEIR account information being displayed, so
> they continue with entering payment information and submitting the form.
> Originally, it was the account stored in session, but at some point, for
> example when the pay bill page displayed, it was using the account
> object from another user's session.
>
> I'm not sure why we are having the issue of session data being shared.
> I'm resorting to finding someone who has either seen something similar
> or can recommend a workaround.
>
> Any suggestion at this point will be extremely helpful!
>
> Paula
>
> -----Original Message-----
> From: news [mailto:news@(protected)
> Sent: Thursday, May 29, 2008 5:59 PM
> To: user@(protected)
> Subject: Re: Session Data overlap?
>
> That wouldn't be an issue, in and of itself; it's normal usage. What
> makes you think that's the source of the problem?
>
> L.
>
> McDowell, Paula wrote:
> > There are session variables that are used in the jsps to display the
> > account information. I think it's here where the problem lies, but
> I'm
> > not sure why. Here is an example of the account session variable
> being
> > used on the page. Any thoughts as to why this would be an issue?
> >
> > Thanks,
> > Paula
> >
> > <tr>
> >  <td>
> >    <c:out value="${account.custName}" />
> >  </td>
> > </tr>
> >
> > -----Original Message-----
> > From: Dave Newton [mailto:newton.dave@(protected)]
> > Sent: Thursday, May 29, 2008 10:38 AM
> > To: Struts Users Mailing List
> > Subject: RE: Session Data overlap?
> >
> > --- "McDowell, Paula" <Paula.McDowell@(protected):
> >> Thanks. I don't have any static variables. . . I'm assuming you are
> >> speaking of the contextRelative attribute on forwards? If not,
> >> please explain actions defined as Context-level.
> >
> > I think he was asking if your actions have any member variables that
> > shouldn't be shared across requests/sessions/etc.
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> > Private and confidential as detailed here:
> http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access
> the link, please e-mail sender.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> Private and confidential as detailed here: http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the link, please e-mail sender.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008
©2008 gg3721.com - Jax Systems, LLC, U.S.A.