Hi Richard. See inline comment below.

At 02:50 pm 16-12-2001 -0500, you wrote:
Being a newbie, I can't figure out what I'm missing. I followed the horoscope tutorial except I let Camino generate the classes instead of copying all of the code from the "finished/src" directory.
 
My generated ProcessCommentActionBase class looks like this:
 
<  abstract public class ProcessCommentActionBase extends null {
 
The class in finished/src looks like this:
<   abstract public class ProcessCommentActionBase extends org.apache.struts.actions.DispatchAction {


This sounds like a bug in Camino.

For the time being, the workaround is:
  • Open the Action Properties dialog box for the processComment action (by right-clicking the node and selecting Edit)
  • Go to the "Advanced" tab page, manually change the Base class to DipatchAction
  • Save the project
  • Regenerate the action classes.
We have filed the bug report. The case number is 00116. We will let you know when this is resolved.

ALSO, my generated class has the additional method:
<   protected ActionForward forwardInput(ActionMapping mapping) {
<     return new ActionForward(mapping.getInput());
<   }
Other than this, these two .java files are the same.


This is because when you created the Path (result.jsp -> processComment.do), on the second tab page ("To: /processComment.do") in the Path Properties dialog box, you selected the option to set the Input attribute to result.jsp.

This is not critical. However, if you want to remove the Input attribute,
 
  • Open the Action Properties dialog box for the processComment action
  • Go to the "Advanced" tab page
  • Clear the "Input" field
  • Save the project
  • Regenerate the action classes.
the forwardInput(..) should no longer be generated.

 
So, I copied the finished/src...ProcessCommentActionBase and the horoscope works up to "processComment.do" when this error comes up:
 
<    400 Invalid path /processComment was requested
 
Did I make a mistake in the Path Properties or what?
 


I need more information. Could you send me your /result.jsp file and your struts-config.xml?

Thanks,
Rick Davidson

--
John Yu                       Scioworks Technologies
e: [EMAIL PROTECTED]         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"

Reply via email to