User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 374,174 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,464 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 432 | Replies: 3 | Solved
Reply
Join Date: Mar 2008
Posts: 94
Reputation: Thirusha is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
Thirusha Thirusha is offline Offline
Junior Poster in Training

jsp setbean problem

  #1  
Apr 2nd, 2008
Is is possible to clear the value of a bean using the jsp:setproperty tag?

i have tried
<jsp:setProperty name="MyNameBean" property="subscriberName" value="" />

but it didnt work.

Please help!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: jsp setbean problem

  #2  
Apr 2nd, 2008
A bean has no "value".
What "doesn't work" anyway?
What do you expect to happen and what do you observe as happening?
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Mar 2008
Posts: 94
Reputation: Thirusha is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
Thirusha Thirusha is offline Offline
Junior Poster in Training

Re: jsp setbean problem

  #3  
Apr 3rd, 2008
I would like to clear the value of bean.

In the middle of my application the session bean gets set. at the end of my application i would like to reset the bean value to null or nothing, clear it, or remove it whatever is the correct wording.

My app is using ajax, so i would like to refresh the main page, and reset the bean.

So if i refresh the page, and using jsp:getproperty, nothing must be returned.

I hope i was clear enough, and didnt confuse u even further.
Reply With Quote  
Join Date: Mar 2008
Posts: 94
Reputation: Thirusha is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 9
Thirusha Thirusha is offline Offline
Junior Poster in Training

Re: jsp setbean problem

  #4  
Apr 3rd, 2008
I managed to solve the problem. thanx jwenting for taking time to look at my question.
(Its funny how after searching for some hours then deciding to ask someone on the forum, i find the answer)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Other Threads in the JSP Forum

All times are GMT -4. The time now is 4:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC