vinay bedidha

Greenhorn
+ Follow
since Oct 04, 2001
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 vinay bedidha

Hi everyone

Iam facing a problem with uploading multiple files using struts upload component. My requirement is i'll be having some text fields and more than one file elements. User can attach more than one document and he can upload them.

My jsp code goes like this

<input type="text" name="t1" >
<input type="text" name="t2" >
<input type="text" name="t3" >

<input type="file" name="uploadFile" >
<input type="text" name="uploadFile" >

Iam assigning same name to file elements. I want to get the text field values and have to upload the files. How to get both of these in Action class. My form tag in jsp looks like this

<form name="uploadForm" action="/upload-submit.do" enctype="multipart/form-data">
</form>

Please help me in this as i need it urgent. Thanks in Advance
19 years ago
iam calling a ejb bean method in ordinary javabean.i compiled the required classes and made jar file and deployed it.iam invoking the javabean method in jsp page using usebean tag.when iam running the jsp client it's giving NO CLASS FOUND ERROR:javax.NamingContext Exception.iam putting all the ejb class files in c:\weblogic\myserver\serverclasses directory and ordinary javabean class in c:\weblogic\myserver\clientclasses directory.i put the jar file in c:\weblogic\myserver\serverclasses directory and in the weblogic properties file i mentioned the path of the jar file.but it is giving error when iam running the client jsp in browser.any help appreciated.
thanks in advance...
22 years ago
you can dynamically change other combo values by writing a onchange() event in the first combo.in onchange event you can catch the combo value and get the corresponding other combo values from database dynamically and can be displayed in other combo's.......
22 years ago
JSP
i want to capture all the html form field 's names in the jsp.
iam having 10 textfields in the html page.iam doing it with the following code.
Enumeration e=request.getParameterName()
while(e.hasMoreElements())
{
String s=(String)e.nextElement();
out.println(s);
}
i getting all the field names from the html form.But my problem is that the values are not displaying in sorting order.i.e.,first text field name is printing in 8 position and 2 text field name in 3 position.i.e., the values are printed randomaly.i want 1 field name to be printed first in browser.please help me.iam in very urgent.thanks in advance.
iam pasting the html and jsp code...
<input type=text name = txt_User_Id_V>
<input type=text name = txt_User_Pwd_V>
<input type=text name = txt_User_Add_Pobox_V>and so on...
jsp code..
Enumeration e;
e=request.getParameterNames();
while(e.hasMoreElements())
{
String s=(String)e.nextElement();
out.println(s);
}

output..
txt_User_Add_Street_V
txt_User_Pwd_V
txt_User_Add_Place_V
txt_User_Add_Email_V
txt_User_Add_Pobox_V
txt_User_Add_Contact_V
txt_User_Add_Zip_V
txt_User_Add_City_V
txt_User_Add_Phone_V
txt_User_Id_V
txt_User_Name_V
22 years ago
JSP
Thanks Rahul,
my problem is solved. Once again thanks a lot...
22 years ago
JSP
iam using jsp custom tags.i want to pass attribute value dynamically in the jsp page.iam pasting the code here.iam unable to pass attribute value dynamically.iam not getting any error.plz help me. here is the code...
jsp code...
<%@ taglib uri="Vinay.tld" prefix="sample" %>
<%
String name=request.getParameter("name");
%>
<sample:hello name="<%=name%>" iterations="2">
TagLib code...
<tag>
<name>hello</name>
<tagclass>Vinay</tagclass>
<!-- Allow for a body to be included for this tag -->
<bodycontent>JSP</bodycontent>
<info>
This is a simple hello tag.
</info>

<!-- Optional attributes -->
<!-- personalized name -->
<attribute>
<name>name</name>
<required>true</required>
<rtexpvalue>true</rtexpvalue>
</attribute>
<!-- allow for the jsp coder to specify how many times to iterate -->
<attribute>
<name>iterations</name>
<required>false</required>
<rtexpvalue>false</rtexpvalue>
</attribute>
</tag>

22 years ago
JSP
hi David,
Thanks for your answer.
iam using Borland Application server and jsdk2.0.when iam using RequestDispatcher, during compilation time it's giving error message as follows..
unable to Resolve symbol RequestDispathcher rd=getServletContext().getRequestDispatcher("/Home.jsp");
plz help me..
thanks
22 years ago
i want to transfer control from a servlet to JspPage("Home.jsp")
iam getting a problem when using
RequestDispatcher rd=getServletContext().getRequestDispathcher("/Home.jsp");
rd.forward(request,response);
iam getting NullPointerException problem.if i use response.sendRedirect("/Home.jsp"); it's working fine.
what's the problem with RequestDispatcher?
22 years ago
i want to transfer control from a servlet to JspPage("Home.jsp")
iam getting a problem when using
RequestDispatcher rd=getServletContext().getRequestDispathcher("/Home.jsp");
iam getting NullPointerException problem.if i use response.sendRedirect("/Home.jsp"); it's working fine.
what's the problem with RequestDispatcher?
22 years ago