Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder MrEnder's Avatar
    Join Date
    Jul 2008
    Location
    Canada Ontario
    Posts
    258
    Thanks
    18
    Thanked 4 Times in 4 Posts

    Question Ok Noob Question

    I'm trying to make a forum in JSP and I'm having an issue...
    This is my first time using JSP so bear with me. I do know Java and Javascript a bit though. I wanted to test it with an alert... It failed miserably. As well as my eclipse does not like when I put <%. I'm running it with tomcat so why?

    Code:
    				<form id="loginForm">
    
    					<div class="loginFontBackground">
    						User Name:<input type="checkbox" name="remUserName" id="rememberUserName" class="textinput" /><span class="smallerFont"> Remember?</span>
    						<input type="text" value="" name="userName" id="userNameLogin" maxlength="20" class="textInput" />
    						Password:<input type="checkbox" name="remPassword" id="rememberPassword" class="textinput" /><span class="smallerFont"> Remember?</span>
    						<input type="password" value="" name="password" id="passwordLogin" maxlength="20" class="textInput" />
    					</div>
    					<input type="submit" value="Submit" id="submitLogin"  style="margin-top: 5px;"/>
    					
    
    				</form>
    				<%
    						
    					if(request.getParameter("userName") && request.getParameter("password")) != "" {
    								
    				%>
    				
    						<script type="text/javascript"> alert("1"); </script>
    				
    				<%
    								
    					}
    						
    				%>

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Please follow http://www.codingforums.com/postguide.htm especially #2
    (You may edit your post to change the title)
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •