Migration problem from 2.0.x to 2.1.6

2010-05-26 Thread Gwen Harold Autencio
Hi, I got a Servlet which doesn't extends to an action. Looking for a work around without extending the servlet to an action because it's already has extends another class. Any ideas ? I'm getting this in the logs 2010-05-27 13:46:44,962 [btpool0-8] WARN org.apache.struts2.dispatcher.Dispatc

action chain tag

2010-05-26 Thread ennidhi
There is a action tag like this in my application. What happens here? whether the request goes to the render action or the page product_main.jsp is displayed? How to find this? Thanks render product_main.jsp --

Re: PRG pattern question

2010-05-26 Thread Chris Pratt
If you search the forum, someone posted an Interceptor (quite a while ago) that saves the Action/Field Errors/Messages in the Session so that they will survive a redirect. It could easily be extended to do what you require. (*Chris*) On Wed, May 26, 2010 at 5:45 AM, szerintedmi wrote: > Hi Ev

SV: SV: SV: PersistenceFacade

2010-05-26 Thread Søren Blidorf
I feel like such an ass. During the upgrade I must have deleted an initparam from the struts-config, and that was why the PersistenceFacade didn’t work. Sorry for wasting your time, but thanks for the effort. Soren -Oprindelig meddelelse- Fra: ch...@chrismiles.org [mailto:ch...@chrismil

Re: SV: SV: PersistenceFacade

2010-05-26 Thread chris
Struts is only a facade round the existing JSP and servlet technologies so I cant personally see them causing the problem (prove me wrong?). Coincidences happen I am afraid (to myself included). Good luck debugging your code. Chris > I will do that. Thanks. > > But what I don’t understand is that

SV: SV: PersistenceFacade

2010-05-26 Thread Søren Blidorf
I will do that. Thanks. But what I don’t understand is that I have not changed the PersistenceFacade.java and the classes that uses it has not been changed either. I have only upgraded Struts and the dependencies. Soren -Oprindelig meddelelse- Fra: ch...@chrismiles.org [mailto:ch...@chr

Re: SV: PersistenceFacade

2010-05-26 Thread chris
This appears not to be a Struts problem, just a coincidence as it clearly states the problem is a null pointer exception, but I will point you to an partial answer anyway. When closing a database connection like that you should always check that it is not null before closing it. Why it is null I c

Re: PRG pattern question

2010-05-26 Thread Greg Lindholm
I don't believe there is any canned "best practice" solution for this issue. My apps do the same thing; on a successful post I redirect to a get, on a validation error they simply forward back to the jsp so as to preserve the input data. It is possible to manually include all your form fields data

RE: PersistenceFacade

2010-05-26 Thread Martin Gainty
i would strongly suggest you re-consider *not* publishing the username/password to your database.. in fact changing the username/password asap (if someone can ping your mailing address IP and append 3306 they can might be able access your database) suppose: your host is NewOrleansCommandCen

SV: PersistenceFacade

2010-05-26 Thread Søren Blidorf
Of course. Here it comes 75203 [http-80-Processor24] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/hb].[jsp] - Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at nc.persistence.PersistenceFacade.closeConnection(PersistenceFacade.jav

Re: PersistenceFacade

2010-05-26 Thread chris
Hi, You would need to post your strack trace and where the problem happens. Chris > Hi. > > > > I have used the following code with struts 1.2x and it works just fine. > Now > I have upgraded to Struts 1.3.10. > > > > Now I get the following error when I try to login to my Struts app. > > > > Ca

PersistenceFacade

2010-05-26 Thread Søren Blidorf
Hi. I have used the following code with struts 1.2x and it works just fine. Now I have upgraded to Struts 1.3.10. Now I get the following error when I try to login to my Struts app. Can anybody point me in the right direction. Soren, DK The Code: package nc.persistence;

Re: Struts2+Spring2+Interceptor+Invalid action class configuration that references an unknown class named

2010-05-26 Thread rocks
Thanks Wes for reply. I figured out that we can only forward to jsp not to action from interceptor. So Now I am forwarding to jsp from interceptor and it's working fine. Below is my changed code in struts.xml and LoginInterceptor.java. [code] http://struts.apache.org/dtds/struts-2.0.dtd";>

PRG pattern question

2010-05-26 Thread szerintedmi
Hi Everybody, I would like to ask some advice implementing PRG pattern with struts2 (using 2.0.14). I can easily handle a normal scenario : 1.GET showItem.action?itemId=1 result: showItem.jsp 2. POST saveItem.action result: redirect-action: success?itemId=1 3. GET success?itemId =1 result

Re: Additional JSP to render via AJAX

2010-05-26 Thread stanlick
This should be a much simpler technique for you. Peace, Scott On Tue, May 25, 2010 at 11:34 AM, Oscar wrote: > Hi to all, have a good day, i have a doubt about Struts 2.1.8 and AJAX > with dojo, using dojo struts tags. My doubt is the next: Suppose t

Re: Need Help For Struts2 Debugging

2010-05-26 Thread aum strut
DO any one have other way to do this job done??? Please share their ideas On Tue, May 25, 2010 at 5:46 PM, aum strut wrote: > Alex i am some what agree.. > but i am wondering how the Struts2 Development team is doing this..i am > sure they are not following the things as you have mentioned. > >

Re: PHP in the same folder of struts 1

2010-05-26 Thread chris
You dont need to bump your posts back up, especially only a day later. If someone knows the answer they will reply. Chris > Pl. reply > > On Tue, May 25, 2010 at 2:15 PM, abhishek jain > wrote: > >> hi friends, >> I am running struts 1.x and want to place the php code in the same >> domain >> as

Re: PHP in the same folder of struts 1

2010-05-26 Thread abhishek jain
Pl. reply On Tue, May 25, 2010 at 2:15 PM, abhishek jain wrote: > hi friends, > I am running struts 1.x and want to place the php code in the same domain > as where i am already running struts. > I cannt remove either struts or php. > How can i do so. > I am using apache + Tomcat 5.x > > thanks >

Struts upgrade from 1.2 to 1.3.10 gone wrong

2010-05-26 Thread Søren Blidorf
Hi. I have upgraded my Struts application from 1.2 to 1.3.10. With minor problems at first it finally worked. Suddenly it stopped working and I guess it must be after restart of the service. I guess it is a problem with versions of the jar file, but I am not sure. Does anybody have

Re: struts2 + javascript doubt

2010-05-26 Thread lucas owen
Hi, I have tried ( note the single quotes) and it works Thank you so much Cimballi, you are a crack 2010/5/24 Cimballi > Yes you can but instead of using you can use directly JSP > EL like {myBean.propertyName}. > > Cimballi > > > On Mon, May 24, 2010 at 1:10 PM, lucas owen wrote: