Re: Not Able to call Action

2010-01-28 Thread SweetRahul

Hi Saeed,
Thanks for trying to solve my issue. 
Actually...Struts 2 is a Great Framework for Developing Web Applications.
But the word great adds more complexity to the Framework. I am using Dojo
with Struts2, but unexpectedly it did not works with IE it works in Mozilla
FF but not in IE.

So, Is there any other plugins available for using Ajax in a Web Application
?

Thanks

Rahul



Saeed Iqbal-2 wrote:
> 
> It looks fine to me perhaps someone else can help you.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354800.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Not Able to call Action

2010-01-28 Thread Saeed Iqbal
It looks fine to me perhaps someone else can help you.

On Thu, Jan 28, 2010 at 4:42 PM, SweetRahul  wrote:

>
> Yes, i have written it correct way...if i am not wrong.
> Please have a look at following struts.xml file
>
> 
>
>my.jsp
>Login.jsp
>
> 
>
> now here the URL is like this: "~/secure/login.action", Isn't it ?
>
> and  the code in jsp file is as:
>
> 
>
>
>
> 
>
>
> The execute method is executed successfully...In console i got the provided
> username and password field values.
>
> But still it gives me error... I have not understand whats wrong in this
> code ?
>
> Rahul
>
>
> Saeed Iqbal-2 wrote:
> >
> > It says secure.Login not just login. Case Sensitive too.
> >
> >
> >
> > --
> > Saeed Iqbal
> > Independant Consultant
> > J2EE - Application Architect / Developer
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354656.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer


Re: Not Able to call Action

2010-01-28 Thread SweetRahul

Yes, i have written it correct way...if i am not wrong.
Please have a look at following struts.xml file



my.jsp
Login.jsp



now here the URL is like this: "~/secure/login.action", Isn't it ?

and  the code in jsp file is as:








The execute method is executed successfully...In console i got the provided
username and password field values.

But still it gives me error... I have not understand whats wrong in this
code ?

Rahul


Saeed Iqbal-2 wrote:
> 
> It says secure.Login not just login. Case Sensitive too.
> 
> 
> 
> -- 
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354656.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Not Able to call Action

2010-01-28 Thread Saeed Iqbal
It says secure.Login not just login. Case Sensitive too.

On Thu, Jan 28, 2010 at 4:25 PM, SweetRahul  wrote:

>
> Yes. But still it gives me an error...
> My Struts.xml file contain the above action with name "login" and for
> double
> check
> in result i have provided name="success".
>
> My Action is executed successfully...but it will not display the page which
> is mapped to SUCCESS.
>
> If you want some more information... then please reply me.
>
> Thanks
>
> Rahul
>
>
>
> Saeed Iqbal-2 wrote:
> >
> > That needs to be defined in struts.xml action and its result.
> >
> > On Thu, Jan 28, 2010 at 4:10 PM, SweetRahul 
> wrote:
> >
> >>
> >> Hi,
> >>
> >> Very Very thank you for Such a Wonderful Explanation about the Initial
> >> Configuration for Struts2.
> >>
> >> But, I have always stuck here(whenever i create application from
> >> scratch) I have checked all the My Configurations... but then also
> my
> >> application gives me error something like this:
> >>
> >> " Struts has detected an unhandled exception:
> >>
> >> Messages: No result defined for action secure.Login and result success "
> >>
> >> It will be nice if you will please give me some hint for above issue.
> >>
> >> Thanks
> >>
> >> Rahul
> >>
> >>
> >>
> >>
> >>
> >>
> >
>
> --
> View this message in context:
> http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354451.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer


Re: Not Able to call Action

2010-01-28 Thread SweetRahul

Yes. But still it gives me an error... 
My Struts.xml file contain the above action with name "login" and for double
check
in result i have provided name="success".

My Action is executed successfully...but it will not display the page which
is mapped to SUCCESS.

If you want some more information... then please reply me.

Thanks

Rahul



Saeed Iqbal-2 wrote:
> 
> That needs to be defined in struts.xml action and its result.
> 
> On Thu, Jan 28, 2010 at 4:10 PM, SweetRahul  wrote:
> 
>>
>> Hi,
>>
>> Very Very thank you for Such a Wonderful Explanation about the Initial
>> Configuration for Struts2.
>>
>> But, I have always stuck here(whenever i create application from
>> scratch) I have checked all the My Configurations... but then also my
>> application gives me error something like this:
>>
>> " Struts has detected an unhandled exception:
>>
>> Messages: No result defined for action secure.Login and result success "
>>
>> It will be nice if you will please give me some hint for above issue.
>>
>> Thanks
>>
>> Rahul
>>
>>
>>
>>
>>
>>
> 

