Wesley,

You can contribute a custom exception page in your module class:

public static void contributeApplicationDefaults(MappedConfiguration<String,
String> configuration) {

            configuration.add(SymbolConstants.EXCEPTION_REPORT_PAGE,
"ProductionException");
}

As for your initial issue, you should never have a url like 'index.form'
unless there was an unhandled exception on form submit.  It sounds like you
just arent redirecting after you post your form.

Zack


wesleywj2 wrote:
> 
> that is the problem, typically when user close their browser, they will
> save the state as index.pageForm, i don't know why. they will either hit
> the refresh button or hit enter button on the address bar and cause this
> exception to be thrown. what's really uneasy is the exception shows up all
> the app server information. i know i can turn the app to production mode,
> but it just doesn't look nice. is there any way to throw custom exception
> page when it hits this error?
> 
> please advice,
> wesley
> 
> 
> 
> Onno Scheffers-3 wrote:
>> 
>> You should type the url of your page in the browser and not the url of
>> your
>> component:
>> http://localhost:8080/myapp/index<http://localhost:8080/myapp/index.pageForm>
>> 
>> Typing an URL in the browser typically causes a GET-request instead of a
>> POST-request. The form-component is part of the page and will
>> automatically
>> POST its query-parameters to http://localhost:8080/myapp/index.pageForm
>> when
>> the form is submitted in the browser.
>> 
>> 
>> - Onno
>> 
>> 
>> 
>> On Mon, Apr 27, 2009 at 11:03 AM, wesleywj2 <wesley...@yahoo.co.uk>
>> wrote:
>> 
>>>
>>> hi,
>>>
>>> when i type this url in my browser and hit enter,
>>> http://localhost:8080/myapp/index.pageForm
>>> it throws "Forms require that the request method be POST and that the
>>> t:formdata query parameter have values." exception. index is my
>>> first/login
>>> page, where pageForm is the id of my form. why it throws error? anyway
>>> to
>>> intercept it? and show other page other than the standard exception
>>> page?
>>>
>>> please advice,
>>> wesley
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23252483.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>> 
>> 
>> -- 
>> *
>> Winston
>> Churchill<http://www.brainyquote.com/quotes/authors/w/winston_churchill.html>
>> - "The best argument against democracy is a five-minute conversation
>> with
>> the average voter."
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23271706.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to