01: package com.sun.portal.sra.desktop.commands;
02:
03: import java.io.IOException;
04:
05: import javax.servlet.http.HttpServletRequest;
06: import javax.servlet.http.HttpServletResponse;
07: import javax.servlet.http.HttpSession;
08: import java.util.HashMap;
09:
10: import com.sun.portal.sra.beans.IProviderBean;
11: import com.sun.portal.sra.beans.ProviderBeanImpl;
12:
13: public class NetletEditContentCommand implements Command {
14:
15: public NetletEditContentCommand() {
16: }
17:
18: /* (non-Javadoc)
19: * @see com.sun.portal.sra.desktop.commands.Command#execute(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
20: */
21: public void execute(HttpServletRequest req,
22: HttpServletResponse res, HashMap providerMap)
23: throws IOException, CommandExecutionException {
24:
25: IProviderBean bean = new ProviderBeanImpl();
26:
27: bean.set_HtmlContent(new StringBuffer("Netlet Edit Page Here"));
28:
29: HttpSession session = req.getSession(true);
30: session.setAttribute("PROVIDER_BEAN", bean);
31:
32: }
33:
34: }
|