-- 
View this message in context: 
http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354451.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Not Able to call Action

2010-01-28 Thread Saeed Iqbal
That needs to be defined in struts.xml action and its result.

On Thu, Jan 28, 2010 at 4:10 PM, SweetRahul  wrote:

>
> Hi,
>
> Very Very thank you for Such a Wonderful Explanation about the Initial
> Configuration for Struts2.
>
> But, I have always stuck here(whenever i create application from
> scratch) I have checked all the My Configurations... but then also my
> application gives me error something like this:
>
> " Struts has detected an unhandled exception:
>
> Messages: No result defined for action secure.Login and result success "
>
> It will be nice if you will please give me some hint for above issue.
>
> Thanks
>
> Rahul
>
>
>
>
>
> newton.dave wrote:
> >
> > --- aum strut  wrote:
> >> about entering valida data i am inputting valid data aal the tme..
> >
> > I'm skeptical. Turn "devMode" on and check your logs. It might also be
> > related to the other issue, I suppose, but it's more likely that there is
> > a
> > conversion or validator error.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354274.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer


Re: Not Able to call Action

2010-01-28 Thread SweetRahul

Hi,

Very Very thank you for Such a Wonderful Explanation about the Initial
Configuration for Struts2.

But, I have always stuck here(whenever i create application from
scratch) I have checked all the My Configurations... but then also my 
application gives me error something like this:

" Struts has detected an unhandled exception: 

Messages: No result defined for action secure.Login and result success "

It will be nice if you will please give me some hint for above issue.

Thanks

Rahul
 




newton.dave wrote:
> 
> --- aum strut  wrote:
>> about entering valida data i am inputting valid data aal the tme..
> 
> I'm skeptical. Turn "devMode" on and check your logs. It might also be
> related to the other issue, I suppose, but it's more likely that there is
> a
> conversion or validator error.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354274.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Not Able to call Action

2008-03-12 Thread aum strut
Hi Dave,

Thanks for helping me out and clearing my basic understanding of the work
flow.no my application is working fine running without any error..

thanks for your help.

--aum
On 3/11/08, aum strut <[EMAIL PROTECTED]> wrote:
>
> ok i will do like this..
> lets see what will be the results...
>
>
> On 3/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > about entering valida data i am inputting valid data aal the tme..
> >
> > I'm skeptical. Turn "devMode" on and check your logs. It might also be
> > related to the other issue, I suppose, but it's more likely that there
> > is a
> > conversion or validator error.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Not Able to call Action

2008-03-11 Thread aum strut
ok i will do like this..
lets see what will be the results...


On 3/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > about entering valida data i am inputting valid data aal the tme..
>
> I'm skeptical. Turn "devMode" on and check your logs. It might also be
> related to the other issue, I suppose, but it's more likely that there is
> a
> conversion or validator error.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-11 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> about entering valida data i am inputting valid data aal the tme..

I'm skeptical. Turn "devMode" on and check your logs. It might also be
related to the other issue, I suppose, but it's more likely that there is a
conversion or validator error.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-11 Thread aum strut
thks dave for such an explanation.

i got what you are saying..i was really nt aware of the fact..
about entering valida data i am inputting valid data aal the tme..


On 3/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > i am using two jsp pages here namely index.jsp for getting inputs
> > HelloWorld.jsp-->for displaying the results..
> >  as indexs .jsp is being displayed on start up i have configuredit in
> > web.xml
>
> Okay, I've said like a million times that if you access the JSP page
> directly, not through an action, the HTML rendered by the form tag will be
> incorrect:  will not create the "action" attribute property
> correctly.
>
> If you access index.jsp directly without going through an action the
>  tag will generate a  tag that looks something like
> this:
>
>  action="/aum1/jsp/TestExample.action" method="post">
>
> Notice how the action of the  tag is wrong: it's getting the jsp
> directory added to it. Bypassing an action and expecting the S2 tags to
> work
> will lead to issues.
>
> If you access index.jsp going through an action the  tag will
> generate a  tag that looks something like this:
>
>  action="/aum1/TestExample.action" method="post">
>
> See the difference?
>
> Do you understand what I'm saying? I'm not going to answer this question
> again; somebody else may, though, if you keep asking it.
>
> > Are you doing any validation? no as  i know i have not validated
> > the inputs not at client side not at my action class.
>
> Are you entering a valid date? A type conversion error can also send you
> back
> to the "input" result.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-11 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> i am using two jsp pages here namely index.jsp for getting inputs
> HelloWorld.jsp-->for displaying the results..
>  as indexs .jsp is being displayed on start up i have configuredit in
> web.xml

Okay, I've said like a million times that if you access the JSP page
directly, not through an action, the HTML rendered by the form tag will be
incorrect:  will not create the "action" attribute property
correctly.

If you access index.jsp directly without going through an action the
 tag will generate a  tag that looks something like this:



Notice how the action of the  tag is wrong: it's getting the jsp
directory added to it. Bypassing an action and expecting the S2 tags to work
will lead to issues.

If you access index.jsp going through an action the  tag will
generate a  tag that looks something like this:



See the difference?

Do you understand what I'm saying? I'm not going to answer this question
again; somebody else may, though, if you keep asking it.

> Are you doing any validation? no as  i know i have not validated 
> the inputs not at client side not at my action class.

Are you entering a valid date? A type conversion error can also send you back
to the "input" result.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-11 Thread aum strut
well this time i am keen to answeryour questions.

i am using two jsp pages here namely index.jsp for getting inputs
HelloWorld.jsp-->for displaying the results..
 as indexs .jsp is being displayed on start up i have configuredit in
web.xml

helloWorld.jsp i have configured it in struts.xml like this--.



/HelloWorld.jsp

 


this mean that i am not accessing it directly

Are you doing any validation?
no as  i know i have not validated the inputs not at client side not at my
action class.


-aum

On 3/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > i hope this will help to find out the cause of the error.As its still
> > giving the error.error message from the console attached namely
> > consoleError when i am adding the "action extension to the action".
>
> Are you accessing the JSP directly (as opposed to through an action)?
>
> >> No result defined for action aum.TestExample and result input
>
> You're getting this because you don't have an input result defined;
> leading
> me to believe that some sort of validation is being attempted. Are you
> doing
> any validation?
>
> > if you need any other infomation please let me know
>
> I need you to answer my questions.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-11 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> i hope this will help to find out the cause of the error.As its still
> giving the error.error message from the console attached namely
> consoleError when i am adding the "action extension to the action".

Are you accessing the JSP directly (as opposed to through an action)?

>> No result defined for action aum.TestExample and result input

You're getting this because you don't have an input result defined; leading
me to believe that some sort of validation is being attempted. Are you doing
any validation?

> if you need any other infomation please let me know

I need you to answer my questions.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-11 Thread aum strut
Hi Dave,

I am attaching all the files namely
index.jsp
HelloWorld.jsp
TestAction.java
struts.xml
web.xml
consoleError
browser Message

i hope this will help to find out the cause of the error.As its still giving
the error.error message from the console attached namely consoleError when i
am adding the "action extension to the action".

Case2
index1.jsp(index1 is named only for describing two different cases) when no
"action extension is attached with the action"

ConsoleOutput is attached by name consoleLog.

if you need any other infomation please let me know

thanks in advance
--aum


On 3/9/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > about adding the .action extension i have to add this extension to my
> > action like this
> > 
> > while if i am using
> > 
> > it is still giving me the problem.
>
> Then something is still wrong.
>
> As I've tried to say several times already, and asked but gotten no
> answer,
> if you're accessing the JSP directly (not recommended, as I've also said)
> rather than through an action, the generated HTML will not be correct.
>
> I've told you what I thought the problem was a few times, I've asked
> questions that could prove that was what the problem was, but you've never
> answered any of them. I don't know what you expect.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
HTTP Status 404 - No result defined for action aum.TestExample and result input



type Status report

message No result defined for action aum.TestExample and result input

description The requested resource (No result defined for action 
aum.TestExample and result input) is not available.




Apache Tomcat/6.0.13Mar 11, 2008 8:00:12 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program 
Files\MyEclipse 6.0\bin;C:\Program Files\MyEclipse 
6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_6.0.1.zmyeclipse601200710\tomcat\bin
Mar 11, 2008 8:00:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 11, 2008 8:00:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1057 ms
Mar 11, 2008 8:00:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 11, 2008 8:00:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Mar 11, 2008 8:00:13 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Mar 11, 2008 8:00:14 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Mar 11, 2008 8:00:14 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Mar 11, 2008 8:00:14 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting default 
VM locale
Mar 11, 2008 8:00:14 PM 
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory 
INFO: Setting DefaultObjectTypeDeterminer as default ...
Mar 11, 2008 8:00:15 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Mar 11, 2008 8:00:15 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Mar 11, 2008 8:00:15 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Mar 11, 2008 8:00:15 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting default 
VM locale
Mar 11, 2008 8:00:16 PM 
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory 
INFO: Setting DefaultObjectTypeDeterminer as default ...
Mar 11, 2008 8:00:17 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-default.xml]
Mar 11, 2008 8:00:17 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts-plugin.xml]
Mar 11, 2008 8:00:17 PM 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
INFO: Parsing configuration file [struts.xml]
Mar 11, 2008 8:00:17 PM org.apache.struts2.config.Settings getLocale
WARNING: Settings: Could not parse struts.locale setting, substituting default 
VM locale
Mar 11, 2008 8:00:17 PM 
com.opensymphony.xwork2.util

Re: Not Able to call Action

2008-03-09 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> about adding the .action extension i have to add this extension to my
> action like this
> 
> while if i am using
> 
> it is still giving me the problem.

Then something is still wrong. 

As I've tried to say several times already, and asked but gotten no answer,
if you're accessing the JSP directly (not recommended, as I've also said)
rather than through an action, the generated HTML will not be correct.

I've told you what I thought the problem was a few times, I've asked
questions that could prove that was what the problem was, but you've never
answered any of them. I don't know what you expect.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-09 Thread aum strut
the problem was that i was not clear about the struts.xml file which was
creating the problem..
i was putting struts.xml in wrong location..

about adding the .action extension i have to add this extension to my action
like this

while if i am using

it is still giving me the problem.


On 3/9/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > it was really a silly mistake from my side which was causing the
> problem...
>
> What was the problem?
>
> > only question i want to ask is while writing the name of the action in
>  > form> tage do we need to add action extension,
>
> No.
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-09 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> it was really a silly mistake from my side which was causing the problem...

What was the problem?

> only question i want to ask is while writing the name of the action in  form> tage do we need to add action extension,

No.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-09 Thread aum strut
hi dave,

Thanks for looking in to the matter.
the problem has been fixed..
it was really a silly mistake from my side which was causing the problem...

only question i want to ask is while writing the name of the action in  tage do we need to add action extension,

my mean to say that if the name of our action is "Test" so do we need to
write  or 

Thanks
umesh


On 3/8/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > but when i hit submitt button.it is not able to find the action
> associated
> > with the index.jsp.
>
> *sigh*
>
> Okay, we're going to start over. This would be easier if you'd answer the
> questions, though. This time I've numbered them for your convenience.
>
> 1) Do you have the S2 filter defined in your web.xml? You did not include
> your web.xml in your original post.
>
> I ask #1 because if you don't have the S2 filter defined nothing will work
> correctly. From one of your earlier messages I am assuming that you do, in
> fact, have the filter defined, but want to make sure.
>
> 2) Do you know that your application is compiling?
> 3) Do  you know that your application is being properly deployed?
>
> I ask questions #2 & #3 because using the exact code you posted originally
> I
> cannot duplicate your issue.
>
> 4) What, *precisely*, do you mean that it is "not able to find the action
> associated with the index.jsp"? Is there an error message in your browser
> window? If so, what is it? Is there an error message in the console? If
> so,
> what is it?
>
> I ask question #4 because there are various ways in which this could fail,
> and determining which way it is failing is probably enough to solve the
> problem.
>
> 5) What HTML is being rendered by the  tag?
>
> I ask #5 because the  tag will render differently if there is
> an
> S2 configuration problem. For example, if you misspell the name of an
> action
> in the  tag and it is not a configured action the tag will not
> render the action suffix (".action" by default).
>
> 6) Please re-post the **entire** contents of each of the following files:
>- web.xml configuration file
>- struts.xml configuration file
>- aum.StrutsExample Java source
>- /jsp/index.jsp JSP source
>
> I ask #6 because each code posting you've made has had something
> different. I
> ask for the *entire* contents to avoid me having to ask you more
> questions.
>
> 7) Please post the *precise* error message you see in your browser and/or
> in
> your logs.
>
> I ask #7 because I still don't know precisely what you're seeing.
>
> Each of these questions, *if answered*, may help lead to a solution. I
> cannot
> reproduce your problem, but because you do not provide answers to
> questions
> or precise errors I'm having some difficulty determining what the problem
> actually is.
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-08 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> but when i hit submitt button.it is not able to find the action associated
> with the index.jsp.

