NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Trouble with jsp:getProperty

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Cverrill



Joined: 08 Aug 2012
Posts: 1
Location: Portland, Maine

PostPosted: Wed Aug 08, 2012 4:11 pm    Post subject: Trouble with jsp:getProperty Reply with quote

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

PostPosted: Sun Aug 12, 2012 5:54 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo