Can I directly access an Action in the browser ?
I want to create an ArrayList, before I display my jsp,
because this jsp page needs to ue this ArrayList.
Therefore I wrote an action mapping:
action path=/createPlantList
type=CreatePlantListAction
name=createPlantListForm
Your xml has a typo.
Kill the '' in the line: validate=false
-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Wednesday, October 23, 2002 19:20
To: [EMAIL PROTECTED]
Subject: direct acess to Action
Can I directly access an Action in the browser ?
I want to create
No wait!
Ignore what I said. Im talking rubbish! That is correct!
Sorry embarrased/
-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Wednesday, October 23, 2002 19:26
To: Struts Users Mailing List
Subject: RE: direct acess to Action
Your xml has a typo
, 2002 19:29
To: Struts Users Mailing List
Subject: RE: direct acess to Action
No wait!
Ignore what I said. Im talking rubbish! That is correct!
Sorry embarrased/
-Original Message-
From: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Sent: Wednesday, October 23, 2002 19:26
[mailto:andrew.david.hill;gridnode.com]
Sent: Wednesday, October 23, 2002 19:32
To: Struts Users Mailing List
Subject: RE: direct acess to Action
Hmm. I think the type attribute needs the full classname.
ie: type=com.unist.plot.CreatePlantListAction
Is that all the information it gave about the error
When I have got to close the action tag,
and when not ??
I thouht at the end of every action path there needs to be the closing
bracket.
Marcus
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
Well that is my full class name, I don't use a package.
Log ? Which log ?
Have a good look at the rest of your struts-config as it may well be a typo
in some other part of the xml and not related to this particular action
after all.
Well, there could be a typo -
but I dunno when to close action
root cause:
org.xml.sax.SAXException: Stopping after fatal error: Element type
action must be followed by either attribute specifications, or
/.
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
[mailto:Marcus.Biel;bmw.de]
Sent: Wednesday, October 23, 2002 20:21
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: direct acess to Action
Well that is my full class name, I don't use a package.
Log ? Which log ?
Have a good look at the rest of your struts-config as it may well be a typo
to the contents of this message for further details.
Sender = [EMAIL PROTECTED]
Recipient(s) = [EMAIL PROTECTED];[EMAIL PROTECTED];
Subject = RE: direct acess to Action
Scanning Time = 10/23/2002 08:33:20
Engine/Pattern = 6.150-1001/369
Action on message:
The attachment sc.xml matched file blocking settings
Andrew,
I appears that you missed one glaring error. In the getAlaskaGroups action,
the vlaidate=false is seriously out of place. It also has a '' without a
''.
Using a utility to validate the file is definately a GOOD idea.
Dave D
- Original Message -
From: Andrew Hill [EMAIL
If you just mean that I don't validate the action -
I will take care about that at a later time.
But what do you mean with:
it also has a '' without ''.
?
Isn't that the closing tag for the action path tag ?
action path...
...
..
input=/index.jsp
?
Using a utility to validate the file is
No. The closing tag for the action follow the input attribute:
action path=/getAlaskaGroups
type=GetAlaskaGroupsAction
name=getAlaskaGroupsForm
scope=request
input=/index.jsp closing tag here
forward name=getAlaskaGroupsDone path=/index.jsp/
validate=false -- an
So how about this:
action path=/getAlaskaGroups
type=GetAlaskaGroupsAction
name=getAlaskaGroupsForm
scope=session
input=/index.jsp
validate=false
forward name=getAlaskaGroupsDone path=/index.jsp/
/action
Would that be correct ???
thx in advance,
: Re: direct acess to Action
So how about this:
action path=/getAlaskaGroups
type=GetAlaskaGroupsAction
name=getAlaskaGroupsForm
scope=session
input=/index.jsp
validate=false
forward name=getAlaskaGroupsDone path=/index.jsp/
/action
Would that be correct
15 matches
Mail list logo