• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

pager-taglib problem wrong Struts-config file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hallo,

I'M using the pager-taglib Lib tu pager tables. My Problem is, that this library is using the standardmodul Struts-config.xml. My Actions of the jsp are in struts-care.xml or struts-view.xml. When I ckick one of the offset, he is searching in struts-config. My Action and Formbean lieng unter der packege care / view. How can I configure the pager to use the right struts-config.xml.

Thanks
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dimitri,

Welcome to JavaRanch

It's been a long time since i last used Struts. As far as i know, the ActionServlet in the web.xml can be passed an init-param which will point to the struts configuration file. Something like:

<blockquote>code:
<pre name="code" class="core">
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/struts-care.xml</param-value>
</init-param>
</pre>
</blockquote>

I think, the param-value for this config supports comma separated values, which means that you can specify multiple files.

I'll move this to our Struts forum, where you might get more help.

P.S: Later on, if this turns out to be specific to the taglib being used, then the moderator is free to move this back to "Other Open Source Projects" forum.
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic