The code is essentially the following:

  |                             ctx = new InitialContext();
  |                             HttpSession session = request.getSession();
  |                             home = (AgentHome)ctx.lookup( AgentHome.JNDI_NAME );   
                                  
  |                             
  |                                     //Use this method to retrieve a parameter from 
the request.
  |                             String id = request.getParameter("id");
  |                             agent = home.findByPrimaryKey( new AgentPK(id) );
  |                             log.debug("Agent "+id+" retrieved");
  |                                             
  |                             EditAgentForm eaf = new EditAgentForm();
  |                             eaf.setId( agent.getId() );
  |                             eaf.setName( agent.getName() );
  |                             eaf.setDescription( agent.getDescription() );
  |                             eaf.setQuery( agent.getQuery() );
  |                             eaf.setUserId( agent.getUserId() );
  |                             
  |                             Collection engines = agent.getSearchEngines();
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841220#3841220

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841220


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to