Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic IFRAME  RSS feed

 
Sam Gardner
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys,

I've been working on this IFRAME for a couple of days now, and I'm to the point where things are almost working. I can get the page that the IFRAME uses as its source to get the right request parameter from my dropdown box, so I should be able to view my SQL table alright.

The problem is, I don't want anything displayed in the IFRAME before the user selects something on the page that the IFRAME is on.

My structure is:

SurveyEdit.jsp has a dropdown which targets an IFRAME using DynamicSurvey.jsp.

What I'd like is for the IFRAME to show nothing before the user selects something from the dropdown. I've tried sticking an if/else statement in the DynamicSurvey.jsp, but I just get null pointers when I use:



since the request parameter "survey" hasn't been created yet when the DynamicSurvey.jsp page is first called.

Any ideas?

Thanks,

Sam
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sam Gardner:
but I just get null pointers when I use:



[/CODE]

You can not call a method on a null object (including the equals method).
Use the '==' operator.

 
Sam Gardner
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hehe. whoops. stupid school drilled the .equals into my head so much i forgot how it actually works.

thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!