• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Dynamic IFRAME

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hehe. whoops. stupid school drilled the .equals into my head so much i forgot how it actually works.

thanks!
 
Oh. Hi guys! Look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic