Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pager-taglib problem wrong Struts-config file

 
Dimitri Bryjak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic