NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Cverrill
Joined: 08 Aug 2012 Posts: 1 Location: Portland, Maine
|
Posted: Wed Aug 08, 2012 4:11 pm Post subject: Trouble with jsp:getProperty |
|
|
I have a page that works fine when I run locally in Netbeans, but after uploading it to my server, I find that none of the <jsp:getProperty ..> items are functional. A short description of my problem and sample code that generates the issue can be found here:
http://stackoverflow.com/questions/11867765/jsp-getproperty-issue
Any thoughts as to what my mistake is would be greatly appreciated
Thanks, Craig |
|
| Back to top |
|
 |
nicephotog
Joined: 07 Nov 2009 Posts: 17 Location: Australia
|
Posted: Sun Aug 12, 2012 5:54 pm Post subject: |
|
|
Why not use EL where "name" should be the bean-method getName()
That next line is what it should appear.
| Code: | <jsp:useBean id="processbean" scope="session" class="processes.Process" />
<jsp:setProperty name="processbean" property="name" value="this is bean text" />
This ordinary text and ${processbean.name}. |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|