I downloaded the latest cut of jetspeed and tried again to get a form example to work to no avail. Perhaps I am missing something, but here is what I have done.

I put my action class in the $tomcat_home}/webapps/jetspeed/WEB-INF/classes directory and made sure that it extended the JspPortletAction class. My action class lives in the com.mycompany.modules.actions package and is called myActionClass.

I put the following line in my TurbineResources.properties file:
module.packages=com.mycompany.modules

In the xreg file for the portlet I put the following line:
<parameter name="action" value="actions.myActionClass" hidden="false" cachedOnName="true" cachedOnValue="true"/>

In the jsp I have the following:
<form method="post" action="<jetspeed:dynamicUri/>">
Enter some text: <input type="text" name="some_text"/>
<input type="hidden" name="js_peid" value="<%=jspeid%>">
<input type="hidden" name="action" value="actions.myActionClass"/>
<input type="submit" name="eventSubmit_doNext" value="Next >>" />
</form>

When I run it I get a stack trace complaining about the following

Error encountered processing a template: /portlets/html/myformtest.jsporg.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 7 in the jsp file: /WEB-INF/templates/jsp/portlets/html/myformtest.jsp Generated servlet error: [javac] Compiling 1 source file D:\Tomcat4.1\work\Standalone\localhost\jetspeed\WEB-INF\templates\jsp\portlets\html\myformtest_jsp.java:61: cannot resolve symbol symbol : variable jspeid location: class org.apache.jsp.myformtest_jsp out.print(jspeid); ^ 1 error at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at

so I removed this line
<input type="hidden" name="js_peid" value="<%=jspeid%>">

and ran it again. This time Jetspeed complained that it couldn't find the action class!!!

Does anyone have an idea as to why this is happening? Is my form's action reference wrong? I have already gone through the tutorial and thought I followed it to the letter but still no go. Thanks for your assistance.

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_addphotos_3mf


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to