Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!

Vardhan Muthineni

Greenhorn
+ Follow
since May 18, 2006
Merit badge: grant badges
For More
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 Vardhan Muthineni

hi prasanna
I have given that apth already.Me govardhan.
U only changed in my system ,got it .
17 years ago
HI,
While compiling iam getting the msg as:
"package javax.servlet.jsp.tagext does not exists"
how this package can be included.can any one give suggession for this error.
I included 9 files in lib folder.

antlr.jar,
struts.jar,
commons-beanutils.jar,
commons-collections,
commons-validator,
commons-fileupoad,
commpns-digester,
commons-logging,
jakartha-ora

and I set the path to servlet-api.jar in systemvariables.
how to rectify this
17 years ago
HI ,
In <html:link> struts tag iam using the action attribute.what i have to give in action value
Ex:
I have <html:link action="/category">Category page</html:link>
in strits config.xml how i have to give this action
<action path="/category"
type="CategoryAction"
name="categoryForm"
scope="request"

<forward name="success" path="/category.jsp"/>

Is this the correct way of using action attribute in html:link tag
can any one suggest me..
tellme the url that i can get html:link action examples
17 years ago
hi
higginson thanks for u r response
I have the tld file that i downloaded
its in hardisk dirve suppose d:\ in my system
i wnat to add that tld file to my project's web-inf folder from eclipse
17 years ago
HI
HOw to add tld file ex:struts-html.tld into out project folder lib from eclipse
17 years ago
HI sagar
thank u yar
thanks alot.
I got it.
Keep in touch,have a nice day
17 years ago
HI,
This is vardhan,
I have one problem with struts.
IN jsp iam entering one number and iam taking that number in action class and iam inserting integers from 1 to upto that given number in an ARRAYLIST.After that iam placing that arraylist object in session.NOw I want to get that arraylist object in the seccess jps page and i want to print that arraylist.
but in success.jsp page iam getting class cast exception.
here iam provindin the coed.Can any one give the suggession:
ACTION CLASS execute method:
{
InsertForm insert=(InsertForm)form;
String number=insert.getNumber();
int n=Integer.parseInt(number);
ArrayList al=new ArrayList();
for(int i=0;i<n;i++)
al.add(new Integer(i));
System.out.println(al);
String target="success";
if(number==null)
{ target="failure";

}
else
{ HttpSession session = request.getSession(true);
session.setAttribute("al","al");
}

return (mapping.findForward(target));

}
SUCCESS.JPS:<%@page import="java.util.ArrayList" session="true"%>
<html>
<head><title></title></head>
<body>
<p><b>SUCESS FULL INSERTION IN THE ARRAYLIST</b></P>
</body>
</html>
<%/////here in this line it is giving the error////
ArrayList a=(ArrayList)session.getAttribute("al");
out.println(a);
%>

STRUTS-CONFIG.XML:
<action path="/insert" type="InsertAction" name="InsertForm">
<forward name="success" path="/success.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
17 years ago
HI,
This is vardhan,
I have one problem with struts.
IN jsp iam entering one number and iam taking that number in action class and iam inserting integers from 1 to upto that given number in an ARRAYLIST.After that iam placing that arraylist object in session.NOw I want to get that arraylist object in the seccess jps page and i want to print that arraylist.
but in success.jsp page iam getting class cast exception.
here iam provindin the coed.Can any one give the suggession:
ACTION CLASS execute method:
{
InsertForm insert=(InsertForm)form;
String number=insert.getNumber();
int n=Integer.parseInt(number);
ArrayList al=new ArrayList();
for(int i=0;i<n;i++)
al.add(new Integer(i));
System.out.println(al);
String target="success";
if(number==null)
{ target="failure";

}
else
{ HttpSession session = request.getSession(true);
session.setAttribute("al","al");
}

return (mapping.findForward(target));

}
SUCCESS.JPS:<%@page import="java.util.ArrayList" session="true"%>
<html>
<head><title></title></head>
<body>
<p><b>SUCESS FULL INSERTION IN THE ARRAYLIST</b></P>
</body>
</html>
<%/////here in this line it is giving the error////
ArrayList a=(ArrayList)session.getAttribute("al");
out.println(a);
%>

STRUTS-CONFIG.XML:
<action path="/insert" type="InsertAction" name="InsertForm">
<forward name="success" path="/success.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
17 years ago