Struts Application is not working

2007-10-03 Thread umeshawasthi
Hi All, I am new to struts,i have developed a small application but it is not running,it is displaying the index page correctly but not forwarding the request.i developed the application using my eclipse.when i checked the tomcat log file it is showing the exception that it is not able to find

Re: Struts Application is not working

2007-10-03 Thread AJAY KUMAR UPPALAPATI
hello friend, I am also not having that much experience so why dont u try this url. http://www.michael-thomas.com/tech/apache/struts/struts_first_steps.htm this url contains Apache link and from there u download one sturts binary file (suppose if u r doing struts1.3.8

Re: Struts Application is not working

2007-10-03 Thread aum strut
thks ajay for helping me out but can u point out watcan be the cause of this error as pari know i have configured the appliocation correctly... On 10/3/07, AJAY KUMAR UPPALAPATI [EMAIL PROTECTED] wrote: hello friend, I am also not having that much experience so why dont u try

Re: [OT]Re: Exadel Studio is showing Evalution version Expired why?

2007-10-03 Thread Dave Newton
exadel.com? --- AJAY KUMAR UPPALAPATI [EMAIL PROTECTED] wrote: where can i get help regarding this can u guide me. thanQ On 10/3/07, Nuwan Chandrasoma [EMAIL PROTECTED] wrote: This is not related to struts. msg2ajay wrote: Hello friends, I just downloaded ExadelStudio

Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Ramita Gambhir
Hi all, I integrated Struts with Ajax using DWR. For that I had to put the ActionForm in session scope. Now I am facing a strange problem. When I change some values in the form, they are saved(marshalled) properly at the backend(an XML file). But in the JSP, it shows old values only. I suspect

Re: Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Antonio Petrelli
2007/10/3, Ramita Gambhir [EMAIL PROTECTED]: I integrated Struts with Ajax using DWR. For that I had to put the ActionForm in session scope. Why do you need to put it into session? Now I am facing a strange problem. When I change some values in the form, they are saved(marshalled)

Re: Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Ramita Gambhir
Hi Antonio, Thanks a lot for the reply :-) I need to put the form into session to make it work with DWR(I had some requirement). This part I cannot change. Is there any way I can refresh the values in the Form object? I read somewhere reset() function is not called in session scoped forms. If

Own TextProvider implementation for validation

2007-10-03 Thread Anton Pussep
I would like to use an own i18n system with the validation provided by Struts 2 and XWork 2. The action-validation.xml will contain keys as messages and those keys should be used in order to retrieve the messages from my i18n system. There seems to be a TextProvider interface, thus I could

Re: Struts Application is not working

2007-10-03 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: thks ajay for helping me out but can u point out watcan be the cause of this error as pari know i have configured the appliocation correctly... Without your struts config file we can't help very much -- *something* is wrong with either your library

Re: Look for Tutorials for Struts2 + Tiles2

2007-10-03 Thread stanlick
I noticed the other day that the tiles plugin link says drop the plugin and go. It specifically says there is nothing else to do! Realizing this is the way plugins are supposed to plug in, the page sounds great. However, with the tiles plugin, you have to drop a few tiles* jars in addition,

JCaptcha + Struts problem

2007-10-03 Thread alee amin
Hi, I am using JCaptcha for captcha features. It is working fine. I have this code in CaptchaServlet and this code save the captcha in request public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { ImageCaptcha pixCaptcha =

Re: Accessing a row in a table on a JSP page.

2007-10-03 Thread Nikhil Walvekar
Hi, You can try using javascript, on button submit call a function which will set row-index to a hidden field and which will be submitted with form. On server side you can use this field to identify the row. Regards, Nikhil On 10/2/07, JohnLangan [EMAIL PROTECTED] wrote: I call the database

Formatting Flaot and Double Values

2007-10-03 Thread vamsi
Hi all, I want to format float and double values like this ##,###.## eg 45,000.09 Is there any tag that will do this for me or any global property to do this thanks, Regards Vamsi krishna

Re: Session scoped ActionForm causing strange behaviour

2007-10-03 Thread Antonio Petrelli
2007/10/3, Ramita Gambhir [EMAIL PROTECTED]: Is there any way I can refresh the values in the Form object? What do you exactly mean with refresh? I read somewhere reset() function is not called in session scoped forms. If I call reset(), can it help? Probably, but you have to override

RE: Formatting Flaot and Double Values

2007-10-03 Thread Slattery, Tim - BLS
I want to format float and double values like this ##,###.## eg 45,000.09 Is there any tag that will do this for me or any global property to do this fmt:formatNumber value=${expression} maxFractionDigits=2 minFractionDigits=2/ Defaults to number type, which separates groups of three

Re: Struts Application is not working

2007-10-03 Thread aum strut
hi dave i m pasting my struts-config file for the refrence.and as par the dependencies i have used myeclipse as developing enviornment so it might be possible that there is something wrong as i downloaded an example in warfile form and when i deploy it in tomcat it worked fine but when i put my

Re: Struts Application is not working

2007-10-03 Thread Dave Newton
At first glance it seems okay; maybe somebody else will chime in. What library / jar files do you have in WEB-INF/lib? d. --- aum strut [EMAIL PROTECTED] wrote: hi dave i m pasting my struts-config file for the refrence.and as par the dependencies i have used myeclipse as developing

Re: Struts Application is not working

2007-10-03 Thread aum strut
1 antlr 2 commons-beanutils 3 commons-digester 4 commons-fileupload 5 commons-logging 6 commons-validator 7 jakarta-oro 8 struts These are the jar flies in the lib folder On 10/3/07, Dave Newton [EMAIL PROTECTED] wrote: At first glance it seems okay; maybe somebody else will chime in. What

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/2/07, Kothari, Kailash [EMAIL PROTECTED] wrote: Thaks Rick. This will give me an instance of the parent bean OR the child bean. What I need is a child bean pre populated with data from the parent bean. Ok, so just get ParentBean and then populate your subclassed bean... public

Re: Accessing a row in a table on a JSP page.

2007-10-03 Thread Rick Reumann
On 10/2/07, JohnLangan [EMAIL PROTECTED] wrote: I call the database and create an ArrayList of beans to hold the data. Using JSTL I iterate over the list to display the data in an html table inside a form in a JSP page. c:set var=dataItems value=${lmdao.listingManagerData} / c:forEach

Re: Struts Application is not working

2007-10-03 Thread Rick Reumann
There are a ton of things that can cause the obscure error you are witnessing. You have to make sure the doctype definitions are correct as well for web.xml and struts-config. I'd start with a working example web.xml and struts-config (maybe the example app struts comes with - and then start

execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hi, I have the struts.xml definition as shown below that uses execAndWait interceptor and Tiles. The problem is that either: a) Using tiles the delaySleepInterval is ignored and the wait page never refreshes i.e. when SimulationRunAction completes it is never redirected to success result.

RE : Struts Application is not working

2007-10-03 Thread Ezequiel Puig
Hi, Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you will find the minimum configuration. Regards, Ezequiel. -Message d'origine- De : Rick Reumann [mailto:[EMAIL PROTECTED] Envoyé : mercredi 3 octobre 2007 16:42 À : Struts Users Mailing List Objet : Re:

Re: [OT] Ajax recommendations for use with Struts1.1

2007-10-03 Thread Ted Husted
On 9/20/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: I think that *can* be true if you aren't careful. The thing that I've found people tend to mess up when doing RIA development is that they think they need to do things differently than they would if it was a plain webapp. We put in place

RE : RE : Struts Application is not working

2007-10-03 Thread Ezequiel Puig
Uppps, That's for Struts 2. -Message d'origine- De : Ezequiel Puig Envoyé : mercredi 3 octobre 2007 16:53 À : Struts Users Mailing List Objet : RE : Struts Application is not working Hi, Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you will find the

Struts Popup window with session param

2007-10-03 Thread Diego Ezquerro
Hi to everybody. I have a problem with a JSP page, I think this is a stupid question but I was hours searching the Internet and found nothing. What i wanna do is to pre-process a session attribute and then show a popup window with the result. My code is as follows: a href=#

Re: Struts Popup window with session param

2007-10-03 Thread Dave Newton
IIRC somebody asked why you couldn't just access the session parameter in the action rather than sending it as a request parameter. What was the answer to that question? d. --- Diego Ezquerro [EMAIL PROTECTED] wrote: Hi to everybody. I have a problem with a JSP page, I think this is a

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Antonio Petrelli
2007/10/3, Giovanni Azua [EMAIL PROTECTED]: a) Using tiles the delaySleepInterval is ignored and the wait page never refreshes i.e. when SimulationRunAction completes it is never redirected to success result. Can you post the Tiles definition and the JSP page in which you put the meta

Re: Struts Popup window with session param

2007-10-03 Thread Antonio Petrelli
2007/10/3, Diego Ezquerro [EMAIL PROTECTED]: All that i want is to pass that session attribute (it isn't a String) to fillTrazability action class. Since it is a session-scoped attribute, why don't you read it directly in your destination page, without passing any parameter? Antonio

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hola antonio, Please find all the information below. Muchas gracias por adelantado! regards, Giovanni The tiles definition is: * definition name=webui.requestWait template=/tiles/layout.jsp put-attribute name=title

Re: [OT] Ajax recommendations for use with Struts1.1

2007-10-03 Thread Rick Reumann
On 10/3/07, Ted Husted [EMAIL PROTECTED] wrote: Just to chime in late ... an Ajax library that does well the sort of things Frank is describing is the Yahoo User Interface (YUI) Library. Reading the source for the YUI library is an absolute pleasure! Thanks Ted, I'll have to check that out.

Re: Struts Popup window with session param

2007-10-03 Thread Diego Ezquerro
wow, i'm feeling so stupid. i realized that just in this moment. thank you. Diego Ezquerro Bailac Asturias, Spain - Mensaje original De: Dave Newton [EMAIL PROTECTED] Para: Struts Users Mailing List user@struts.apache.org Enviado: miércoles, 3 de octubre, 2007 17:09:12 Asunto: Re:

Re: [OT] Ajax recommendations for use with Struts1.1

2007-10-03 Thread Rick Reumann
On 10/3/07, Rick Reumann [EMAIL PROTECTED] wrote: Going to check out YUI now. So far I haven't been too impressed with their data table models (they seem pretty basic, not bad but I don't scrollable tables, movable columns, etc, but maybe I'm missing it):

Re: [OT] Ajax recommendations for use with Struts1.1

2007-10-03 Thread Frank W. Zammetti
I plan on using extjs for the last chapter of the book I'm currently writing as it impressed me quite a bit as well... I won't be using the AJAX functionality, but as far as widgets go, looks very promising. To Ted's point though, I haven't checked out the source code... YUI absolutely has some

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Antonio Petrelli
2007/10/3, Giovanni Azua [EMAIL PROTECTED]: html head titletiles:getAsString name=title//title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / script type=text/javascript src=js/drop_down.js/script style type=text/css

Re: [OT] Ajax recommendations for use with Struts1.1

2007-10-03 Thread Ted Husted
I actually did a lot of work with the DataTable. Again, what I liked best is that I could follow the source, and extend it. For example, we created a composite Find/List/Edit/View widget that let us set a list of fields, field-types, labels, and validators in the JavaScript, and get a complete

Re: ActionForward is not workinh

2007-10-03 Thread Ted Husted
It looks like the execute method is misspelled as excute. If you are using a modern IDE, it should show the execute method as overriding the one provided by the base Struts Action class. For Struts 1 development, MyEclipse 6 has some excellent tools that can help you get started. This is less

Re: execAndWait interceptor and Tiles problem ..

2007-10-03 Thread Giovanni Azua
hi Antonio, It works like a dream! :))) Non ho visto quella, ma adesso funziona a posto :) Grazie mille ancora ed buena serata, saluti, Giovanni Antonio Petrelli wrote: 2007/10/3, Giovanni Azua [EMAIL PROTECTED]: You have no meta refresh, just add: meta http-equiv=refresh

Re: ActionForward is not workinh

2007-10-03 Thread aum strut
thks Ted. But what i came to know is some thing different initially i thought that it is the action servlet which is not working but when i saw the log file of tomcat it is showing me the exception CallsNotFound and the class is AcionServlet. I cross checked the configuration flies but thay are

[ANN] Three Struts Tutorials or Presentations at ApacheCon US 2007 Atlanta GA

2007-10-03 Thread Ted Husted
Just a reminder that there will be several presentations of direct interest to Struts developers at ApacheCon US 2007 Atlanta GA, November 12-16. * http://apachecon.com/multi/index.html Struts Courses (you must pre-register to attend!) * Migrating to Ajax (Ted Husted), 12 Nov @10a

Re: [ANN] Three Struts Tutorials or Presentations at ApacheCon US 2007 Atlanta GA

2007-10-03 Thread Pavel Sapozhnikov
Hi Ted I actually have two questions First I decided to TRY to contribute to Struts2 so I already have SVN project in my eclipse (MyEclipse) so thats all set so all I want is just some actual work to do or TRY to do. Second about this ApacheCon...will the power point or pdf slides be available

Re: [Struts 2] : Zero Configuraiton : some feedback

2007-10-03 Thread cilquirm
I use Zero Conf and codebehind a lot, and I think they're both incredibly useful. especially in this newer world of convention over configuration, etc... When I have a package hierarchy all set up, i don't feel the need to muck with struts.xml, because I can get directly down to coding.

Re: RE : RE : Struts Application is not working

2007-10-03 Thread aum strut
I m getting the follwing exception in Tomcat Root Cause - java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
Thank you very much ! It works! Following Your comments, I did: = dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles}/version scopecompile/scope /dependency to web.xml the above looks like maven stuff..

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
You also need to add the jars that tiles requires: copy the Tiles dependencies JARs: * Jakarta Commons BeanUtils 1.7.0 or above; * Jakarta Commons Digester 1.8 or above; * Jakarta Commons Logging (at least API) 1.1 or above http://tiles.apache.org/getting_started.html I

Re: Accessing a row in a table on a JSP page.

2007-10-03 Thread JohnLangan
Thanks Nikhil and rickcr for the suggestions. I have resolved the problem by creating a form within the iterator so that each row is a separate form. Each row (form) uses the same ActionForm and Action and returns the row specific info. This works for what we want as only one row on the page

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
Thank you all for your responses. I apologize that mine is so delayed. I am going to try using 2.1 with the cache attribute and see what the difference is. It sounds like it should be a major improvement. I believe the problem was that it was requesting so many files and it appeared the

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Antonio Petrelli
2007/10/3, Emi Lu [EMAIL PROTECTED]: At least for now I have loaded Tiles 2 successfully without BeanUtils and Digester jars :) It's impossible, digester is needed to read XML files. Antonio - To unsubscribe, e-mail: [EMAIL

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
At least for now I have loaded Tiles 2 successfully without BeanUtils and Digester jars :) It's impossible, digester is needed to read XML files. I forgot the tiles jars that I downloaded few days ago :( Sorry! The full jar lists I had:

Re: [ANN] Three Struts Tutorials or Presentations at ApacheCon US 2007 Atlanta GA

2007-10-03 Thread Ted Husted
On 10/3/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Hi Ted I actually have two questions First I decided to TRY to contribute to Struts2 so I already have SVN project in my eclipse (MyEclipse) so thats all set so all I want is just some actual work to do or TRY to do. The place to start

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
I found some error messages buried in my log file. It seems 2.1 is not working for me because Dojo was moved to a plugin which I do not have. Is there anyway to get a compiled version of this plugin? Or do I have to download 2.1 from source control and compile it myself? Thanks, Ben

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread Musachy Barroso
I don't think it is on the snapshots. musachy On 10/3/07, chengas123 [EMAIL PROTECTED] wrote: I found some error messages buried in my log file. It seems 2.1 is not working for me because Dojo was moved to a plugin which I do not have. Is there anyway to get a compiled version of this

[s2] redisplay page after validation failed

2007-10-03 Thread Jiang, Jane (NIH/NCI) [C]
I have a page that has some dynamic contents that is not part of the form that is being submitted. When validation fails after the form is submitted, I lost the dynamic contents. I use tiles and the result input is defined as type tiles that points back to the same page. Is there a way get

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
Thanks a lot Rick. That gives me a new area to explore. The BeanUtils method - BeanUtils.copyProperties(Object target, Object src) - does give me a shallow copy of an object, Im trying to figure out how to get a deep copy.. Thanks ! Kailash. -Original Message- From: Rick Reumann

Set namespace value in ServletActionRedirectResult in @Result annotation

