If you want to edit an entity, you just need to get it from the datastore,
set some properties on it and the PersistenceManager will save this changes
when you call pm.close().

You might consider using a framework like Spring for handling form
submissions.  You can also use a normal Servlet, but this can become
difficult to maintain.




On Thu, Aug 12, 2010 at 7:20 AM, prakhil samar <[email protected]>wrote:

>
> Hi Ikai,
>
> I m waiting for your reply is there anything that i didnt explained
> correctly, please do tell me
>
>
> Thanks
>
>
> On Aug 11, 9:26 am, prakhil samar <[email protected]> wrote:
> > Thanks Ikai,
> >
> > I had already read some of the docs from google code about java and
> > data stores
> > I had stored and retrived my data through data store but want a edit
> > and update functionality in my application for that i have to use a
> > primary key
> >
> >  Written this code --
> >     @PrimaryKey
> >     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> >      private Key key;
> >
> > I made a java page in which i m writing all my setter and getter
> > methods and this key
> > Then, I made a jsp page and in that made a form for a user to enter
> > the data and as he press submit it will display on the same page his
> > data entered in a table.
> > Now i want to edit the data and show it in the form so that user can
> > edit and then update the data
> >
> > I have made this sample application, please visit this link
> >
> >                    http://pur10app.appspot.com/
> >
> > Here in Employee Form i want the edit and update functionality
> >
> > Please help me out
> >
> > Thanks, in advance
> >
> > On Aug 10, 10:38 pm, "Ikai L (Google)" <[email protected]> wrote:
> >
> >
> >
> > > You'll want to read the docs and do the tutorials that are available.
> Many
> > > new developers find that a self-guided approach is the most effective
> for
> > > learning a new skill.
> >
> > >http://code.google.com/appengine/docs/java/gettingstarted/https://sit.
> ..
> >
> > > On Mon, Aug 9, 2010 at 9:15 PM, prakhil samar <[email protected]
> >wrote:
> >
> > > > Hi all
> > > > I m new to  Google App Engine and JAVA i m building an applciation in
> > > > which data is to be saved and retrieved as and when required (Add,
> > > > Edit, Update functionality is must). please someone tell me how to do
> > > > that, i m using Eclipse IDE and java language, I have Added the data
> > > > in data store but how to edit and then update that data PLease help
> > > > me, its urgent..........
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google App Engine" group.
> > > > To post to this group, send email to
> [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-appengine%[email protected]>
> <google-appengine%2bunsubscrib­[email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine?hl=en.
> >
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/appengine- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Pieter Coucke - Onthoo BVBA <http://www.onthoo.com/>
zamtam.com <http://www.zamtam.com> in The
Netherlands<http://www.koopjeszoeker.com/>| Belgium (
nl <http://www.koopjeszoeker.be/> | fr <http://fr.zamtam.be/>) |
France<http://www.zamtam.fr/>|
Germany <http://www.zamtam.de/> | UK
<http://www.zamtam.co.uk/><http://www.zamtam.co.uk/>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to