• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

about response returns to page of request

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I want to send a request from jsp(a.jsp) to servlet(b.java).then I hope result of response can display in different frame of a.jsp.
I dont know if I have described it clearly.
[ March 31, 2003: Message edited by: qingw wang ]
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you are calling the Servlet set the TARGET to a different Frame
 
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have developed an application like that case.
But my application is not using frame.
My application is about search data page (A.jsp). After users type keyword and click FIND button, client browser will send request data which contains the keyword and the ID of request.
Example code in client's browser(using JavaScript) :
function PostOrder( url )
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", url, false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send();
respText = xmlhttp.responseText;
return respText;
}
Example of url : request.list?id=LIST&keyword=Car
At the server side, there is servlet class as controller which redirect the request into the appropriate helper class according to the ID of request.
This helper class is used to get data from database and compose the result into XML data.
That result will send back to client's browser by controller.
The client's browser will receive , parse and show that data in the same page (A.jsp) in different DIV tag.
Correct me if i am wrong..
and hope this help you
daniel
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Sivakumar,Fisher
I cannt believe if I will using frame.
In fact,I want to develop one ordermenu's system in the cabaret on PDA platform.I use UDP transfer String of xml format to server Server listens at a fixed port and accept data then response to browser.Browser receive data of responsed,then parsed the string.well,I want to display it(parsed and seperated) at the same page of request.
I want to dispay at one fixed line on the top of page.
for example.
In the requesting page,there r many button respresenting of sorts food,when I clicked fish button,I wish fish can be displayed as one line text on the top of the page.now,we ignore some process.how to resolve I request a string and display it on top.of course.My English is poor.I don't know if I have described it clearly.
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on the other side,PDA perhaps only supports limited packages
reply
    Bookmark Topic Watch Topic
  • New Topic