File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 ??
 
Consider Paul's rocket mass heater.
 
subject: FrontPage, call, Servlet, Forwarded, Rendered, what's wrong?
 
Similar Threads
[ajax][jsf][javaEE] double click issue
undefined value on return from auto-complete
Multipart request problem
Cannot recognize conten type = "multipart/form-data" in JSP
Heap Dump