• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

send data to jsp from swings

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want send arraylist to jsp,

I write code like this


menu=new JPopupMenu();
if(flag==true)
{
menu.add(new AbstractAction("Registration")
{
public void actionPerformed(ActionEvent e)
{
NewWindow("http://localhost:8888/prototype/Reception/reception_registration_ipregistration.jsp"); }
});
menu.addSeparator();
menu.add(new AbstractAction("Allocation")
{
public void actionPerformed(ActionEvent e) { NewWindow("http://localhost:8888/prototype/Clinicalwards/wards_bedmanagement_badallocation.html"); }
});
menu.addSeparator();
menu.add(new AbstractAction("Change Status")
{
public void actionPerformed(ActionEvent e) { NewWindow(""); }
});
menu.show(moe.getComponent(),moe.getX(), moe.getY());


void NewWindow(String str)
{
try{
URL url=new URL(str);
AppletContext context=getAppletContext();
context.showDocument(url,"_blank");
}
catch(Exception e)
{
e.printStackTrace();
}
}

i set all html in tomcat server,

my swing application is in Jboss.

How to send arraylist to jsp which is in tomcat,

Help me,

Thanks in advance
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Send the values in the query string.

e.g.

http://localhost:8888/prototype/Reception/reception_registration_ipregistration.jsp?array1=383&array2=583

and get the parameters in your jsp.

Regards,

Ajit
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic