Struts

2004-01-27 Thread Pinguti Sridevi
 
I have tomcat 4.1.29 and jdk1.3. I had understood what is Struts,complete flow thru 
jakarta site. Can somebody tell  what jars,wars i have to install to run sample. I 
have searched 5 hrs in jakarta but I have not understood what to install in my tomcat 
folder to run ? I don't want tiles or log4j.Suggest me ?



With Regards, 
PS.Durga,



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

ClassCastException

2004-01-26 Thread Pinguti Sridevi
Dear Java Friends,
 
The following snippet code is for storing the ArrayList values into Object array and 
it has to display using another loop. My requirement is I want to store only in 
Object[] array but not in any other data type. Its compiling but giving run time error 
in the following line. Can anybody give their suggestion   or recode the below.

 lo_oName = (Object[ ]) lo_arrListName.get(i); //giving error here in runtime.
 
/* FullCode */
 
import java.util.*;
 
 public class Generic   {
 
  public static void main ( String args[ ]  )   {
 
   Object lo_oName[] = null;
   ArrayList lo_arrListName = new ArrayList();
   lo_arrListName.add(HAPPY BIRTHDAY TO YOU...);
   lo_arrListName.add(YOU ARE NOT YOU YOU ARE HE...);
   lo_arrListName.add(THE GOD...);
   lo_arrListName.add(PRAY HIM DEEPLY PEACEFULLY...);
   lo_arrListName.add(HE GIVES ALL TO YOU...); 
   
   /*lo_arrListName.add(new Integer(100));
   lo_arrListName.add(new Integer(200));
   lo_arrListName.add(new Integer(300)); */
  
int i = 0;
System.out.println ( lo_arrListName.size());
while (ilo_arrListName.size() )
{  
System.out.println ( In the while loop. );
lo_oName = (Object[ ]) lo_arrListName.get(i);
System.out.println (After storing the arraylist value in Object variable..);
System.out.println (Value in object...  + lo_oName[i].toString() );
i++;
}
   
   }
 }



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

JavaScript Doubt

2004-01-23 Thread Pinguti Sridevi
hey);
 
If the user does not touch the browser means moving the mouse onto the browser within 
60 seconds
the control has to transfer to another page. How to do that any ideas?. Ensure that 
there is no controls in my browser.



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

2 questions

2004-01-22 Thread Pinguti Sridevi
1) What is the differences between two ?
res.sendRedirect(http://localhost:8080/authendication/Logout/body_logout.jsp;);  
or
getServletContext().getRequestDispatcher(/authendication/Logout/body_logout.jsp).forward(req,
 res); 
 
2) 1 )Whenever for the first time if the user enters, I want to store the 
username,rights in the session  How to do it in Servlet. Is it right ?
 
HttpSession session = request.getSession(true); //can u tell me when we have keep 
false here.
session.setAttribute(username,usernamevalue);
session.setAttribute(rights,rights);


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

doubts

2003-12-22 Thread Pinguti Sridevi
*) I am uploading a file using MultipartRequest class given by third party. Now my file
is uploading to specific position. My problem whenever the file is uploading, if any 
problems comes in uploading immediately it should be monitor using a table or file.  
That means
When i click upload the file uploading to specific location now, if any problems 
raises inbetween uploading like system restarted,connection failed,location is full so 
file doesnot have space. So I have to capture that error information. Can anybody help 
me  ?
2) I am loading a java object into oracle procedure using the follwoing ways ?
1 ) javac program.java
2)  then moving oracle directory and saying loadjava classname.
3) It is successfully loaded . And in my procedure i am calling
that object and executing object.functionname(). But the procedure
rasing an error some CLASSno121 not found. What my doubt is is their compability 
needed between java and oracle that means the jdk1.3 works only on oracle8.1 or 7.1.  
This is very important concept. 
Don't feel anybody that calling a java object in oracle is not possible . This is 
already done in my earlier companies. And it is there in oracle tuturials which i have 
seen in internet. Can anybody solve this problem ?
 
 
 


-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

URGENT PLEASE HELP ME........................................

2003-12-17 Thread Pinguti Sridevi
I could able to run servlets in tomcat 4.1. I created
a folder called webdev in webapps in that i created WEB-INF and 
classes. I stored web.xml in WEB-INF. as follows.
webapps/webdev/WEB-INF/classes
WEB-INF/web.xml
I configured web.xml with servletname,servletclass between webapps 
tags. After restarting the server when i say
http://localhost:8080/webdev/servlet/myservletfile
It showing 
404 Requested URI not found.
I tried like the below also
http://localhost:8080/webdev/myservletfile
But still it is not getting.
Let me tell anybody that tomcat4.1 have any bug in reading web.xml



-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing