File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

is "Action" a reserved word?

Chris Skinner

Joined: Jan 23, 2002
Posts: 23
I just had a strange problem with a struts app I'm working on. I have a field in my form bean :

private String Action;

with the appropriate getters and setters.

In my .jsp I am using it like such :

<html:select property="action">

Christopher Skinner<br />SCJP2 1.4<br />SCWCD (in training)
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33127

Accidental duplicate post. Can be closed.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I agree. Here's the link:
subject: is "Action" a reserved word?
It's not a secret anymore!