*sigh*

Okay, we're going to start over. This would be easier if you'd answer the
questions, though. This time I've numbered them for your convenience.

1) Do you have the S2 filter defined in your web.xml? You did not include
your web.xml in your original post.

I ask #1 because if you don't have the S2 filter defined nothing will work
correctly. From one of your earlier messages I am assuming that you do, in
fact, have the filter defined, but want to make sure.

2) Do you know that your application is compiling?
3) Do  you know that your application is being properly deployed? 

I ask questions #2 & #3 because using the exact code you posted originally I
cannot duplicate your issue.

4) What, *precisely*, do you mean that it is "not able to find the action
associated with the index.jsp"? Is there an error message in your browser
window? If so, what is it? Is there an error message in the console? If so,
what is it?

I ask question #4 because there are various ways in which this could fail,
and determining which way it is failing is probably enough to solve the
problem.

5) What HTML is being rendered by the  tag?

I ask #5 because the  tag will render differently if there is an
S2 configuration problem. For example, if you misspell the name of an action
in the  tag and it is not a configured action the tag will not
render the action suffix (".action" by default).

6) Please re-post the **entire** contents of each of the following files:
- web.xml configuration file
- struts.xml configuration file
- aum.StrutsExample Java source
- /jsp/index.jsp JSP source

I ask #6 because each code posting you've made has had something different. I
ask for the *entire* contents to avoid me having to ask you more questions.

7) Please post the *precise* error message you see in your browser and/or in
your logs.

I ask #7 because I still don't know precisely what you're seeing.

Each of these questions, *if answered*, may help lead to a solution. I cannot
reproduce your problem, but because you do not provide answers to questions
or precise errors I'm having some difficulty determining what the problem
actually is.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-07 Thread aum strut
i have designed a jsp page namely index.jsp
As i am using myeclipse as IDE which has tomcat embedded in it.

running my application using embedded tomcat is displaying index.jsp page
accuratly which is asking for input about the name and date.

but when i hit submitt button.it is not able to find the action associated
with the index.jsp.


On 3/8/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > i am not sure about the method invocation as read the example some where
> as
> > mentioned theer it was describibg that struts2 will automaticaaly
> populate
> > the fields in the action with refrence to input field.
>
> How do you access the form page? What is the URL you type in?
>
> Did you see the other post where I asked you more important questions?
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-07 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> i am not sure about the method invocation as read the example some where as
> mentioned theer it was describibg that struts2 will automaticaaly populate
> the fields in the action with refrence to input field.

How do you access the form page? What is the URL you type in?

Did you see the other post where I asked you more important questions?

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-07 Thread aum strut
hi dave,

i am not sure about the method invocation as read the example some where as
mentioned theer it was describibg that struts2 will automaticaaly populate
the fields in the action with refrence to input field.


On 3/7/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Oops, hit send too quickly.
>
> It's also a good idea (in general) to answer the questions somebody asks
> you--they may be relevant.
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > even when i am trying the example from the struts web site namely
> > HelloWorld it is also not running. it still giving me the following
> error.
> > [...]
> >
> > On 3/7/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> > > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > > [...]
> > > I'm also not clear on how you're getting to your input form in the
> first
> > > place; are you using dynamic method invocation?
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-07 Thread Dave Newton
Oops, hit send too quickly.

It's also a good idea (in general) to answer the questions somebody asks
you--they may be relevant.

--- aum strut <[EMAIL PROTECTED]> wrote:
> even when i am trying the example from the struts web site namely
> HelloWorld it is also not running. it still giving me the following error.
> [...]
> 
> On 3/7/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> > --- aum strut <[EMAIL PROTECTED]> wrote:
> > > [...]
> > I'm also not clear on how you're getting to your input form in the first
> > place; are you using dynamic method invocation?

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-07 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> even when i am trying the example from the struts web site namely
> HelloWorld it is also not running.
> it still giving me the following error.

Let's focus on your application for now.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-07 Thread aum strut
even when i am trying the example from the struts web site namely HelloWorld
it is also not running.
it still giving me the following error.



*type* Status report

*message* *There is no Action mapped for namespace / and action name
HelloWorld.*

*description* *The requested resource (There is no Action mapped for
namespace / and action name HelloWorld.) is not available.*
this time i am using the same code and configuration as mentioned in the
webpage.


On 3/7/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > [...]
>
> I'm also not clear on how you're getting to your input form in the first
> place; are you using dynamic method invocation?
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-07 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> [...]

I'm also not clear on how you're getting to your input form in the first
place; are you using dynamic method invocation?

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-07 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> /jsp/welcome.jsp

Is that a typo? "SUCCESS" should be lower-case if you're returning
ActionSupport.SUCCESS.

Also the information regarding the lack of a configured result should be
logging an error message to your console. Including such logging information
is helpful.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-07 Thread aum strut
Hi All,

I have tried all the ways but not able to solve the problem..
i am attaching all the codes for my test application..

*StrutsExample.xml*
*

package* aum;
*

import* java.sql.Date;
*

import* com.opensymphony.xwork2.ActionSupport;

**

*public* *class* StrutsExample *extends* ActionSupport {

**

*private* *static* *final* *long* *serialVersionUID* = 1L;

*private* String name="null";

Date date;

*public* Date getDate() {

*return* date;

}

*public* *void* setDate(Date date) {

*this*.date = date;

}

*public* String getName() {

*return* name;

}

*public* *void* setName(String name) {

*this*.name=name;

}

*public* String execute() *throws* Exception{

*return* *SUCCESS*;

}

}
*Struts.xml*







/jsp/index.jsp

/jsp/welcome.jsp







*Index.jsp*











one more interesting thing is that when i click the submitt button it is
displaying the URL as http://aum:8080/StrutsStarter/TestExample where as i
thik it should display it as
http://aum:8080/StrutsStarter/TestExample.action
Any suggestion in this regard will be much appriciated.

On 3/7/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- "Karr, David" <[EMAIL PROTECTED]> wrote:
> > I'm technically a newbie on this, so don't take my word on it, but I
> > would suggest:
> >
> > * Don't use "actionPackages" or the annotations.
>
> Both actionPackages and the annotations work fine; the issue you had was
> that
> you were combining the two configuration methods. There are some
> limitations
> with S2.0's zero-config, most notably no interceptor-ref annotations. That
> may be solvable via @ParentPackage by configuring the interceptors via
> XML,
> however--not sure.
>
> > * Remove the "namespace" attribute on the action element.
>
> I didn't see that in his code; it may have gotten edited out. Normally the
> "namespace" attribute goes with the "package" element, though, and there's
> no
> reason not to have one.
>
> It's one of the major ways to separate parts of the application.
>
> > * Change the "package" attribute on the action element to have a value
> > != your Java package.
>
> Hopefully I (or someone...) will remember to look in to that and nail down
> why that's a possible issue and either document it or fix it.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Not Able to call Action

2008-03-06 Thread Dave Newton
--- "Karr, David" <[EMAIL PROTECTED]> wrote:
> I'm technically a newbie on this, so don't take my word on it, but I
> would suggest:
> 
> * Don't use "actionPackages" or the annotations.

Both actionPackages and the annotations work fine; the issue you had was that
you were combining the two configuration methods. There are some limitations
with S2.0's zero-config, most notably no interceptor-ref annotations. That
may be solvable via @ParentPackage by configuring the interceptors via XML,
however--not sure.

> * Remove the "namespace" attribute on the action element.

I didn't see that in his code; it may have gotten edited out. Normally the
"namespace" attribute goes with the "package" element, though, and there's no
reason not to have one.

It's one of the major ways to separate parts of the application.

> * Change the "package" attribute on the action element to have a value
> != your Java package. 

Hopefully I (or someone...) will remember to look in to that and nail down
why that's a possible issue and either document it or fix it.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Not Able to call Action

2008-03-06 Thread Karr, David
I'm technically a newbie on this, so don't take my word on it, but I
would suggest:

* Don't use "actionPackages" or the annotations.
* Remove the "namespace" attribute on the action element.
* Change the "package" attribute on the action element to have a value
!= your Java package. 

