1) You need to use flush="true" on your template:get tags in the template. 

2) Did you deploy your WAR correctly? -- Check to make sure you don't have
an extra folder app folder under app in default_host.

3) Haven't used Struts' DataSource functionality, I'm afraid I can't help
you there - it doesn't look like it should be a problem, but I can't make
any guarantees. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax:     412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-----Original Message-----
From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:28 PM
To: [EMAIL PROTECTED]
Subject: A Few questions about struts and WebSphere


I tried to move my struts app from Visual Age Tomcat Test
Environment to WebSphere.

It works, but not as expected. I have build my app using strut's
template tags and it seem that WebSphere gets confused about
those. It doesn't include template files in correct order and it
gets very messy. Have anyone solved this? Ok maybe I can use
normal includes (not tried yet) or write a batch that flattens those
pages.

Secondy WebSphere doesn't like redirects. When I have
specified redirect in my action mapping this is what happens:

http://localhost/app/test.do has button or link that executes or
not an action and then redirects to test2.do that is in same path
as test.do, but instead of getting there WebSphere redirects
browser to http://localhost/app/app/test.do. Where does this
extra app folder came from? I can stop using redirects, but I
don't want to because some of my pages like to do redirect
to empty the populated forms for example.

Then I have question about database pooling. I have used
struts's struts-config.xml to define my data sources and my
action classes use this kind of method to retrieve one:

DataSource ds = (DataSource)servlet.getServletContext()
.getAttribute(Action.DATA_SOURCE_KEY);

Now I'd like to start using connection pooling facilities that
WebSphere provides. Can I still use struts-config.xml to
define the datasource that I'd like to retrieve from
WebSphere JNDI, and how? If not then, because I'm very
new to Java and WebSphere, I want to ask,  how do I
replace code sample above to take advantage of WebSphere?

Thanks.

Kind Regards
Aapo Laakkonen

-- Aapo Laakkonen, +358 (50) 33 99 682, ProjectCast Ltd, Helsinki, Finland.

Reply via email to