• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts-config.mxl problem!

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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"
type="com.x.y.z.ProfileAction"
name="ProfileForm"
scope="request"
validate="false">
<forward name="success"
Path="/profile.jsp?user=hr&form=loadRoles"/>
</action>
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!
Kevin
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try &
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic