You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Di...@t-systems.com on 2008/10/21 11:29:09 UTC

Action not found

Hi everybody,

I'm facing a very strange behaviour in our Turbine 2.3.2 application. We're having a screen where the user can choose different parameters. After choosing we redirect the screen to another one. It works perfectly on our development environment (Java 1.4.2 and Tomcat 5.5). In the productive environment (IBM WebSphere 6) it sometimes works and sometimes not. It seems like the java action we use to redirect to the different screens is not found.
Here's our code:

- *.vm

	<SCRIPT>
	...
	function search()
	{    
 		window.document.vari.was.value = "nix";
	} 
	...
	</SCRIPT>

	...
	<FORM name="vari" method="post" action="$link.setPage('AusrHaupt.vm').setAction('AusrHauptAction')">
	...
	<INPUT type="hidden" name="was" value="nix"/>
	...
	<BUTTON class="image" type="submit" name="eventSubmit_doAusr" onClick="search()">
		<IMG src="$content.getURI('images/ok.gif')"/>
	</BUTTON>
	...
	</FORM>

- *Action.java

	public void doAusr(RunData data, Context context) throws Exception
	{
		String action = data.getParameters().getString("was", "nix");
		
		if (action.equals("Save")) doSavevari(data, context);
		else if (action.equals("Suche")) setTemplate(data, "AusrHaupt.vm");
		else setTemplate(data, "AusrList.vm");
	}

Do you have any ideas what could cause the problem? 

Thank you 


Dieter Johannsmeier

T-Systems
Systems Integration
Dieter Johannsmeier
BU Spare Parts, Team IDIS
Heinrich-Hertz-Str. 11, 34123 Kassel
+49 561 5893-228 (Phone)
+49 561 5893-112 (Fax)

E-Mail: dieter.johannsmeier@gedas.de
Internet: http://www.t-systems.com

T-Systems Enterprise Services <https://systemsnet.telekom.de/tool/de_systemswiki/index.php/Enterprise_Services>  GmbH 
Aufsichtsrat <https://systemsnet.telekom.de/tool/de_systemswiki/index.php/Aufsichtsrat> : René Obermann (Vorsitzender) 
Executive Committee <https://systemsnet.telekom.de/tool/de_systemswiki/index.php/Executive_Committee> : René Obermann (Vorsitzender) Executive Committee: Reinhard Clemens (Vorsitzender)*, Helmut Binder, Albert Henn, Olaf Heyden*, Katrin Horstmann, Wilfried Peters*, Dr. Herbert Schaaff
Handelsregister: Amtsgericht Frankfurt am Main HRB 55933 
Sitz der Gesellschaft: Frankfurt am Main 
WEEE-Reg.-Nr. DE87523644 
*Geschäftsführer gem. § 35 GmbHG 

T-Systems - Business flexibility
 




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org


RE: Action not found

Posted by Tony Oslund <To...@prepare-enrich.com>.
Check to see if you have duplicate class names in your deployment.

Try changing the name of the action class to something that you know is
distinct, and then retest.

Tony Oslund
Senior Programmer/Analyst
Life Innovations, Inc.
800.331.1661
651.635.0511
www.prepare-enrich.com

-----Original Message-----
From: Thomas Vandahl [mailto:tv@apache.org] 
Sent: Wednesday, October 22, 2008 7:14 AM
To: Turbine Users List
Subject: Re: Action not found

Dieter.Johannsmeier@t-systems.com wrote:
> I'm facing a very strange behaviour in our Turbine 2.3.2 application.
We're having a screen where the user can choose different parameters.
After choosing we redirect the screen to another one. It works perfectly
on our development environment (Java 1.4.2 and Tomcat 5.5). In the
productive environment (IBM WebSphere 6) it sometimes works and
sometimes not. It seems like the java action we use to redirect to the
different screens is not found.
> Here's our code:
> 	<BUTTON class="image" type="submit" name="eventSubmit_doAusr"
onClick="search()">
> 		<IMG src="$content.getURI('images/ok.gif')"/>
> 	</BUTTON>

I remember some strange effects when using <button> elements together
with Internet Explorer. IE sends all buttons in the request, not just
the one that is clicked and Turbine has a hard time to find out which
action to perform. Try to use an <input type="submit"> element instead
and check if that solves your problem.

Hope that helps
Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org


Re: Action not found

Posted by Thomas Vandahl <tv...@apache.org>.
Dieter.Johannsmeier@t-systems.com wrote:
> I'm facing a very strange behaviour in our Turbine 2.3.2 application. We're having a screen where the user can choose different parameters. After choosing we redirect the screen to another one. It works perfectly on our development environment (Java 1.4.2 and Tomcat 5.5). In the productive environment (IBM WebSphere 6) it sometimes works and sometimes not. It seems like the java action we use to redirect to the different screens is not found.
> Here's our code:
> 	<BUTTON class="image" type="submit" name="eventSubmit_doAusr" onClick="search()">
> 		<IMG src="$content.getURI('images/ok.gif')"/>
> 	</BUTTON>

I remember some strange effects when using <button> elements together
with Internet Explorer. IE sends all buttons in the request, not just
the one that is clicked and Turbine has a hard time to find out which
action to perform. Try to use an <input type="submit"> element instead
and check if that solves your problem.

Hope that helps
Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@turbine.apache.org
For additional commands, e-mail: user-help@turbine.apache.org