Girish Wakure

Greenhorn
+ Follow
since Apr 14, 2010
Merit badge: grant badges
For More
Pune
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Girish Wakure

Hi again!
Have you checked if any of reportStream, servletOutputStream, connection have null value?

because if there is, then it won't go further.
12 years ago
Hello June!

Can you post actual line numbers along with code in your action file.

there is an some error in line no 65. what dows that line contain? I can not guess the line in above code
12 years ago
Hi Ashwin!
Is upload dir present in specified path? (if not create it manually)
12 years ago
I agree with Tom..
I doubt (as tom says) default execute method is being called.
13 years ago
Can you post whole error stack?

I want see where you get java.lang.IllegalArgumentException.

You might get java.io.InputStream because of previous error.
as there is IllegalArgumentException, your inputName may not get initialize
13 years ago
I need a solution which works on both.
Because I am continuing development in same environment (Eclipse - jetty) but need to deploy application in tomcat.
13 years ago
JSP
Hi!
I have a problem in relative path.
we have developed a Web Application using Struts2, editor - Eclipse and web server - jetty-6.1.3.
Project works fine in eclipse with jetty .
now I am deploying it to the Tomcat 7 web server.

Problem comes when I access the relative links.
for example -
when I run in eclipse - jetty, I get application url as http://localhost:8080/base/mainMenu.html and so on..

when run from Tomcat deployment I get url as http://localhost:8080/myApplication/base/mainMenu.html as deployed as war file.
when I click on any link (eg /base/action_name) instead of going to http://localhost:8080/myApplication/base/action_name
it gives http://localhost:8080/base/action_name which results in page not found error.

if I try to remove / from relative path (eg base/action_name) it gives http://localhost:8080/myApplication/base/base/action_name



Please help me out..
13 years ago
JSP

Jeremy Goodell wrote:Unbelievable, the solution to this problem has nothing to do with slashes, backslashes, quotes, spaces, jre, jdk, jvm, javaw, ....
The answer is that you have to have a line break between

-vm

and the path.

So in the eclipse.ini file:

THIS WILL NOT WORK:
-vm C:\java\jdk\bin\javaw.exe

BUT THIS WILL:
-vm
C:\java\jdk\bin\javaw.exe



Thanks a Lot....

The trick saved my time..

can you give 'full error stack'?
13 years ago
JSP
Hello Everybody!!
I am creating a fileManager System ussing Struts 2. In it user can upload, view his files and also download files.

My problem here is, I want to allow user to create Folders of his own on the system dynamically. and allow him to store files in them.


I have searched net for creating folders in struts 2 dynamically but got nothing.
(just one that stores the files according file type, but here folders are already pre defined)

If anybody knows how to then please help me out.


Thanks
13 years ago

Ankit Garg wrote:If you are sure that there is an attribute named MENUINDEX in your session, then try this



Thanks for Guidline. It helped me too in my project.
13 years ago
sorry! I got my mistek.

but this dosent shows execute method so I got confused.
13 years ago
Thanks for reply.

I just had a look at source code of ActionSupport and Action classes &
I have noticed that ActionSupport class dosent have execute() method!!


So I think I need to write execute method i.e. when I am not mentioning any method in action tag in struts.xml
13 years ago
here is action class
13 years ago