http://pastebin.com/m2ea33afb
It is currently Fri May 18, 2012 4:59 pm


Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Java Bean is returning a null to calling JSP; int[][]passing
PostPosted: Tue Dec 23, 2008 9:52 pm 

Joined: Thu Sep 11, 2008 3:26 pm
Posts: 11
Location: Bismarck, ND
Two big pastes of my horrorcode are available for you to laugh at or even help me debug at http://pastebin.com/m2ea33afb and http://pastebin.com/m11719826 (the calling JSP file and Java Bean, respectively). At this point my issue seems to be that for some reason my query is receiving a null and thus returning a null string or null integer arrays back to the JSP (using get/setProperty) or embedded scriptlet, respectively, when trying to display this data on the JSP page, OR that I am simply not passing the data back to the JSP page correctly in the first place thus making it impossible for me to see
that my data has been correctly accessed.

As you can see by the commented out sections, I have been commenting out more and more in depth code and attempting to get some useful debugging output by implementing simpler code to insert debugging data. Nothing that you see in there has worked to this point. The original and current faulty code is the
hilited lines on the pastebin dumps.

Thanks to anybody that may have the time to actually look over this at all. It's probably not too big of an issue, I'm just sleep deprived as all hell right now and I can't focus decently on anything. :?:

-Damon Getsman


Top
 Profile Send private message  
 
 Post subject: Re: Java Bean is returning a null to calling JSP; int[][]passing
PostPosted: Mon Dec 29, 2008 6:12 pm 

Joined: Thu Sep 11, 2008 3:26 pm
Posts: 11
Location: Bismarck, ND
Issue was quite simple. I was following a bogus example from a book where my two arrays were defined as follows:

Code:
public int [] x = new int [MAX_CONSTANT1];
public int [][] y = new int [MAX_CONSTANT2][];


instead of having the 2-dimensional array declared with both array dimensions set.

I knew it was something ridiculously simple.

--++==***==++--
-Damon A. Getsman
http://www.zoominfo.com/people/Getsman_Damon_-214241.aspx
http://www.ITRx-ND.com/
Programmer/IT Customer Relations/Sysadmin
--++==***==++--

_________________
-=-=-=-
ITRx http://www.itrx-nd.com/
Systems Administrator/Programmer
-=-=-=-


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Registered users: MissYtry, Salpkalawar, slommably, SperaJeaple


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 post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]