> -----Original Message----- > From: Geise, Torsten [mailto:[EMAIL PROTECTED] > Sent: 19 September 2003 11:35 > To: Cactus Users List > Subject: AW: init parameters > > Hi Vincent, > > the fact is: my WebApplication works fine. Its a struts application. I > define init-parameters for this servlet, taglibs and all other needed > configuration in web.xml. Without cactus all is working. > With cactus all configuration seems to be empty. No taglib-mapping, no > init-parameters. Really nothing. > Therefore i think, this is a problem with cactus integration. >
I thought I explained this already in a previous email... ;-) You have to put the init-parameters under the servlet redirector definition and not under your own servlet. That's one solution. The other solution (recommended as easier) is simply to use config.setInitParameter(...) in your testXXX() method. > For my taglib-Problem i found this fix. i rename my taglib-uri from > tiles.tld to tiles (without extension). Then it works fine. But without > cactus, there is no need to do that. Why? I have no idea. Hmm.. The only thing I could see would be that the cactifywar task removes taglib mappings in web.xml. Can you please check the generated web.xml (in the cactified war file)? > > Furthermore, i thought, that the redirector instantiate the servlet whose > context is simulated via WebRequest.setURL or > cactus.properties.contextURL. Nope. The redirector only instantiate your test class. That's all. Please check the Cactus web site for more details on how Cactus works. Thanks -Vincent > > Thanks for your assistance. > Torsten > > > -----Urspr�ngliche Nachricht----- > > Von: Vincent Massol [mailto:[EMAIL PROTECTED] > > Gesendet: Freitag, 19. September 2003 11:20 > > An: 'Cactus Users List' > > Betreff: RE: init parameters > > > > > > Hi Torsten, > > > > I fail to see what's the link of your question with Cactus? > > Can you explain a bit more so that I can help? > > > > Thanks > > -Vincent > > > > > -----Original Message----- > > > From: Geise, Torsten [mailto:[EMAIL PROTECTED] > > > Sent: 19 September 2003 11:19 > > > To: Cactus Users List > > > Subject: AW: init parameters > > > > > > Hi Vincent, > > > > > > > -----Urspr�ngliche Nachricht----- > > > > Von: Vincent Massol [mailto:[EMAIL PROTECTED] > > > > > > > > Cactus doesn't read any tag from web.xml. The container does. > > > > > > > > > > OK, the container read the web.xml, of course. But why the jsp-page > > cannot > > > resolve the tld-uri. If i replace the tld-name (<%@ taglib > > uri="struts- > > > tiles.tld" prefix="tiles" %>) with the tld-location (<%@ taglib > > uri="/WEB- > > > INF/tlds/struts-tiles.tld" prefix="tiles" %>), then it works. > > > > > > Thanks, > > > Torsten. > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