> -Original Message-
> From: aum strut [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2008 8:42 AM
> To: Struts Users Mailing List
> Subject: Not Able to call Action
> 
> Hi All,
> 
> I am a starter in struts2. i am developing a simple programme 
> in struts2 which will take the name and date as input and 
> will display the same in the next page.
> 
> below is the sample code of my action calss struts.xml
> 
> my index.jsp page is displaying properly whcih is asking for 
> the inputs but when i click the submitt button it is giving 
> me the error as *"The requested resource 
> (/StrutsStarter/TestExample) is not availableE"*
> 
> i am not able to figure it out the reason behind this.any 
> help in this regard will be much appriciated.
> 
> *my Action class* is
> 
> along with getter and setter methods
> public String execute() throws Exception{
>   return SUCCESS;
> 
>  }
> 
> 
> *struts.xml*
> 
>  ... 
> 
> /jsp/index.jsp
> /jsp/welcome.jsp
> 
> 
> 
> 
> *index.jsp*
> 
> 
> 
> 
> 
> 
>
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-06 Thread aum strut
and if i will add the namespace to the struts.xml
it is giving the error message as
"

*No configuration found for the specified action: 'TestExample' in
namespace: ''. Form action defaulting to 'action' attribute's literal value.
*
any idea about these warnings..


On 3/6/08, aum strut <[EMAIL PROTECTED]> wrote:
>
> ther is one more thing as i am using myeclipse for the development and
> when i am running the application it is giving the warning as"
>
> *"No configuration found for the specified action: 'TestExample' in
> namespace: ''. Form action defaulting to 'action' attribute's literal value"
> *
> "
>
> On 3/6/08, Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> >
> > * my index.jsp page is displaying properly whcih is asking for the
> > inputs
> > but when i click the submitt button it is giving me the error as
> > *"The requested resource (/StrutsStarter/TestExample) is not
> > availableE"**
> >
> > It is interesting why you have */StrutsStarter/TestExample *instead of *
> > /StrutsStarter/TestExample.action*
> > What hapen if you put the url directly in your browser?.
> > As you can see i'm just guessing but that's what i will do to start
> > solving
> > this problem :P.
> >
> > What happen if you change
> > 
> > For
> > 
> >
> > I know is not necessary but maybe it could work.
> >
> > On Thu, Mar 6, 2008 at 10:58 AM, aum strut <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Dave and Othon,
> > >
> > > even on adding "namespace" and even removing the annotation based
> > > validations from the action
> > > i am still facing the same problem.
> > >
> > >
> > > On 3/6/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> > > >
> > > > --- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> > > > > I guess somebody else have a very similar problem
> > > > >
> > > > > Change:
> > > > > 
> > > > > For:
> > > > >  > > > namespace="/">
> > > >
> > > > The other problem was occurring specifically because of the attempt
> > to
> > > use
> > > > zero-config alongside XML config in the same package, which
> > apparently
> > > > doesn't work. While I'd probably encourage setting the namespace
> > > > explicitly,
> > > > it isn't required under most circumstances.
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
>
>


Re: Not Able to call Action

2008-03-06 Thread aum strut
ther is one more thing as i am using myeclipse for the development and when
i am running the application it is giving the warning as"

*"No configuration found for the specified action: 'TestExample' in
namespace: ''. Form action defaulting to 'action' attribute's literal value"
*
"

On 3/6/08, Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
>
> * my index.jsp page is displaying properly whcih is asking for the inputs
> but when i click the submitt button it is giving me the error as
> *"The requested resource (/StrutsStarter/TestExample) is not availableE"**
>
> It is interesting why you have */StrutsStarter/TestExample *instead of *
> /StrutsStarter/TestExample.action*
> What hapen if you put the url directly in your browser?.
> As you can see i'm just guessing but that's what i will do to start
> solving
> this problem :P.
>
> What happen if you change
> 
> For
> 
>
> I know is not necessary but maybe it could work.
>
> On Thu, Mar 6, 2008 at 10:58 AM, aum strut <[EMAIL PROTECTED]> wrote:
>
> > Hi Dave and Othon,
> >
> > even on adding "namespace" and even removing the annotation based
> > validations from the action
> > i am still facing the same problem.
> >
> >
> > On 3/6/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> > >
> > > --- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> > > > I guess somebody else have a very similar problem
> > > >
> > > > Change:
> > > > 
> > > > For:
> > > >  > > namespace="/">
> > >
> > > The other problem was occurring specifically because of the attempt to
> > use
> > > zero-config alongside XML config in the same package, which apparently
> > > doesn't work. While I'd probably encourage setting the namespace
> > > explicitly,
> > > it isn't required under most circumstances.
> > >
> > > Dave
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>


Re: Not Able to call Action

2008-03-06 Thread Othon Reyes Sanchez
* my index.jsp page is displaying properly whcih is asking for the inputs
but when i click the submitt button it is giving me the error as
*"The requested resource (/StrutsStarter/TestExample) is not availableE"**

It is interesting why you have */StrutsStarter/TestExample *instead of *
/StrutsStarter/TestExample.action*
What hapen if you put the url directly in your browser?.
As you can see i'm just guessing but that's what i will do to start solving
this problem :P.

What happen if you change

For


I know is not necessary but maybe it could work.

On Thu, Mar 6, 2008 at 10:58 AM, aum strut <[EMAIL PROTECTED]> wrote:

> Hi Dave and Othon,
>
> even on adding "namespace" and even removing the annotation based
> validations from the action
> i am still facing the same problem.
>
>
> On 3/6/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> > --- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> > > I guess somebody else have a very similar problem
> > >
> > > Change:
> > > 
> > > For:
> > >  > namespace="/">
> >
> > The other problem was occurring specifically because of the attempt to
> use
> > zero-config alongside XML config in the same package, which apparently
> > doesn't work. While I'd probably encourage setting the namespace
> > explicitly,
> > it isn't required under most circumstances.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Not Able to call Action

2008-03-06 Thread aum strut
Hi Dave and Othon,

even on adding "namespace" and even removing the annotation based
validations from the action
i am still facing the same problem.


On 3/6/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> > I guess somebody else have a very similar problem
> >
> > Change:
> > 
> > For:
> >  namespace="/">
>
> The other problem was occurring specifically because of the attempt to use
> zero-config alongside XML config in the same package, which apparently
> doesn't work. While I'd probably encourage setting the namespace
> explicitly,
> it isn't required under most circumstances.
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-06 Thread Dave Newton
--- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> I guess somebody else have a very similar problem
> 
> Change:
> 
> For:
> 

The other problem was occurring specifically because of the attempt to use
zero-config alongside XML config in the same package, which apparently
doesn't work. While I'd probably encourage setting the namespace explicitly,
it isn't required under most circumstances.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Not Able to call Action

2008-03-06 Thread aum strut
yes i am extending ActionSupport class and as i know it implimets Action
interface where SUCCESS is defined.
On 3/6/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > public String execute() throws Exception{
> >   return SUCCESS;
> >  }
>
> Do you have SUCCESS defined anywhere?
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Not Able to call Action

2008-03-06 Thread Othon Reyes Sanchez
I guess somebody else have a very similar problem

Change:

For:


Also are you extending form ActionSupport in your TestExample class?.



On Thu, Mar 6, 2008 at 10:42 AM, aum strut <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I am a starter in struts2. i am developing a simple programme in struts2
> which will take the name and
> date as input and will display the same in the next page.
>
> below is the sample code of my action calss
> struts.xml
>
> my index.jsp page is displaying properly whcih is asking for the inputs
> but when i click the submitt button it is giving me the error as
> *"The requested resource (/StrutsStarter/TestExample) is not availableE"*
>
> i am not able to figure it out the reason behind this.any help in this
> regard will be much appriciated.
>
> *my Action class* is
>
> along with getter and setter methods
> public String execute() throws Exception{
>  return SUCCESS;
>
>  }
>
>
> *struts.xml*
> 
> 
> …
> 
> /jsp/index.jsp
> /jsp/welcome.jsp
> 
> 
> 
>
> *index.jsp*
> 
>
>
>
>
>
>   
>


Re: Not Able to call Action

2008-03-06 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote:
> public String execute() throws Exception{
>   return SUCCESS;
>  }

Do you have SUCCESS defined anywhere?

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Not Able to call Action

2008-03-06 Thread aum strut
Hi All,

I am a starter in struts2. i am developing a simple programme in struts2
which will take the name and
date as input and will display the same in the next page.

below is the sample code of my action calss
struts.xml

my index.jsp page is displaying properly whcih is asking for the inputs
but when i click the submitt button it is giving me the error as
*"The requested resource (/StrutsStarter/TestExample) is not availableE"*

i am not able to figure it out the reason behind this.any help in this
regard will be much appriciated.

*my Action class* is

along with getter and setter methods
public String execute() throws Exception{
  return SUCCESS;

 }


*struts.xml*


…

/jsp/index.jsp
/jsp/welcome.jsp




*index.jsp*