Let me be more specific about what's happening...

1.  In my jsp, I loop through a list of Transactions and display them
in a table.  At the right-most column, there's a delete button.
2.  When that delete button is pushed, an indicator ("delete") plus
Transaction.getKey() are stored as a request parameter.  Also, a
servlet is called to handle the delete button click.
3.  Inside the servlet, this is the code that's used to process any
request parm that has delete in it...

        for (Enumeration e = req.getParameterNames(); e.hasMoreElements
();) {

                parms = (String)e.nextElement();

                System.out.println("parm="+parms);

                if (parms.contains("delete")) {
                        recordDelete = true;

                        Transactions trans = 
pm.getObjectById(Transactions.class,
parms.replace("delete", ""));

                        pm.deletePersistent(trans);

                        System.out.println("Key=" + parms.replace
("delete", ""));
                }
        }

4.  And, of course, when trying to use getObjectById, that's when the
exception is thrown.

I'm hoping someone can comment on this.  I'm sure it's an easy fix to
get around the problem... some little thing I'm just not seeing.

On Nov 20, 7:21 am, zackmac <[email protected]> wrote:
> I figured I was - "parms.replace("delete",""))" - if the key is an
> unencrypted string, I though I could just pass it in...
>
> On Nov 19, 1:21 pm, datanucleus <[email protected]> wrote:
>
> > > Not sure what I'm missing here...
>
> > Putting the correct identity "key" in ?
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.


Reply via email to