struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Anyway to map properties to different request names?
Date Wed, 05 Nov 2014 20:39:45 GMT
Let's say I have a getter/setter for field personId. That means in my
markup, I need to have a field named personId too. However, I am not really
found of bleeding Java naming conventions into my web page. Shouldn't there
be a way -- is there a way? -- of assigning another name to it?

Hopeful example:

@RequestParam("person")
public final void setPersonId(String personId) { ... }

Cheers,
Paul

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message