• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FrontPage, call, Servlet, Forwarded, Rendered, what's wrong?

 
J. Insi
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello guys...!!
I'm having a question here.

Actually, is it wrong if my flow use this one;

1) FrontPage have a link
2) Link call ajax (call a Servlet)
3) Servlet Request some data from DB and also this Servlet assign some session variables
4) Forwarding the page using RequestDispatcher --> actually calling another jsp
6) JSP rendered and returned into ajax call
7) Interface updated obtained.

Is that correct way to go through?

OKay, let me start from number 2-Link call ajax

Whereas the refine-datatable-bank is the url which is firstly from jsp.

Then, the number 3-Servlet Request data from DB ( i just put 'X' variable, we assume it's database data okay?)
and then forwarding 'em into the interface.


Okay, then the last number 6-Rendering the value obtained from session;


But why it doesn't give me a returned anything ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic