Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
I have a struts 2 sample application integrated with my struts 1. Everything is fine but the filter complains that it did not find index() method on the action. I have only one method execute() in the action class. The application is very simple one why does it says java.lang.NoSuchMethodExcepti

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
No its not truncated. The application is very simple helloworld application. newton.dave wrote: > > SanJ.SANJAY wrote: >> I have a struts 2 sample application integrated with my struts 1. >> Everything >> is fine but the filter complains that it did not find index() me

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
The problem is resolved, I had to remove the struts2-rest plugin. SanJ.SANJAY wrote: > > No its not truncated. > The application is very simple helloworld application. > > > > newton.dave wrote: >> >> SanJ.SANJAY wrote: >>> I have a struts 2 samp

Re: Struts 2 Sample application look for index() method

2009-04-15 Thread SanJ.SANJAY
don't guess. newton.dave wrote: > > SanJ.SANJAY wrote: >> No its not truncated. > > Oh, that's too bad. > >> The application is very simple helloworld application. > > It's not so simple we can guess what your code and configuration look

Struts 1 Plugin issue

2009-04-29 Thread SanJ.SANJAY
I was trying to use smae old S1 action for S2 jsp pages. I am suing struts 1 plugin for that. struts.xml code: http://struts.apache.org/dtds/struts-2.0.dtd";> com.cec.cdb.struts.actionform.opportunity.OpportunityForm OpportunityForm r

Struts 1 Plugin | forwards?

2009-05-05 Thread SanJ.SANJAY
Has anyone used struts 1 plugin for using struts 1 actions in struts 2? How would we handle the return types? As in struts 1 actions, it is an actionfoward type and struts 2 return type is string ("SUCCESS", "INPUT" etc..) After I installed the plugin and changes the struts.xml file: http://str

RE: Struts 1 Plugin | forwards?

2009-05-05 Thread SanJ.SANJAY
No, there is a plugin "Struts 1 Plugin" which lets you use the struts 1 actions in struts 2 application. mgainty wrote: > > > sounds like you're mixing your Struts1 code with struts2 jars > > probably easiest just to convert your codebase up to Struts2 > http://struts.apache.org/2.0.12/docs/m

Struts 1 new bean in form.

2009-10-05 Thread SanJ.SANJAY
Hello, I am using Struts 1. I am having some issue with creating a new bean inside the form. I have JSP with its form. Now I need to add a feature in my same JSP page. With this feature will come lots of new fields in JSP. So I thought instead of writing the fields and getter/setters in t

Re: Struts 1 new bean in form.

2009-10-05 Thread SanJ.SANJAY
sp, it might be null. > > Best greetings, > Paweł Wielgus. > > > 2009/10/5 SanJ.SANJAY : >> >> Hello, >> >>       I am using Struts 1. I am having some issue with creating a new >> bean >> inside the form. >> >> I have JSP with its

Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
I am using struts 1. I have Adobe SPRY tabs in my JSP. There are two separate set of fields/ data in each tab. So suppose someone changes fields in Tab 2 only and save the JSP, I do not want to save the tab 1 fields also because those fields are not changed. I was wondering if there is any way

Re: Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
s selected. The only down side here is > that you'll have to hardcode which fields belong to which tab. Once > you do that, you can do what you want. > > Paul > > On Mon, Oct 5, 2009 at 7:42 PM, SanJ.SANJAY wrote: >> >> I am using struts 1. I have Adobe SPRY tab

Re: Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
know javascript? That's what you would use. > > Paul > > On Mon, Oct 5, 2009 at 9:15 PM, SanJ.SANJAY wrote: >> >> Thanks Paul, >> >>                 I thought about that also but selecting a tab isn't >> always >> mean that I change the

Re: Struts 1 form data change

2009-10-06 Thread SanJ.SANJAY
or very little, > just look how much work You have to do > to make it hapen versus normal way. > > Best greetings, > Paweł Wielgus. > > > 2009/10/6 Paul Benedict : >> It could be a character that represents which tab is selected. A, B, C, >> etc. >> >

Re: Struts 1 form data change

2009-10-06 Thread SanJ.SANJAY
entire ActionForm data. > > public void execute(...) { > if (tab being saved is 'A') { > saveTabA(); > } else if (tab being saved is 'B') { > saveTabB(); > } > } > > Paul > > On Tue, Oct 6, 2009 at 7:28 AM, SanJ.SANJAY wrot

Re: Struts 1 form data change

2009-10-06 Thread SanJ.SANJAY
Or I can compare at server side, the values of fields in tabs. If value SanJ.SANJAY wrote: > > Thanks Paul, appreciate that. > > I have the same idea in mind but how would I know tab being saved is > 'A'? I can only detect if the tab is 'clicke

Struts logic:iterate does not recognize the collection.

2008-11-07 Thread SanJ.SANJAY
I am trying to display the collection that I am setting in struts action to the request scope. But when I try to use struts to display the collection, it says does not find xxxCollection bean in any scope. In Action class: for (int i = 0; i < children.length; i++) { xxxCollection.add(filenam

Re: Struts logic:iterate does not recognize the collection.

2008-11-07 Thread SanJ.SANJAY
newton.dave wrote: > > --- On Fri, 11/7/08, SanJ.SANJAY wrote: >> I am trying to display the collection that I am setting in >> struts action to the request scope. > > The code is putting it in session scope, FWIW: > >> request.getSession().setAttribu

Re: Struts logic:iterate does not recognize the collection.

2008-11-07 Thread SanJ.SANJAY
newton.dave wrote: > > The ">" characters are normally used to differentiate what I said from > what you said. Prefacing *every* line with ">" somewhat defeats the > purpose and breaks with tradition. > > --- On Fri, 11/7/08, SanJ.SANJAY wrote: >

Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread SanJ.SANJAY
I am having some issues while upgrading the struts: I dowloaded the latest 2.0.14 source from mirror and then copied all the .jars from the /lib folder to my application /lib folder. Now when I restart my Jboss, it throws error for deploying my web application with an error: java.lang.ClassCast

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread SanJ.SANJAY
not enough what is the complete process to do that ?? Would appreciate any insights. newton.dave wrote: > > SanJ.SANJAY wrote: >> I am having some issues while upgrading the struts: >> >> I dowloaded the latest 2.0.14 source from mirror and then copied all the >>

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread SanJ.SANJAY
-Hibernate/JSF. newton.dave wrote: > > SanJ.SANJAY wrote: >> Thanks Dave for the reply. I did not follow any process. I just wanted to >> upgrade Struts from1 to 2.0.14. SO read at the user guide that you just >> need >> to throw the *.jar files to your >> lib(ht

Re: Upgrading Struts from 1 to 2.0.14

2009-01-14 Thread SanJ.SANJAY
Robert Graf-Waczenski wrote: > > Frank W. Zammetti wrote: >> >> Dave is 100% correct: S2 != S1. They have a few concepts in common >> naturally, but there is, I think it's fair to say, more that makes >> them different than makes them alike. A complete rewrite is probably >> the best bet (

Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
org.apache.jasper.JasperException: File "/struts-tags" not found In struts 2 distribution, I do not see struts-tags or its .tld . Am I missing it or why do I get this error? -- View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21707578.html Sent from the Struts - User

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
tags in my JSP, but broke when I use "<%@ taglib prefix="s" uri="/struts-tags" %>" in jsp says "org.apache.jasper.JasperException: File "/struts-tags" not found" Thanks Wes Wannemacher wrote: > > On Wednesday 28 January 2009 10

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
I dropped all the jars from the /lib folder of distribution which is 2.0.14. Wes Wannemacher wrote: > > On Wednesday 28 January 2009 10:28:13 SanJ.SANJAY wrote: >> I am using Jboss 4.0.2. I was running my application on struts 1 and now >> decided to go with struts 2 in para

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
wrote: > > On Wednesday 28 January 2009 10:44:02 SanJ.SANJAY wrote: >> I dropped all the jars from the /lib folder of distribution which is >> 2.0.14. >> > > And you dropped them in WEB-INF/lib of your application and redeployed? > > I assume you also setup

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
sorry I mean I can extract struts-core jar without any error. SanJ.SANJAY wrote: > > I can extract the struts-core jar with an error. Also I placed them under > WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file. > Could this be the issue? I thought s

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
va:407) Wes Wannemacher wrote: > > On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote: >> I can extract the struts-core jar with an error. > > Was that a mistake? > >> Also I placed them under >> WEB-INF/lib folder. The only thing I have'nt done y

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
Sapmle application that is available for download for struts 2 in action, is really painful to install. There is no proper instruction in the book on how to install it and there are many issues when we try to do it ourself. Sometimes I feel so frustrated about buying this book... SanJ.SANJAY

Struts 2 In Action Sample Application

2009-02-02 Thread SanJ.SANJAY
Has anyone here tried and tested the Sample Application code that comes for this book "Struts 2 In Action" ? I am having hard time to fix it. Currently I am facing the issues in applicationContext.xml file. This is the header for XML file that comes with sample application code "

Re: Struts 2 In Action Sample Application

2009-02-03 Thread SanJ.SANJAY
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) Wes Wannemacher wrote: > > On Tuesday 03 February 2009 14:54:55 SanJ.SANJAY wrote: >> Has anyone faced this issue with Sample application??

Re: Struts 2 In Action Sample Application

2009-02-03 Thread SanJ.SANJAY
Has anyone faced this issue with Sample application?? SanJ.SANJAY wrote: > > Has anyone here tried and tested the Sample Application code that comes > for this book "Struts 2 In Action" ? > I am having hard time to fix it. Currently I am facing the issues in > ap

Re: Struts 2 In Action Sample Application

2009-02-03 Thread SanJ.SANJAY
I actually do not have in WEB-INF/lib, I have all the jars in a shred lib and add them in Eclipse and build. This is how I do for other projects also. Wes Wannemacher wrote: > > On Tuesday 03 February 2009 15:11:06 SanJ.SANJAY wrote: >> Even if I use the top conte

Struts 2 integration with classic struts 1

2009-02-10 Thread SanJ.SANJAY
Why would the basic integration ask for a plexus listener to be put in web.xml? And by the way do we really need plexus integration when my concern is nly to upgrade from struts 1-2? After I put the plexus listeners in the wb.xml : plexus org.apache.struts2.plexus.PlexusFilte

Re: Struts 2 integration with classic struts 1

2009-02-11 Thread SanJ.SANJAY
[type=java.lang.String, name='actionPackages'] in public void org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String). Any idea why this could've break?? I am clueless about thsi error. newton.dave wrote: > > SanJ.SANJAY wrote: >> Why wou

Re: Struts 2 integration with classic struts 1

2009-02-11 Thread SanJ.SANJAY
stuff with a dummy value to user.actions SanJ.SANJAY wrote: > > Thanks Dave, that helped. I'm getting a completely weird error message now > > java.lang.RuntimeException: java.lang.RuntimeException: > com.opensymphony.xwork2.inject.DependencyException: >

Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Procedure I followed. 1. Added all the latest jars to WEB-INF/lib 2. Updated web.xml 3. Created struts.xml under WEB-INF folder. 4. Defined action class in Now If I put S2 tags in my existing S1 jsp pages they compile fine and produce results. The issue that I have now is with Action mappings.

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
ction"; , appcontext is my root context as I have placed appcontext.war file at the deploy folder of JBoss. SanJ.SANJAY wrote: > > Procedure I followed. > > 1. Added all the latest jars to WEB-INF/lib > 2. Updated web.xml > 3. Created struts.xml under WEB-INF folder. > 4. De

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
:395) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) Musachy Barroso wrote: > > http://localhost:8080/appcontext/struts2/reportIndex.action > > > On Thu, Feb 12, 2009 at 2:20 PM, SanJ.SANJAY wrote: >> >&g

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Struts 2 > first and then try the integration. > > musachy > > On Thu, Feb 12, 2009 at 2:24 PM, SanJ.SANJAY wrote: >> >> Thanks Musachy trying this says: >> >> There is no Action mapped for action name struts2. - [unknown location] >>at

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Anyone knows what is the right place top put the struts.xml file? I think the issue with my problem stated below is that context is not able to find struts.xml file and that is the reason it is not avle to map actions. I tried putting it in WEB-INF/classes also but didn't work. SanJ.S

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
rc/com/cec/struts2/actions/" when I try to access like this http://localhost:8080/appContext/someAction.action Also I can use and execute the S2 tags in existing S1 jsp pages. So its confusing newton.dave wrote: > > SanJ.SANJAY wrote: >> Anyone knows what is the right place

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
rc/com/cec/struts2/actions/" when I try to access like this http://localhost:8080/appContext/someAction.action Also I can use and execute the S2 tags in existing S1 jsp pages. So its confusing newton.dave wrote: > > SanJ.SANJAY wrote: >> Anyone knows what is the right place

RE: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
http://localhost:8080/appContext/action.do >> >> But strangely S2 can't access the S2 actions from >> "appContext/src/com/cec/struts2/actions/" >> when I try to access like this >> >> http://localhost:8080/appContext/someAction.action >> >>

