Re: ajax - Submit a form

2007-05-21 Thread Mansour
NotifyTopics is not working. I don't know why, but I tried every possible thing. I can not understand what's wrong with this. The function showMessage() is called only once, when the page loads !! and nothing after that causes it to execute. It's just a smiple message for testing: script

RE: [S2] Freemarker vs struts taglibs

2007-05-21 Thread Jordi Rubio Moreno
Hi Musachy, Thanks a lot for the response :) Cheers! Jordi Rubio Moreno -Mensaje original- De: Musachy Barroso [mailto:[EMAIL PROTECTED] Enviado el: jueves, 17 de mayo de 2007 17:55 Para: Struts Users Mailing List Asunto: Re: [S2] Freemarker vs struts taglibs FreeMarker is a

RE: Re: [S2] Understanding RestfulActionMapper and Restful2ActionMapper

2007-05-21 Thread Jordi Rubio Moreno
Hi Laurie, Finally I'm working with DefaultActionMapper and wildcards: Struts.properties: struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMa pper struts.xml action name=Search/*/* class=myproject.Search

Re: How to get Exception info when I use global exception mappings?

2007-05-21 Thread Roger Varley
Thanks for your help, I got it. As an aside, it may be worth pointing out that exposing your users to a detailed StackTrace is not usually considered to be a good idea. Firstly, a stack trace means nothing to your users and may actually intimidate them, and secondly, if your application is

RE: [OT] Re: frames

2007-05-21 Thread Al Sutton
You can find lots of useful links about struts and frames at this URL; http://www.google.co.uk/search?q=struts+frames -Original Message- From: jalal udeen [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 05:57 To: Struts Users Mailing List Subject: Re: [OT] Re: frames hi im

Re: showcase file download in jetty server

2007-05-21 Thread sudeepj2ee
HI I have got the solution posted on the forum. just change the'\' slashes to '/'slashes.:) sudeepj2ee wrote: HI I am using jetty server and the zip file download part of showcase is not working in the jetty its giving the following error-: java.lang.IllegalArgumentException: Can not

OT- need some help

2007-05-21 Thread vikas rao
Hi, Can someone point out a tutorial or some place where I can learn how to read values from a .cfg file? Say I have a Input.cfg file which goes like: com MyCompany Common inputDir=C:/vray/xml_files/ outputDir=C:/xm_output / /MyCompany /com Now, if I need the inputDir value inside

Re: OT- need some help

2007-05-21 Thread Martin Kindler
Seems like you are looking for some type of XML reading. I would propose to look at Digester (which stems from the Struts project originally) (http://jakarta.apache.org/commons/digester/) or Betwixt (also from Apache Jakarta Commons http://jakarta.apache.org/commons/betwixt/) which builds on

Re: OT- need some help

2007-05-21 Thread MK Tan
Hi, Just wonder why you need to do this in xml way? Wasn't it much simpler if you do it in properties (key value) format? Most of the time, I just found it people like to overuse xml :-p Best regards, MK Tan On 5/21/07, vikas rao [EMAIL PROTECTED] wrote: Hi, Can someone point out a tutorial

Re: OT- need some help

2007-05-21 Thread vikas rao
Can you give me an example? The reason I chose to do it this way is basically I can change the inputDirectory, outputdirectory and other values without making any changes in the code, hence using it anywhere becomes easy. In our company, we have a jar file which is included in the build path and

Re: OT- need some help

2007-05-21 Thread vikas rao
No, Martin, I wasnt looking at plain xml reading ,in that case i could just use a normal parser and get the values right? Thanks, Vikas. On 5/21/07, vikas rao [EMAIL PROTECTED] wrote: Hi, Can someone point out a tutorial or some place where I can learn how to read values from a .cfg file?

Connection Pooling

2007-05-21 Thread Balazs Michnay
Hi there, This post might not be struts-related, but I read so many posts on this issue, that I thought I might ask... Having read all the posts, I still cannot estabilish database connection using connection pooling. I think I made all the settings I need, but still nothing... 1) I have a

Re: OT- need some help

2007-05-21 Thread Martin Kindler
vikas rao schrieb: No, Martin, I wasnt looking at plain xml reading ,in that case i could just use a normal parser and get the values right? Thanks, Vikas. Yes, sure, you could just use an XML parser and do your own stuff. The problem with this approach would be that changing your XML

Re: OT- need some help

2007-05-21 Thread MK Tan
On 5/21/07, vikas rao [EMAIL PROTECTED] wrote: Can you give me an example? The reason I chose to do it this way is basically I can change the inputDirectory, outputdirectory and other values without making any changes in the code, hence using it anywhere becomes easy. In our company, we

Re: OT- need some help

2007-05-21 Thread vikas rao
Hi martin, Yes, Now that I look at Digester's faq, seems like this can be pretty useful.Once the info in the files are available through java beans, i can use them anywhere I want using the getter methods. However, in my current scenario, looks like a simple key value pair, ie having a

[OT] how do i know servlet.jar verison i have?

2007-05-21 Thread אלחנן מעין
hi... in my lib folder of an ear i've found a 'mystery' servlet.jar which has the size (76,877 kb) , i tried looking into manifest.mf but it says nothing about the version only: Manifest-Version: 1.0 Created-By: Ant 1.4 how do i know which version it is? (it causes problems with our jsp

Re: [OT] how do i know servlet.jar verison i have?

2007-05-21 Thread Antonio Petrelli
2007/5/21, אלחנן מעין [EMAIL PROTECTED]: hi... in my lib folder of an ear i've found a 'mystery' servlet.jar which has the size (76,877 kb) , i tried looking into manifest.mf but it says nothing about the version only: Manifest-Version: 1.0 Created-By: Ant 1.4 how do i know which version

[OT] why hasn't apache foundation voted for JSR-277?

2007-05-21 Thread אלחנן מעין
by searching for solutions for jar problems i had i came across this http://jcp.org/en/jsr/results?id=3238 and wondered has anyone from apache gave this thought? _ Don't just search. Find. Check out the new MSN Search!

[S2] Validation on datetimepicker

2007-05-21 Thread Julien Leonard
Hello all, I'm using a datetimepicker in a search form, the result of the form is displayed in a s:div (thanks theme=ajax on s:submit ). My problem is, when the user set a wrong value in the datetimepicker ( toto), the s:div is updated but with the error page. In fact it's another form with a

[S2] HTTP Status 404 - result 'null' not found

2007-05-21 Thread SvetlanaR
I am sure this issue is not new, and it must be a work around, but unfortunately I was not able to find it yet. We have a local Windows environment (Sun App Server 8.2) where our project works just fine. But once we deployed it on our server (Sun Solaris) we've got the following error on every

struts1 and struts2

2007-05-21 Thread xiaojie han
I am new to struts. There is struts1 and struts2. what are the differences between them? Thanks. Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.

Re: struts1 and struts2

2007-05-21 Thread Dave Newton
--- xiaojie han [EMAIL PROTECTED] wrote: There is struts1 and struts2. what are the differences between them? http://struts.apache.org/2.x/docs/comparing-struts-1-and-2.html d. Pinpoint customers

Tiles and

2007-05-21 Thread Jim Theodoridis
Hello I am having the follwoing definition at tiles-defs.xml definition name=.content.before.delete extends=.content put name=body value=.cPanel.content.before.delete / put name=message value=.msg.content.show / put name=toolbar value={$1} / /definition how can i set

Re: Tiles and

2007-05-21 Thread Antonio Petrelli
2007/5/21, Jim Theodoridis [EMAIL PROTECTED]: Hello I am having the follwoing definition at tiles-defs.xml definition name=.content.before.delete extends=.content put name=body value=.cPanel.content.before.delete / put name=message value=.msg.content.show / put

Re: [S2] Validation on datetimepicker

2007-05-21 Thread Musachy Barroso
You can use the notify topics to validate the date and cancel the request if the date is not valid. On 2.0.6 I don't think there is any way to get Struts do it for you. On 2.1 you can mix ajax with validation so any validation supported by struts can be used with the ajax tags. musachy On

Re: Tiles and

2007-05-21 Thread Jim Theodoridis
Antonio Petrelli wrote: 2007/5/21, Jim Theodoridis [EMAIL PROTECTED]: Hello I am having the follwoing definition at tiles-defs.xml definition name=.content.before.delete extends=.content put name=body value=.cPanel.content.before.delete / put name=message

Re: Tiles and

2007-05-21 Thread Antonio Petrelli
2007/5/21, Jim Theodoridis [EMAIL PROTECTED]: Antonio Petrelli wrote: 2007/5/21, Jim Theodoridis [EMAIL PROTECTED]: Hello I am having the follwoing definition at tiles-defs.xml definition name=.content.before.delete extends=.content put name=body

Re: Tiles and

2007-05-21 Thread Jim Theodoridis
Because i allready have a template like this definition name=.mainLayout path=/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp put name=titlevalue= / put name=header value=.header / put name=mainMenu

Re: Tiles and

2007-05-21 Thread Antonio Petrelli
2007/5/21, Jim Theodoridis [EMAIL PROTECTED]: Because i allready have a template like this definition name=.mainLayout path=/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp put name=titlevalue= / put name=header value=.header / put name=mainMenu

Re: Tiles and

2007-05-21 Thread Jim Theodoridis
Thanx Antonio Petrelli wrote: 2007/5/21, Jim Theodoridis [EMAIL PROTECTED]: Because i allready have a template like this definition name=.mainLayout path=/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp put name=titlevalue= / put name=header

[S2] Problem with ! notation

2007-05-21 Thread Roger Varley
Hi I'm trying to call a method on my action using the ! notation as explained in the CRUD demo. If I call my action from the browser bar as http://localhost:8084/Tiger/StartOrder.action then the execute() method runs. If I call http://localhost:8084/Tiger/StartOrder!execute.action then I get the

Re: [S2] Problem with ! notation

2007-05-21 Thread Dave Newton
--- Roger Varley [EMAIL PROTECTED] wrote: I'm obviously missing something Is dynamic method invocation turned on? (Hey dynamic method invocation... you sure are looking good today, he cajoled, breathily.) d.

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
Is dynamic method invocation turned on? (Hey dynamic method invocation... you sure are looking good today, he cajoled, breathily.) It wasn't. I've changed the struts.properties file from struts.enable.DynamicMethodInvocation = false to struts.enable.DynamicMethodInvocation = true and

Re: [S2] Problem with ! notation

2007-05-21 Thread Dave Newton
--- Roger Varley [EMAIL PROTECTED] wrote: restarted Tomcat but no joy I'm afraid - http://localhost:8084/Tiger/StartOrder!execute.action still gives me the error message. You might have to post config snippets... I'm assuming Tiger is the webapp? d.

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
You might have to post config snippets... I'm assuming Tiger is the webapp? Yes, Tiger is the webapp. My struts.xml contains action name=StartOrder class=com.mysite.ecommerce.actions.StartOrderAction method=input result/startOrder.jsp/result /action My struts.properties is located in

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
On 21/05/07, Roger Varley [EMAIL PROTECTED] wrote: You might have to post config snippets... I'm assuming Tiger is the webapp? Dave Forget the previous post - it's working after a fashion. http://localhost:8084/Tiger/StartOrder.action runs OK and calls StartOrder.input().

submitting a form using java script on IE

2007-05-21 Thread Mansour
I need a table that contains anchors. Clicking on this anchors executes the Action I need. The table is working great in FF but not in IE. IE is getting the form object correctly put can not submit it. When I click on the anchor in IE, the page stays there and no action is taken. When I looked

RE: submitting a form using java script on IE

2007-05-21 Thread Forsberg, Mike
I've never used the this.parentNode.submit() in a form. That might only work in Firefox. (I make no claim if this is true, as I didn't look it up) What I generally use is document.formName.submit(). Hope I helped, Mike -Original Message- From: Mansour [mailto:[EMAIL PROTECTED]

Re: submitting a form using java script on IE

2007-05-21 Thread Mansour
Mike: I tried this one too and I tried using getElementByID and I tried document.all[frmName], they all worked fine. I was able to get the object successfully under FF and IE. I view the contents of this object using simple alerts and JS console in FF. The problem is when submitting the form

RE: submitting a form using java script on IE

2007-05-21 Thread Forsberg, Mike
From my understanding the onSubmit=return true; code just allows the form to be submitted. See http://www.htmlcodetutorial.com/forms/_FORM_onSubmit.html I noticed in your pasted output, the this is removed from the anchor tags. Could this be the issue? Mike -Original Message- From:

Re: submitting a form using java script on IE

2007-05-21 Thread Mansour
Sorry, that was my fault as I was reorganizing the code for the post. The keyword this was not taken off: And I really don't think this is the issue. table id=row thead tr thID/th themail/th thAddress/th thPhone/th thFax/th/tr/thead tbody tr class=odd td form id=frm39 name=frm39

Re: submitting a form using java script on IE

2007-05-21 Thread Mansour
It's working now. It's my fault. The onclick function needs a return value: s:form action=getAccountById method=post name=frm${row.id} id=frm${row.id} s:a onclick=this.parentNode.submit();return false; href=javascript:// c:out value=${row.firstName} /

[S2] Deploy error

2007-05-21 Thread laurosn
Hi all, i'm developing an application using Struts 2 + Spring + Hibernate + Tiles 2. I'm using the Jdeveloper 10.1.3 as the IDE. When i run the app inside the IDE, everything works fine. But when i generate an EAR file and try to deploy to server (OC4J or Tomcat), i receive the following

Re: ajax - Submit a form

2007-05-21 Thread Mansour
I still don't what wrong with this. I fixed few problems but still can not get the javascript function to execute when the request is being made. It send the request but the values for the form are not populated. Hopefully someone can find out what's wrong with my code. script

[S2] form population problem

2007-05-21 Thread shadman
I can't seem to get values retrieved from the DB to populate on the form. The list jsp and retrieving from DB work great, but values don't seem to make it to the jsp. I pass the ID into the action method, retrieve the record, and want to display the results. struts.xml: action name=findDeptId

Re: ajax - Submit a form

2007-05-21 Thread Musachy Barroso
Use a regular submit (no ajax) and see if you values are submitted. musachy On 5/21/07, Mansour [EMAIL PROTECTED] wrote: I still don't what wrong with this. I fixed few problems but still can not get the javascript function to execute when the request is being made. It send the request but

Re: [S2] Problem with ! notation

2007-05-21 Thread Roger Varley
Is dynamic method invocation turned on? As an aside, why is dynamic method invocation turned off by default. From experience this suggests that either the functionality is experimental, or is not the sort of thing you should be using unless you have good reason and know what you're doing. Are

RE: [S2] Problem with ! notation

2007-05-21 Thread Wesley Wannemacher
Yes, Tiger is the webapp. My struts.xml contains action name=StartOrder class=com.mysite.ecommerce.actions.StartOrderAction method=input result/startOrder.jsp/result /action My struts.properties is located in WEB_INF/classes along with the struts.xml file and contains

Re: ajax - Submit a form

2007-05-21 Thread Mansour
Yes they are submitted provided that the submit button is inside the form. Here's my code : tr td s:submit href=/updateAccount.action value=Save from inside the form w/o ajax /s:submit /td /tr /s:form /table hr / script

Re: ajax - Submit a form

2007-05-21 Thread Musachy Barroso
If you add s:head debug=true / and use the ajax theme, is any error logged? musahcy On 5/21/07, Mansour [EMAIL PROTECTED] wrote: Yes they are submitted provided that the submit button is inside the form. Here's my code : tr td s:submit href=/updateAccount.action

Re: ajax - Submit a form

2007-05-21 Thread Mansour
No, I can not see any thing logged. Here' the whole JSP. it should give you an idea about what I am doing. I am trying to save/update an account and run a JS to disable the inputs. %@ taglib prefix=s uri=/struts-tags% %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core% %@ taglib

RE: OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?

2007-05-21 Thread Forsberg, Mike
Posting to the group, since I believe a solution has been found. It appears that my issue was something like a buffer overrun in the jsp. A solution that we are testing is the following code snippet: %@ page buffer=1024kb autoFlush=false % The current size might be a little overkill but, my

Problems with an applet inside a struts + tiles jsp

2007-05-21 Thread Oren Livne
Dear All, I am writing a Struts 1.3.8 web application. I'm using tiles, and in one of the JSPs participating a tiles definition I placed an applet tag. The tiles processor throws a path-not-found-exception, but the page is displayed correctly and the applet works flawlessly. This is the error

Re: Problems with an applet inside a struts + tiles jsp

2007-05-21 Thread Martin Gainty
Good Evening Mr Levine I wanted to address your question If we look at the action servlet declaration in /WEB-INF/web.xml we are displayed servlet servlet-nameaction/servlet-name servlet-classcom.opensymphony.webwork.dispatcher.ServletDispatcher/servlet-class /servlet

Re: Problems with an applet inside a struts + tiles jsp

2007-05-21 Thread Oren Livne
Dear Martin, Thanks so much for your kind reply, but unfortunately I didn't understand it and I don't think it answers my question. You might be referring to Struts 2, but I am still using Struts 1.3.8 so my action servlet is declared as follows: !-- ActionServlet class --

Re: Problems with an applet inside a struts + tiles jsp

2007-05-21 Thread Oren Livne
Dear Martin, Thanks so much for your kind reply, but unfortunately I didn't understand it and I don't think it answers my question. You might be referring to Struts 2, but I am still using Struts 1.3.8 so my action servlet is declared as follows: !-- ActionServlet class --

Re: Problems with an applet inside a struts + tiles jsp

2007-05-21 Thread Martin Gainty
As I cannot guess the contents please display the appropriate web.xml M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please

How can I access a collection of object using struts tags?

2007-05-21 Thread hk
I have a bean, which has a class that contains a ArrayList of another class. In this case, how can I access the property of the last class in a JSP page. For example, the business object Movie has a class TitleStores that contains a property of titlestores, which is a conllection of a class

Re: ajax - Submit a form

2007-05-21 Thread Mansour
I am still having this problem. Did any one went through some thing similar when using ajax to submit a form from a link or a submit Button and when used notifyTopic ? The problem is that the form fields are never populated in the action ! Any help ? Mansour wrote: No, I can not see any

How to do the following in S@

2007-05-21 Thread tom tom
Hi, One page we got a Iterator containing the Action Names, which means Actions names are not known earlier, How can we retrieve the value inside the URL tag. How can we retrieve the dynamic action names like this in S2 that is in s:url tag how to give a dynamic action value from the iterator

Re: How can I access a collection of object using struts tags?

2007-05-21 Thread Nuwan Chandrasoma
Hi, if you are using struts 1.x you can use nested tags, look at this link for a sample http://www.laliluna.de/struts-nested-iteration-tutorial.html Thanks, Nuwan - Original Message - From: hk [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, May 22, 2007 12:57 AM

Re: ajax - Submit a form

2007-05-21 Thread Mansour
I FOUND IT. Apparently it's not possible to modify the DOM during the request. But when it's over we can do it: Here's the code: script type=text/javascript language=javascript dojo.event.topic.subscribe(/disableAll , function(data , type, request) { if (type == 'load') {

Re: How to do the following in S@

2007-05-21 Thread tom tom
In Struts 1.x we achieved the following by html:el tag --- tom tom [EMAIL PROTECTED] wrote: Hi, One page we got a Iterator containing the Action Names, which means Actions names are not known earlier, How can we retrieve the value inside the URL tag. How can we retrieve the dynamic

Re: Optiontransferselect button customization.

2007-05-21 Thread Vijay Prajapati
Hi, This is Vijay and currently using Struts2.0.6 production viersion in my application development. I have been used almost all tags in Struts2.0.6 but there are problem in s: optiontransferselect tag. It doesn't include cssClass and cssStyle of Second Select box at run time. So Is there any