aspose file tools*
The moose likes Struts and the fly likes pager-taglib problem wrong Struts-config file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pager-taglib problem wrong Struts-config file" Watch "pager-taglib problem wrong Struts-config file" New topic
Author

pager-taglib problem wrong Struts-config file

Dimitri Bryjak
Greenhorn

Joined: Jul 16, 2008
Posts: 1
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

Joined: Jul 20, 2005
Posts: 10065
    
163

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.


[My Blog] [JavaRanch Journal]
 
wood burning stoves
 
subject: pager-taglib problem wrong Struts-config file