GeeCON Prague 2014*
The moose likes JSP and the fly likes FrontPage, call, Servlet, Forwarded, Rendered, what's wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "FrontPage, call, Servlet, Forwarded, Rendered, what Watch "FrontPage, call, Servlet, Forwarded, Rendered, what New topic
Author

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

J. Insi
Ranch Hand

Joined: Aug 11, 2010
Posts: 90

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 ??
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: FrontPage, call, Servlet, Forwarded, Rendered, what's wrong?