Re: struts2 ajax jsps

2007-08-14 Thread Struts2 Fan
Opps How can I make struts to ignore this and read them as html? Or do I have to change the extention to get it work. Thanks for the answer. Ian Roughley wrote: > > This line: > > There is no Action mapped for namespace /struts/dojo/src/widget/templates > and action name TabContainer. >

Re: How to find validation.js?

2007-08-14 Thread Musachy Barroso
The file is there(inside the Struts jar file). You don't need to extract the file, S2 will serve it from inside the jar. If you put the url by hand on the browser, does it return the js file? musachy On 8/14/07, Joel Patton <[EMAIL PROTECTED]> wrote: > I am trying to get the client side validatio

tiles DTD

2007-08-14 Thread Stephen Souness
Hi guys, I'm pretty sure this will have been asked before, but a bit of Googling hasn't produced a satisfactory answer. I'm using Struts 1.2.8 with tiles on Tomcat 5.5 Whenever I re-deploy my site some code goes off to look for the tiles DTD file (as specified at the top of tiles-definitions

Re: Dynamic Tree Example

2007-08-14 Thread Dave Newton
Typo; the keys are like totally right next to each other. --- Ted Husted wrote: > Patches are the answer. > On 8/14/07, Dave Newton wrote: >> Sounds like a great opportunity to get on the S2 >> team and pull things that don't work or make them >> work! _

Re: Dynamic Tree Example

2007-08-14 Thread Ted Husted
Patches are the answer. On 8/14/07, Dave Newton <[EMAIL PROTECTED]> wrote: > Sounds like a great opportunity to get on the S2 team > and pull things that don't work or make them work! - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Dynamic Tree Example

2007-08-14 Thread Ted Husted
Yes, we do mark Showcase examples to be non-functional when we realize they are not working properly. Unfortunately, it's not always obvious how some of these example are suppose to work. In the past, when I've found an example is not working, we've tagged it as such ("broken"), and most of these w

Re: RE [S2] autowiring with hand rolled factory

2007-08-14 Thread Adam Hardy
The Spring integration isn't something I'd looked into deeply. I just assumed I'd be repeating my list of actions, knowing only what I have read about so far. This isn't the first time struts2 has proved my assumptions wrong - and always in a good way I'm glad to report. Laurie Harper on 14/08

Re: Dynamic Tree Example

2007-08-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I think it should not be "ShowCase'd" if it is known > not to work. Sounds like a great opportunity to get on the S2 team and pull things that don't work or make them work! d.

How to find validation.js?

2007-08-14 Thread Joel Patton
I am trying to get the client side validation working in my Struts 2 app using the xhtml theme, but my web page isn't loading validation.js. I see the outputted HTML as: Do I need to copy the template directories out of the struts2-core jar file into my web content path or should this be

Re: Source for JasperReports plugin?

2007-08-14 Thread Musachy Barroso
You can browse it online here : http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/plugins/jasperreports/ or check it out using svn musachy On 8/14/07, Lally Singh <[EMAIL PROTECTED]> wrote: > Hey all, where do I get the source for the JasperReports plugin? It > looks like I've g

Re: Dynamic Tree Example

2007-08-14 Thread stanlick
I think it should not be "ShowCase'd" if it is known not to work. Developers like me, are pouring over this code trying to glean insight into how to wire up these bits and parts. After many hours of exploration and finally going to a several other semi-related web sites, I began to realize there w

Extension mapping question

2007-08-14 Thread Brian Mc
I want to be able to send this URL: www.mysite.com/list/3 Which calls the list action, and can use 3 as a parameter Also, how do I make this URL: www.mysite.com/name/ goto the name.jsp Thanks I'm using struts 2.0.9 and jBoss 4.2.0 -- View this message in context: http://www.nabble.com/Ex

dafault value in autocompleter tag

2007-08-14 Thread Pedro Herrera
I´m using displaytag to paging and I need to put a default value in autocompleter tag when page is changed, How I can do this ? Herrera -- View this message in context: http://www.nabble.com/dafault-value-in-autocompleter-tag-tf4269804.html#a12152528 Sent from the Struts - User mailing list ar

Re: Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
i TRIED SETTING THE REDIRECT=TRUE ALSO, but still it doesnt display the values when coming back to the original window. Can this be an issue ? From inputform, I have a submit button which opens another window and calls submitaction. In the new window I am displaying the 3rd parameter

struts2 ajax theme and textarea

2007-08-14 Thread Clement, Steve
I am working with Struts2 within a tabbed panel in an ajax theme. In one of the divs, I am using the in a form that uses the ajax theme. The problem is that the content of the textarea does not submit the new content if I have the notifyTopics attribute set in the submit tag. This problem only oc

Re: Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
Chris, Thanks for the reply, I dont have redirect=true Here is the action: Thanks again, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maya, Maya menon wrote: > In submitAction, I call setter method of formbean and s

Re: Struts 1.2 using formbeans

2007-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maya, Maya menon wrote: > In submitAction, I call setter method of formbean and sets the 3rd > parameter and do mapping.findforward Does the forward you are using have redirect="true"? If so, the form bean might be lost of the form bean is not in ses

Re: using ${ , # and %{

2007-08-14 Thread Josh Vickery
${} is for writing JSP EL, while %{} is for writing OGNL. Both serve similar purposes, and if you have a servlet container that supports JSP EL and are running Struts 2, they can be used almost interchangeably. For more details you can read up on the JSP EL: http://java.sun.com/j2ee/1.4/docs/tuto

Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
Hi all, I need some help here. I am using Struts 1.2 1. I have inputForm1.jsp where I input 2 values and then fetch the 3rd value using a Submit action. This has been mapped to Submit.do and inputFormBean is referrenced in the struts-config file. Inside action class Submit.do, th

[S2] read only textbox on DateTimePicker.

2007-08-14 Thread Steve Sether
Is there a way to make the textbox on the DateTimePicker able to be modified by the calendar only? (i.e. the user can't type in their own value). I've looked through the documentation and haven't been able to find any property to set this. ---

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-14 Thread Oleg Konovalov
That worked for me: <% String str="form.action='action.do?command=notify&rowId="; %> onclick="<%= str%>'" /> And in Action: String rowId = request.getParameter("rowId"); Thank you all, Oleg. On 8/13/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Oleg Konovalov wrote: > >> make each butto

trouble with Tiles and EventActionDispatcher

2007-08-14 Thread ddu
I am migrating an existing system(runs on Struts 1.1) to Struts 1.3.8 basically because I want to take advantage of EventActionDispatcher. I also use tiles, however I keep getting the following error msg: WARNING: Unhandled exception java.lang.IllegalArgumentException: path must begin with a "/"

Re: displaying items in different colors in a tag

2007-08-14 Thread Session A Mwamufiya
Ok, thanks. I'll look into creating custom templates and see how far I get. Thanks, Session > Session A Mwamufiya wrote: >> Hi, >> >> Is there a way, with the current version of struts 2, to use a >> conditional statement to color code elements that are displayed in a >> tag. By this, I mean

Re: using ${ , # and %{

2007-08-14 Thread yitzle
NOTE: This email assumes Struts 2. I'm not sure how Struts 1 works; it may or may not be the same On 8/14/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: > > I´m very confused , when I must use ${ , # and % > What are the situations to use each one ? > > Thanks > > Herrera I had the same probl

Re: capturing the value of a tag in an action

2007-08-14 Thread Session A Mwamufiya
I had actually modified the name of the checkbox and its property name in the action (for conformity reasons), but I had forgotten to change the names of the get/set methods; silly me. Now it works. Sorry for the confusion, and thanks for the eager assistance. Best, Session > Session A Mwamu

using ${ , # and %{

2007-08-14 Thread Pedro Herrera
I´m very confused , when I must use ${ , # and % What are the situations to use each one ? Thanks Herrera -- View this message in context: http://www.nabble.com/using-%24%7B-%2C---and--%7B-tf4268310.html#a12147735 Sent from the Struts - User mailing list archive at Nabble.com. -

Re: displaying items in different colors in a tag

2007-08-14 Thread Laurie Harper
Session A Mwamufiya wrote: Hi, Is there a way, with the current version of struts 2, to use a conditional statement to color code elements that are displayed in a tag. By this, I mean that if I have items in my list that are >4, then they're red, and if they are <= 4, then they are blue. O

Re: [OT] tomcat 5.5 authentication question

2007-08-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eugen, Eugen Stoianovici wrote: > Since I can't intercept the login form (which goes to j_security_check) > where should i put the code for setting those session values? Ah, but you can intercept it! You just need to think outside the container. Or,

Re: RE [S2] autowiring with hand rolled factory

2007-08-14 Thread Laurie Harper
Adam Hardy wrote: Um? It's not obvious what the rationale is, I assure you. Of course the Spring object factory is feature rich, but which particular features was it? Or perhaps the lack of obviousness is just an artifact of the way I have learnt the ropes of Struts2. I don't think it's a cas

Re: capturing the value of a tag in an action

2007-08-14 Thread Laurie Harper
Session A Mwamufiya wrote: Hi, I started a thread on this topic a while back, but the example I was guided to was hard to understand and implement. The question is straight forward: How do you get the value of a checkbox from within an action? - I have named my in the jsp, and have a privat

RE: [s2] @ConversionErrorFieldValidator and Collections

2007-08-14 Thread Petzsch, Martin
I have now posted this as a bug on JIRA. https://issues.apache.org/struts/browse/WW-2112 Kind regards, Martin -Original Message- From: Petzsch, Martin [mailto:[EMAIL PROTECTED] Sent: 09 August 2007 15:40 To: Struts Users Mailing List Subject: [s2] @ConversionErrorFieldValidator and Co

Re: capturing the value of a tag in an action

2007-08-14 Thread Toni Lyytikäinen
I don't know if you can capture the checkbox value to String, boolean should work though (it works for me at least). Try changing the String element to boolean. On 8/14/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote: > > Hi, > > I started a thread on this topic a while back, but the example I w

capturing the value of a tag in an action

2007-08-14 Thread Session A Mwamufiya
Hi, I started a thread on this topic a while back, but the example I was guided to was hard to understand and implement. The question is straight forward: How do you get the value of a checkbox from within an action? - I have named my in the jsp, and have a private String element with the sa

Fw: Struts 2 and Container Managed Security

2007-08-14 Thread Mangalaganesh Balasubramanian
hi, I am a newbie in Struts 2. Here is what i want to achieve: I want to secure my web application using Container Managed Security. I secure all the URLs by placing a security constraint and map the relevant users/groups in my web.xml. Our security requirements are straight forward and we don'

Source for JasperReports plugin?

2007-08-14 Thread Lally Singh
Hey all, where do I get the source for the JasperReports plugin? It looks like I've gotta make my own variant of it, and would like to see the original for a basis. I didn't find it (JasperReportsResult.java) in struts-2.0.8-all.zip. Thanks in advance, -ls -- H. Lally Singh Ph.D. Candidate, Co

RE: struts with spring

2007-08-14 Thread Corro Fuentes, Gerardo
Any if these: http://www.docjar.com/s.jsp?q=org%2Fjboss%2Futil%2Ffile%2FArchiveBrowser &t=q -Mensaje original- De: Musachy Barroso [mailto:[EMAIL PROTECTED] Enviado el: martes, 14 de agosto de 2007 16:34 Para: Struts Users Mailing List Asunto: Re: struts with spring missing dependency?

Re: struts with spring

2007-08-14 Thread Musachy Barroso
missing dependency? java.lang.NoClassDefFoundError: org/jboss/util/file/ArchiveBrowser musachy On 8/14/07, sandyg <[EMAIL PROTECTED]> wrote: > > am getting the error when am running the demo prog of struts 2 person inf. > > org.springframework.beans.factory.BeanCreationException: Error creating

XSLT Result matching pattern

2007-08-14 Thread Richard Sayre
I am new to regular expressions and I am trying to have my XSLT result only show certain elements that are in the XML. here is some if the XML: ... ... ... I only want the result/questionTree node to be return to my page. I tried doing this: /result/questionTree But all the XML

Re: s2: Netbeans 5, 6 or Eclipse?

2007-08-14 Thread yitzle
I think NetBeans eats a lot of RAM, so if you don't have much you may want to avoid it. Better yet, try both out for a week or so, and see which suits *you* the best! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: struts2 ajax jsps

2007-08-14 Thread Ian Roughley
This line: There is no Action mapped for namespace /struts/dojo/src/widget/templates and action name TabContainer. Seems to suggest that you may have changed the extension from ".action" to ".html", so s2 is looking for an action called TabContainer. /Ian Struts2 Fan wrote: I met the same e

Re: Doubled requests in TabbedPane

2007-08-14 Thread Jeromy Evans
In response to your second question: Sebastian Kolbe wrote: Another question: Is there an easy way to catch the event (something like 'onclick') when a different tab is selected? Yes : a. at page init time, lookup the id of each tab widget b. connect a handler "before" the "show" event gene

Re: How exactly It happens !!!!!!!

2007-08-14 Thread Jasper Floor
On 8/13/07, Prashant Baviskar <[EMAIL PROTECTED]> wrote: > >How validator plug-in is read from deployment descriptor. > > >How validation is performed > > Question indicated with arrow are more important. > > As I want to explicitly call validator framework of struts (Without using > struts

errors and c:when

2007-08-14 Thread Corro Fuentes, Gerardo
Hi, I want to have in the same jsp three mutually exclusive conditions, one of those conditions is the errors generated with a DynaForm verification, like this:

tomcat 5.5 authentication question

2007-08-14 Thread Eugen Stoianovici
I'm very new to struts (and java for that matter) so my question might be stupid but here goes: I have an application that is based on companies and employees. Each employee may have a single company. Also each employee has a user (which is used by tomcat for authentication/authorization) and

Re: Dynamic Tree Example

2007-08-14 Thread Session A Mwamufiya
Thanks Manu. I'm new with the tree, and am attempting to implement one for a project I'm working on. I'm having a number of difficulties: - I can't manage to reload at the node level I want, it always reloads with root showing - it takes a long time to load and I have a couple of feature quest

struts with spring

2007-08-14 Thread sandyg
am getting the error when am running the demo prog of struts 2 person inf. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.

Re: Get an error message using but not print it?

2007-08-14 Thread struts
Ah, thanks. Solved my problems :) /Jimi Quoting Dave Newton <[EMAIL PROTECTED]>: http://struts.apache.org/1.2.9/userGuide/struts-logic.html#messagesPresent --- [EMAIL PROTECTED] wrote: Hi, I have searched but found nothing about this. How can I fetch an specific error using without printi

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-08-14 Thread Ajax
Hi! I've been following this tutorial too, and think it serves as a great starting point. However, like some other users, I have encountered the problem with org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.Tran

Re: Dynamic Tree Example

2007-08-14 Thread Ted Husted
No worries: the full commit history of the codebase is browseable. * http://svn.apache.org/viewvc/struts/ Just drill down to see if there were any changes to the 2.0.x branch or the trunk. Note that for the trunk (which will be 2.1.x), the code for the "ajax theme" was moved to a plugin. -Ted.

Re: [OT] Gzip compression of script files

2007-08-14 Thread Vijay Venkataraman
Hi Mike, Thanks for letting me know about this. I will take care to test it on slow machines. Vijay Mike Baroukh wrote: I had problems on IE where compression of gzip didn't works. On the first page load, we had javascript error. On the second page load, it works because the ungzipped file wa

Re: [OT] Gzip compression of script files

2007-08-14 Thread Vijay Venkataraman
Sebastin, Thanks for all the information and pointers. Hmm i didn't realize that i meddled with another thread. Group i am very sorry for the mistake. I just accomplished what i wanted, it was more of a bug that is why i didn't get it to work. I do understand that i can get it done this done

Re: [OT] Gzip compression of script files

2007-08-14 Thread Mike Baroukh
I had problems on IE where compression of gzip didn't works. On the first page load, we had javascript error. On the second page load, it works because the ungzipped file was in cache. If we clear browser cache, we have the error again ... It seems to happened It happend on slow machines. so, be

Re: [OT] Gzip compression of script files

2007-08-14 Thread Sebastian Kolbe
Hello, First of all: You should open a new thread for new questions. Answering to existing threads might conceal your message for most people. Anyway: Compressing javascript, css and other files is possible if the browser supports this. The simplest solution for this is to install a webserver (i.

Re: s2: Netbeans 5, 6 or Eclipse?

2007-08-14 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Which IDE would be best suited for development with struts2. thanks! gaetan That's really a matter of personal choice. There are plenty of options besides Netbeans and Eclipse, and all have their strengths and weaknesses. I suggest searching the mailing list archives.

[OT] Gzip compression of script files

2007-08-14 Thread Vijay Venkataraman
Hi, I have javascript/css files and looking at GZipping them and sending it to the browser. I am aware that i can do a GZip compression during runtime using a filters, by writing the content to GZipOutputStream. I am just wondering if it is possible to GZip these files during build time and th

s2: Netbeans 5, 6 or Eclipse?

2007-08-14 Thread ggb7
Which IDE would be best suited for development with struts2. thanks! gaetan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: global exception handling - struts sometimes ignores my setting in struts-config, what's wrong?

2007-08-14 Thread Marek Cupak
I've reduced my real problem to a simple somepackage.CustomException example. In my real application, there are actions, such: where the action class is: public final class SpikeAction_3rdLayerEx extends Action { private static Logger logger = Logger.getLogger(SpikeAction_3rdLayerEx.c