struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Thiebaud <cthieb...@stylo.it>
Subject error with parameters
Date Mon, 09 Oct 2000 17:29:37 GMT
Is there a way to use parameterized errors with struts ?

in the example application the file ApplicationResources.properties
has several string with a {0] tag, 
(e.g. linkSubscription.noSubscription=No subscription under attribute {0}

but these strings are used only to throw  JspException objects, like in:

	// Print this element to our output writer
	JspWriter writer = pageContext.getOut();
	try {
	    writer.print(results.toString());
	} catch (IOException e) {
	    throw new JspException
		(messages.getMessage("linkSubscription.io", e.toString()));
	}

there is no way currently to have the struts tag ErrorsTag handle parameterized
errors.

how do struts users manage that ?

Christophe

Mime
View raw message