About Question enthuware.jwpv6.2.758 :
Moderator: admin
-
- Posts: 8
- Joined: Tue Jan 19, 2016 9:05 pm
- Contact:
About Question enthuware.jwpv6.2.758 :
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.
-
- Posts: 8
- Joined: Tue Jan 19, 2016 9:05 pm
- Contact:
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.758 :
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.
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.758 :
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.
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.
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.758 :
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.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 9
- Joined: Fri Oct 09, 2015 3:52 am
- Contact:
Re: About Question enthuware.jwpv6.2.758 :
One of the correct answers was:
This sounds like the output buffer contents are deleted. Is that so, or is it better to that the output buffer is flushed?A call to forward() clears the output buffer before the target resource is invoked.
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.758 :
Yes, the buffer contents are deleted not flushed. Flushed means, sent to the client.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 1 guest