About Question enthuware.jwpv6.2.758 :

Moderator: admin

Post Reply
webdeveloper
Posts: 8
Joined: Tue Jan 19, 2016 9:05 pm
Contact:

About Question enthuware.jwpv6.2.758 :

Post by webdeveloper »

What does the last option mean. should "amount of output" be actually "number of output". By "amount of output" this means the size of output.

webdeveloper
Posts: 8
Joined: Tue Jan 19, 2016 9:05 pm
Contact:

Re: About Question enthuware.jwpv6.2.758 :

Post by webdeveloper »

Anyone?

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.758 :

Post by admin »

Sorry for the delay. It does imply size and that is also the intention of the option.
If you like our products and services, please help us by posting your review here.

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.758 :

Post by himaiMinh »

For the last option "both forward and include allows the caller resource to generate any amount of output."
The explanation implies that if the output has already been committed/ flushed before the forward, the forward will throw the IllegalStateException.
I think whether the output is committed before the forward and how many kilobytes of the output are not related.

The question is asking if forward allows the caller to generate any size of output. But the explanation is saying if the output has been committed , the output cannot be forwarded.

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.758 :

Post by admin »

The problem is if the a certain amount of output (i.e. more than the size of the cache) has already been generated, the response would have been committed. You can't forward it to another resource anymore. Therefore, whether the output is committed before the forward and how many kilobytes of the output are indirectly related.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

kemosabe
Posts: 9
Joined: Fri Oct 09, 2015 3:52 am
Contact:

Re: About Question enthuware.jwpv6.2.758 :

Post by kemosabe »

One of the correct answers was:
A call to forward() clears the output buffer before the target resource is invoked.
This sounds like the output buffer contents are deleted. Is that so, or is it better to that the output buffer is flushed?

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.758 :

Post by admin »

Yes, the buffer contents are deleted not flushed. Flushed means, sent to the client.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests