you should be able to do what you're trying to do without a problem.  do you 
have an action class which extends org.apache.struts.action.Action and which 
is called "com.servlets.thisandthat_action"?  if not, that's the beginning 
of your problem. if so, inside that action class, you should have something 
like the following inside your perform method to determine where to forward:

// assuming someValue is a string and is already initialized
if (someValue.equals("display"))
  return mapping.findForward("display");
else if (someValue.equals("back"))
  return mapping.findForward("back");

supplying more of the relevant code would be helpful.

jon


----Original Message Follows----
From: "Marion Schwarz" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Error 500 : No action instance could be created
Date: Mon, 20 Aug 2001 14:58:28 +0200

Hello everybody,

since I have already searched the archives for any posting concerning my 
problem, I only need a confirmation now:
Am I right, assuming that I cannot use action mapping when coming from a URL 
like http://.../thisandthat.do?param1=value
and only wanting to dislpay a thisandthat.jsp page ?
I've tried to map this "action" like this:

<action    path="/thisandthat"
               type="com.servlets.thisandthat_action">
                 <forward name="back"    path="/home.jsp"/>
                 <forward name="display"   path="/thisandthat.jsp"/>
</action>

but it apparently does not work.
Is there any other way to display a jsp page using the struts architecture ?

thanx a lot
Marion



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to