2007-10-03 Thread rcauler
Hi, How I can set the namespace value in ServletActionRedirectResult in @Result annotation? I try: @Result( name = success, value = view, params = { namespace, /myNamespace }, type = ServletActionRedirectResult.class ) But the namespace is ignored. []'s Rodrigo C. A. -- View this message

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Roberto Nunnari
Hi Emi. here's the example: package name=default extends=tiles-default ... /package see? it's enough that your packages extend tiles-default. Best regards. -- Robi Emi Lu wrote: Thank you very much ! It works! Following Your comments, I did: = dependency

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
Ok. I tried downloading from SVN, but got a build error. Maven could not find xwork-2.1-SNAPSHOT-sources.jar. I had to download it manually from maven.opensymphony.com. However, despite following the instruction maven was giving me I could not figure out how to build the project with the

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread Dave Newton
IIRC there is still an issue with trunk regarding the opensymphony id; it's something like xwork.opensymphony.com and needs to be just opensymphony... um... Index: core/pom.xml === --- core/pom.xml(revision 580129) +++

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/3/07, Kothari, Kailash [EMAIL PROTECTED] wrote: Thanks a lot Rick. That gives me a new area to explore. The BeanUtils method - BeanUtils.copyProperties(Object target, Object src) - does give me a shallow copy of an object, Im trying to figure out how to get a deep copy.. I might be the

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
here's the example: package name=default extends=tiles-default ... /package see? it's enough that your packages extend tiles-default. It works as well! That's nice! Thank you Robi. I did: === [1] deleted result-types result-type name=tiles

JFreeChart Plugin

2007-10-03 Thread Phil404
There has been a little discussion recently about the JFreeChart plugin on JIRA. The issue is that the plugin defines a package in its struts-plugin.xml which does not extend struts-default. Therefore JFreeChart actions cannot (without seemingly unnecessary extra work), for example, have

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
Ok, that's quite interesting.. I think I just need to find a efficient way of doing the deep copy because my parent class has thousands of attributes in all including nested attributes.. Thanks ! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, October

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread chengas123
If this is a known issue, why doesn't someone commit the change? I understand this is the development branch, but it's a pretty critical issue to not be able to build the project. Among other things, it has to be a deterrent in attracting new developers. If I make that change I get:

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/3/07, Kothari, Kailash [EMAIL PROTECTED] wrote: Ok, that's quite interesting.. I think I just need to find a efficient way of doing the deep copy because my parent class has thousands of attributes in all including nested attributes.. Hmm thousands of attributes? I doubt you are

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-03 Thread Dave Newton
I don't know enough about Maven to be able to help you much, but it may be as simple as clearing your repo cache (or whatever it's called). I am building from trunk with the below change w/o any difficulty, at least as of about a week ago. --- chengas123 [EMAIL PROTECTED] wrote: If this is a

Re: Struts debug mode

2007-10-03 Thread João Vieira da Luz
in order to go third party classes you must have source attached those third party jars or you could use jad plugin (http://jadclipse.sourceforge.net/). On 10/2/07, Viplav Kallepu [EMAIL PROTECTED] wrote: Thanks for the reply.. when I put breakpoints in my action class and start the server

Re: Struts debug mode

2007-10-03 Thread Stephen Boudreaux
I've found that Eclipse can be confusing when you want to attach the source of a library. Namely, you can't right click a library and select properties when in the J2EE view. You can go to the Java view and go there to attach the source there. If you are still having mysterious issues, you might

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
You're right about letting users edit these attributes - they don't. The reality is that the form bean is used to hold a lot more than form data, it also holds info that's typically stored in the session. I have to do some thinking about simplifying this like you said.. -Original

struts2 s:select issue- not retaining..

2007-10-03 Thread Jose4u
In my jsp file i have threes:selectcombo boxes. 1 2 needs to be loaded from the db and the 3rd needs to loaded based on the (2)second combo box selection. I have implemented in such a way that in my action i have 3 collection objects. Intially b4 moving to jsp iam loading two collection object

Re: struts2 s:select issue- not retaining..

2007-10-03 Thread Zarar Siddiqi
Yeah, you're going to have to load them every time. You could store the collections in session or application scope if that's feasible but other than that you don't really have a choice. Alternately, I think the cleanest way of doing this might be to make an Ajax call to load the third selection