RE: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
SanJ.SANJAY wrote: > > I have the same configuration for struts.xml > > > > mgainty wrote: >> >> >> Here is a typical Struts configuration from WEB-INF/web.xml which maps >> any references to struts >> to org.apache.struts2.dispatche

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
No, I removed as it was creating issues with actionPackages params I guess. Musachy Barroso wrote: > > Do you have the Codebehind plugin in the classpath? > > musachy > > On Fri, Feb 13, 2009 at 11:10 AM, SanJ.SANJAY wrote: >>

Re: Action mapping issue while Integrating S2 and S1

2009-02-13 Thread SanJ.SANJAY
Add > the config browser to your app and check what urls it is mapping: > http://struts.apache.org/2.x/docs/config-browser-plugin.html > > musachy > > On Fri, Feb 13, 2009 at 11:28 AM, SanJ.SANJAY wrote: >> >> No, I removed as it was creating issues with actionP

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
not available. Even though I have the browse plugin jar in classpath. It seems like a big confusion any insights on this?? SanJ.SANJAY wrote: > > Thanks fr the link Musachy, yes going to that link does'nt show anything > at the JBoss server console and the IE says: >

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
ration in web.xml, to trying to run the webapp in IIS. > Take the blank web app and start learning with it, or follow a > tutorial, or use the maven archetype to create a new app. > > musachy > > On Wed, Feb 18, 2009 at 11:44 AM, SanJ.SANJAY wrote: >> >> Running http://st

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
nds to me like it's not even > starting. > > Dave > > SanJ.SANJAY wrote: >> I think I have explained every step and procedure I have followed for >> this >> application in this thread. >> And I also have tested Sample Appluication that comes with stru

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread SanJ.SANJAY
?? newton.dave wrote: > > SanJ.SANJAY wrote: >> I have'nt increased the logging level. I also suspect the same that its >> not >> even starting. > > ... Okay, then increase the logging

Re: Action mapping issue while Integrating S2 and S1

2009-02-19 Thread SanJ.SANJAY
Ok, thanks Dave I will try that. newton.dave wrote: > > SanJ.SANJAY wrote: >> I am planning to redo the struts 2 integration with S1 as it is so >> confusiong >> and frustrating. So this time I do not want to copy blindly all the jars >> from distribution o

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread SanJ.SANJAY
integration... 0:17:02,432 INFO [SpringObjectFactory] Setting autowire strategy to name 0:17:02,432 INFO [StrutsSpringObjectFactory] ... initialized Struts-Spring integration successfully newton.dave wrote: > > SanJ.SANJAY wrote: >> I am planning to redo the struts 2 integration with S1

Re: Action mapping issue while Integrating S2 and S1

2009-02-25 Thread SanJ.SANJAY
?? newton.dave wrote: > > SanJ.SANJAY wrote: >> In my already existing S1 i had aplication-context.xml and for S2 I am >> using >> another applicationContext.xml...would this be causing the problem? > > It *could* be, depending on how Spring i

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
this??? newton.dave wrote: > > SanJ.SANJAY wrote: >> ?? > > Was there more? > > Dave > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@

Re: Preserving Action Messages during redirect action

2009-02-27 Thread SanJ.SANJAY
Please use a new thread for this issue. The problem addressed here is totally diffirent from yours. Sundararaman, Anand wrote: > > Hi, >I want to redirect to another action but preserve the action > messages/errors from the previous action. Is there any standard way to > achieve this functi

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
most of the times build does'nt refelct the changes. newton.dave wrote: > > SanJ.SANJAY wrote: >> Everything (code and configuration) in chapterZero(the component I have >> added in this existing SampleApplication) is same as it is there for >> others &g

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
Thanks you for your precious time. If you can't read what the thread is about, how are you trying to give insights? newton.dave wrote: > > SanJ.SANJAY wrote: >> Ok, If you check this thread , the previous entries have all the history >> of >> code and config

Re: Action mapping issue while Integrating S2 and S1

2009-02-27 Thread SanJ.SANJAY
I'm sorry if I've offended you in anyway. chapterOne, chapterTwo are in the StrutsInAction.war that comes with struts 2 distribution. As I said I finally was able to run new component in this Sample Application and the issue was Eclipse and Jboss. newton.dave wrote: > > S

Struts 1: Window resizing issue

2009-03-11 Thread SanJ.SANJAY
When I resize the the IE explorer window, the JSP goes blank sometimes. Does anyone knows this issue? May be some blank call is going to action? -- View this message in context: http://www.nabble.com/Struts-1%3A-Window-resizing-issue-tp22463249p22463249.html Sent from the Struts - User ma