Sorry, missed one parenthesis!

 if (request.getParameter("loc").equals("clipArtManager")) {


                                                                                       
                            
                    Zafif@worldba                                                      
                            
                    nk.org               To:     Jrun-Talk 
<[EMAIL PROTECTED]>                           
                                         cc:                                           
                            
                    07/12/2002           Subject:     Re: Querystrings - Fustrated 
Newbie Question, Please Help    
                    02:44 PM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    jrun-talk                                                          
                            
                                                                                       
                            
                                                                                       
                            
                                                                                       
                            
                                                                                       
                            




You have to use

} if (request.getParameter("loc".equals("clipArtManager")) {

When you use ==, you are comparing objects, and in your case, they are not the
same.  What you want to use is equals(), which just compares the content.





                    "Boogie Brown"

                    <boogie_brown@ho        To:     Jrun-Talk
<[EMAIL PROTECTED]>
                    tmail.com>              cc:

                                            Subject:     Querystrings -
Fustrated Newbie Question, Please Help
                    07/12/2002 02:38

                    PM

                    Please respond

                    to jrun-talk









I am an ASP programmer moving to JSP. I am trying to run my first script and
capture a Querystring however it seem so dificult in JSP.
This is my code:
<%
} if (request.getParameter("loc") == "clipArtManager") {
%>
Clip Art
<%
} else {
%>
No Go
<%
}
%>

It is always returning No go. Why is this?

My other problem is that when I print out
request.getParameter("loc") I het 500 Null printed on the screen, with no
other data shown.

What is happening?

Please ANY help would be much appreciated.

MTB





______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to