I have a jsp that displays a list. I have an add button at the top of the page that I want to allow users to add to this list. When the user clicks on the add button I want the user to be forwarded to the a new jsp(the add jsp). I also want to have edit buttons at the end of each list entry that would go to the same page as the add, but in edit mode. What is the best way to achieve this funtionality? I have done it in the past using servlets and struts, but my new project is using portlets and I am a little confused. Right now my viewList jsp is being called through the doView() method of the portlet. Any thoughts?
Ok, they're adding to a list. What kind of crazy list is it? Is it personal, that only effects the user, or may someone else have access to it.
You're going to edit mode? Why? To use PortletData? So the list effects the way the portlet renders?
Maybe you should look at a mega portal site and see if they've got anything similar. When I add stocks to my list of stocks at excite.com, they force me to go into the edit mode from the start. Then I can add to the list. I can't add to the list from the view mode - it'd be nice, but it's simply not an option. I'm sure excite.com has thought about it, but realized it just isn't possible.
There's a mind shift that has to happen to use the portal. You're trying to bend the portal to work like your struts app. From personal experience, I've found that the WebSphere Portal Server is made of very brittle material - it's strong, but it doesn't bend well.