Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pager-taglib problem wrong Struts-config file  RSS feed

 
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
Sheriff
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!