This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes struts-config.mxl problem! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-config.mxl problem!" Watch "struts-config.mxl problem!" New topic

struts-config.mxl problem!

Kevin Devenney

Joined: Jul 31, 2002
Posts: 5
I have just started using struts and have come across a problem with my struts-config file. The probelm is when i have an '&' symbol in my forward path i get an javax.servlet.jsp.Jspexception:can't get the definitions factory from context. e.g.
<action path="/loadRoles"
<forward name="success"
Without the '&' symbol every thing works fine but i this doesn't help as i need to pass across some parameters. Does anyone have any ideas?
Help would be much appreciated!
Mon Mayor
Ranch Hand

Joined: Mar 07, 2002
Posts: 40
try &
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17148

Originally posted by Mon Mayor:
try &

Did you mean "&amp;"?. The struts-config.xml file isn't the only resource where you have to escape the "infamous 5" (& < > " ' ) !
[ August 01, 2002: Message edited by: Tim Holloway ]
And I see the JavaRanch graemlins like to add their $.02 worth just trying to say that!
[ August 01, 2002: Message edited by: Tim Holloway ]

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: struts-config.mxl problem!
It's not a secret anymore!