Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Rashmi Gowda

Greenhorn
+ Follow
since Dec 04, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rashmi Gowda

Thanks Solaiappan,
There must be some problem with the IDE recognising the forward tag with parameters.i copied your code and pasted it,it shows the same compiler error.
But anyway it allows me to execute the filename.html page.and even my code gets executed with the same compiler error.
Thanks for taking your time to solve this problem.
Thanks once again,
Rashmi
21 years ago
Hi All,
I would like to know if there is a way for adding a javascript 'alert' button in JSP such that the alert button appears on the same JSP page.Right now iam able to get the alert message on a different page. similarly can i add/embed JSP code(i.e, scriptlets/beans) in Javascript??
Any other ideas/suggestions to do the same ?
Thanks,
Rashmi
21 years ago
Thanks Bill and Solaiappan,
Solaiappan,here is the code.
What iam trying to do is:
Iam performing validation to check the filename is not left empty by the user.
If it is left empty ,redirect him to the samepage with an error message.

<%! public final static String NULL_FILE="Please enter a filename";%>
<% String nofilename = " ";%>;
<%-- Get the filename here--%>
String file=request.getParameter("Filename");
<%-- if there is no entry for filename,prompt user to enter some name ,redirect him to the same page --%>
if(file.equals(""))
{
nofilename=NULL_FILE;
}
if(!(nofilename.length()=='0'))<%{%>
<jsp:forward page="Import.jsp">
<jsp aram name="noFilename" value="<%=nofilename%>"/>
</jsp:forward>
<% } %>
Thanks,
Rashmi
21 years ago
Hi,
Iam getting this error message at line 1: 'Unterminated forward tag'when i try to compile this code:
<jsp:forward page="Import.jsp">
<jsp aram name="noFilename" value="<%=nofilename%>"/>
</jsp:forward>
Iam using Tomcat 3.2beta7 server,forte1.0 as the tool and jdk1.3.
Can anybody please help me figure out why iam getting this error.
Thanks,
Rashmi
21 years ago