page name hardcodding

"Sergey Smirnov" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
The definitions for xsl files are mentioned in the strutscx-config.xml.
However, the references to the those definitions are hardcodded into actions
such as:

// pointer to the strutscx-definitions
String xslFile = "info.html4.create";
logger.debug("go to use this strutscx-definition: " + xslFile);
// set the XSL file name to the HttpServletRequest
request.setAttribute(StrutsCXConstants.XSL_KEY, xslFile);

Bernhard, why dont you use some existing way to pass this definition to
action, such as parameter attribute of action?

Regards,
Sergey Smirnov





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.