maggie karve

Ranch Hand
+ Follow
since Dec 29, 2009
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 maggie karve


the result is 20
I dont know why??
6 years ago
Hello People.........

I wrote a code in html to just invoke the servlet and my servlet code goes like this



i just get to see the html page ....I expect to see an excel file with the data values..I tried posting the http link in excel file but didnt work..I am not sure how to see it.....
Kindly help...

Thanks in advance
7 years ago
but i didnt get an appropriate reply..i have read that its a bad style to use datasource now...
but can you tell me whether will i be able to acccess database using struts 1..i know we can in struts 2....using hibernate..

please reply
10 years ago
Hi...i have read in forums that using datasource is not a good option...how can i connect to database using struts 1....i want to do it in both in Struts 1 as well as Struts2..
When i use datasource in my stuts-config.xml,i get an error

struts-config.xml

and my Action class:AddAction.java
10 years ago
hello...
i tried to download DOJO toolkit...
i downloaded it from http://download.dojotoolkit.org/
i downloaded zip files like
-- dojo-release-1.4.3-src
-- dojo-release-1.4.3-src.tar.gz
-- dojo-release-1.4.3-src.tar
-- dojo-release-1.4.3-demos.tar.gz
-- dojo-release-1.4.3-demos.tar
-- dojo-release-1.4.0-docs.tar.gz
i unzipped all the files i have the DOJO files which you get by default like dojo,dijit,util,dojox...

but i want the builder..from where do i get it??

is it that i have it but i dont know how to get it???


Thanks
I am getting error while starting Tomcat...

i set the devmode on by including struts.properties file



and struts.xml file

when i started Tomcat i am getting the foll...
11 years ago
Hi...this is what i get when i put devmode on..



I am using Struts 2.1.8.1.....

and my directory for strut.xml is
C:\Software\Tomcat 6.0\webapps\testapp\WEB-INF\classes\struts.xml and rest all the files i have made are in the same path as mentioned in the tutorial....i have put the jsp files Login.jsp and Welcome.jsp in C:\Software\Tomcat 6.0\webapps\testapp directory.....i even made the same jsp and deployed it in eclipse under

C:\Software\workspace\StrutsHelloWorld\WebContent folder......

is there anything else that i am missing???
11 years ago
I am just tying to execute an example from the tutorial available in this link..my code is the same as

http://java.dzone.com/articles/struts2-tutorial-part-27

i have placed my files in eclipse as mentioned in the tutorial.....
still i have getting error.....i have placed the same struts.xml file under WEB-INF/classes folder..........
11 years ago
Hi,
I am a newbie in Struts 2...
i am trying to execute a Login.jsp and i am using eclipse as the development environment....i have stored the struts.xml in ApplicationResources.properties file......

but when i run the program i get....

There is no Action mapped for namespace / and action name . - [unknown location]
...
i went through previous links in javaranch which had same posts but even though i made changes like puttings struts.xml under WeB-InF dirrectory and all...my problem is not getting solved...thanks...
11 years ago
i have put all the jar files in my lib directory ..i have removed the jaR FILE FROM c:\Software\tomcat 6.0\webapps/WEB-INF/lib directory....still i am getting the same error......
11 years ago
Hi,
i am writing Struts 2 app and i have stored all the jar files in my C:\Software\Tomcat 6.0\lib directory...still i get the error as

11 years ago
you mean its ok..if i skip struts 1 and directly start with struts 2....thanks...
11 years ago
i don know anything about struts...hence i started with struts one...then will go on with struts 2...what do you suggest?

thanks...
11 years ago
my problem is resolved i used one jar file for compiling called struts-core-1.3.10.jar and it compiled fine.........
now i have another doubt in the same application..i have written 2 classes one is dependent on another...
first is ....

second is

when i compile both the servlets HelloWorldActionForm.java compiles well but HelloWorldAction gives complier error as follows

HelloWorldAction.java:4: cannot find symbol
symbol : class HelloWorldActionForm
location: package myServlets
import myServlets.HelloWorldActionForm;
^
HelloWorldAction.java:19: cannot find symbol
symbol : class HelloWorldActionForm
location: class myServlets.HelloWorldAction
HelloWorldActionForm helloWorldForm = (HelloWorldActionForm) form;
^
HelloWorldAction.java:19: cannot find symbol
symbol : class HelloWorldActionForm
location: class myServlets.HelloWorldAction
HelloWorldActionForm helloWorldForm = (HelloWorldActionForm) form;
^
3 errors

though i have written line 1..
what is my mistake....kindly reply..


thanks in advance...
11 years ago
i tried executing the same program in IDE ,even after importing the packages i am getting compiler error on....

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

which jar files are required as executables for running this application???

when i say
public class HelloWorldAction extends org.apache.struts.action.Action

it give complier error on

org.apache.struts.action.Action

what am i missing??

thanks...
11 years ago