AW: page name hardcodding

"Bernhard Woehrlin" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Organization IT.CappuccinoNet.com
Message-ID <000d01c3be41$d4d004a0$4b01a8c0@javaws>
Hi Sergey,

Quite good hint! Thanks. Feel free to pass the pointer to the
strutscx-definitions as parameter to your Action. The Actions of the
sample application(s) are intended for learning and demonstrate just one
of many solutions.

Regards,

Berny



-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Sergey
Smirnov
Gesendet: Dienstag, 9. Dezember 2003 10:58
An: [email protected]
Betreff: [Strutscx-user] page name hardcodding

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
_______________________________________________
Strutscx-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strutscx-user




-------------------------------------------------------
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_id78&alloc_id371&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.