Re: Is this a BUG in S2

2007-05-22 Thread Jeromy Evans
I haven't tried to use a dynamic action name like that so can't comment on whether its a bug or feature, but one of these options should work: 1. Try using the ${} notation without the c:out (I can't find the reference for this approach but it's somewhere on the wiki) 2. Alternatively, work

Re: Struts 2 validation and Redirect After Post

2007-05-22 Thread Ian Roughley
I think what you are after is a flash scope implementation. There is a flash result and flash interceptor that Pat/Toby checked into the webwork project. With a couple small changes they will work in s2. At some point I guess they should be moved across. /Ian Fowler, Perryn wrote: Hi,

datetime picker is not working for FF

2007-05-22 Thread dhilip mandava
struts 2 datetimepicker is not working fine, for FF, i have releaseDate field as datetimepicker and in action releasedate as string , but when i am using FF, that releasedate value is null in action , but IE browser works fine. and one more thing is that while editing some page, i am assignin

Is this a BUG in S2

2007-05-22 Thread tom tom
Hi, We are experiencing that action attribute of the . . Is there any way to overcome this kind of requirements. Thanks __

Re: Connection Pooling How To ?

2007-05-22 Thread jasdeep
Hi Christropher .. Yes this is peek load actualy .. The requests are through SMS's which is forwarded by kannel server to my application . actually we are in development phase and we are testing it as per client specifications. So this was the load client specified ... i had s

weird behaviour for dateTimePicker

2007-05-22 Thread Mansour
I am trying to use dateTimePicker on one of my pages. When ever it pops out it shows in a new page (header, footer, navigation .. etc). As if it's another page by its self. I am using siteMesh in my project and it's using the layout for the rest of the pages. I thought may be I am doing somethi

Re: JSTL Integration fails - S2

2007-05-22 Thread tom tom
eclise Editor still gives a warning as Unknown tag c:out also at runtime the expression is not getting evaluated. I got jstl.jar and standard.jar in the WEB-INF/lib and got the following in the top part of the jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> <%@ taglib pref

Re: [S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Jeromy Evans
Hi Will, A simple approach is to use an S2 interceptor that opens the hibernate session before calling the action and closes it afterwards. This is the open-session-in-view pattern that's well described at the hibernate site http://www.hibernate.org/43.html. You don't need Spring or any othe

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

2007-05-22 Thread Cesar Arevalo
Maybe it is a typo, shouldn't it say: "nested:write" I do them all the time. Regards -Cesar -Original Message- From: hk [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 6:47 PM To: user@struts.apache.org Subject: Re: How can I access a collection of object using struts tags? Tha

Re: [S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Dave Newton
--- Will Smith <[EMAIL PROTECTED]> wrote: > [session stuff] If you were already okay with manually loading non-lazy loaded stuff, why not just: Hibernate.initialize(rootObject.getNameOfLazyCollection()); Otherwise: - Set lazy="false" in the mapping, and load it all the time, or - Use an open-se

[S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Will Smith
Hi, I'm sure this has probably been beaten to death, but I can't seem to find a viable solution without using spring. I just switched over to using hibernate from ibatis (so much better now), and I'm having trouble working my actions around hibernate's transaction model. With ibatis you had to ma

Re: JSTL Integration fails - S2

2007-05-22 Thread Musachy Barroso
you also need standard.jar: http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi musachy On 5/22/07, tom tom <[EMAIL PROTECTED]> wrote: Hi, I just wanted to integrate some JSTL features to my existing S2 application, I followed the following steps 1)copied jstl-1.1.2.jar

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread Jeromy Evans
Best option: The dojo version in 2.0.6 supports the 'separateScripts' attribute, so you can create your own div.ftl template that always includes this attribute set to true for the div (that's what I did) . Just modify the existing ajax div template and create your own theme containing just th

JSTL Integration fails - S2

2007-05-22 Thread tom tom
Hi, I just wanted to integrate some JSTL features to my existing S2 application, I followed the following steps 1)copied jstl-1.1.2.jar to WEB-INF lib directory 2)had following in the jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> <%@ taglib prefix="fmt" uri="http://ja

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread jdemic
Thanks Jeromy, is there anywhere that points out what all the embedded javascript is? I suspect i might be missing an include which is causing the validation errors not to render... Jeromy Evans - Blue Sky Minds wrote: > > Assuming you're using an for the tab that contains > your form, the s

Re: Disable label & re-select tab

2007-05-22 Thread Jeromy Evans
Either: - create your own theme for the radio button. Use simple/radiomap.ftl tyo create /radiomap.ftl to exclude the label that's always included (recommended); or - do a hack: you can use html inputs in your form directly in your JSP. These are also included as parameters for your post. Stru

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

2007-05-22 Thread hk
Thank you for the greate information. By the way, my Netbeans gives me an error message saying "netsted:write is not defined". nuwan chandrasoma-2 wrote: > > 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-nes

Re: [S2] Problem setting radio to default value from a Collection

2007-05-22 Thread Laurie Harper
I'm not quite clear what your code looks like, but based on what you say it sounds like you may be putting the wrong value in your 'answer' property. This iterates through the beans in the game.question.answers collection (C), and creates a radio button for each. The radio button value wi

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread Jeromy Evans
Assuming you're using an for the tab that contains your form, the scripts are 'stripped out' due to this bug: https://issues.apache.org/struts/browse/WW-1766 Your work-round to include the scripts manually should work if you include ALL the missing embedded javascript. jdemic wrote: Thanks f

Re: Disable label & re-select tab

2007-05-22 Thread Torsten Römer
Thanks, Musachy, for the quick answer. I should have mentioned, that I already set theme="simple" but would still create a label: yields: BMW M5 What I am actually trying to do is to create single radiobuttons in a loop. Sounds crazy I know, but I need to place the radiobuttons in a specifi

Re: How to do the following in S@

2007-05-22 Thread tom tom
Hi, thanks for the reply, Yes we tried that, also tried #testID.actionName both doesnt seem to work, It looks like it doesnt evaluate what is inside the action = "" it prints the expression values as it is without evaluating. One other thing which I want to note is that, this is a portlet, Shoul

Struts 2 validation and Redirect After Post

2007-05-22 Thread Fowler, Perryn
Hi, I want to use the redirect after post pattern in order to have a web app that is well behaved when the user hits back, refresh etc etc I also want to use the Struts 2 validation framework. At first glance though, the two seem incompatible: If I have a form that I want to submit

Problem with struts menu.

2007-05-22 Thread Milson Cardona
Hi the struts version is 1.3.8, and tomcat 4.1.27 i'm newbee with struts menu, i'm have *my Struts-menu.xml* *my struts-config.xml* *...* *my jsp* <[EMAIL PROTECTED] file="taglibs.jsp" %> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Drop-Do

Re: Disable label & re-select tab

2007-05-22 Thread Musachy Barroso
To select the tab, use the "selectedTab" attribute on tabbedPannel. For your label question check this FAQ: http://cwiki.apache.org/WW/why-do-the-form-tags-put-table-tags-around-controls.html musachy On 5/22/07, Torsten Römer <[EMAIL PROTECTED]> wrote: I have 2 beginners questions that I can'

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread Musachy Barroso
Those scripts are included by the head tag if I don't remember wrong, so set theme="xhtml" or "css_xhtml" (on the head tag). I haven't use DWR before so I can't help you much. Did you configure it on web.xml? Rest assured that ajax validation is way easier in 2.1 (just add an interceptor to your

Disable label & re-select tab

2007-05-22 Thread Torsten Römer
I have 2 beginners questions that I can't seem to figure out: - How can I make tags like not to create any label and create my own label (using for example the tag)? - What is the easiest way to re-select the selected tab of a when redisplaying the form? I have a String type property for the c

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread jdemic
Thanks for the pointer Musachy. I compared the html of both and it seems like the following was missing with the jsp displayed in the tabbedPanel: I manually added these to our header.jsp and I can now see struts sending the validation request to dwr. The validation messages are not disp

Re: Wrap data in struts

2007-05-22 Thread Laurie Harper
Sourabh Chandan wrote: Hi, Anyone has idea about how can be wrapped the text when we use .. I tried to use wrap attribute of text area. But it doesn't work because I am using struts It can be done if there is an attribute to break lines. It works if i enter data and press enter key after 40

Re: in JSP

2007-05-22 Thread Hassan Schroeder
On 5/22/07, newtostruts struts <[EMAIL PROTECTED]> wrote: How do I get the value of this tag in a JSP variable on the same page. . How about using JSTL: ${foo} HTH, -- Hassan Schroeder [EMAIL PROTECTED] -

in JSP

2007-05-22 Thread newtostruts struts
How do I get the value of this tag in a JSP variable on the same page. . This prints fine on the page but I'm not able to get this value assigned to a JSP variable. Thanks - Get your own web address. Have a HUGE year through Yahoo! Small Business.

Re: How to do the following in S@

2007-05-22 Thread Laurie Harper
Did you try this? L. tom tom 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 action names like this in S2 that is in

RE: [S2] Problem setting radio to default value from a Collection

2007-05-22 Thread Cesar Arevalo
Worked around this, putting this piece of code before the end of my body tag in the jsp page: document.getElementById('answer').checked=true; However I don't like it. According to the documentation the radio should check the default

Re: [S1] Really simple newbie question

2007-05-22 Thread Dave Newton
--- "Braun, James F" <[EMAIL PROTECTED]> wrote: > However, when trying to create a simple test app to > verify the installation I get the following error > > javax.servlet.jsp.JspException: Exception creating > bean of class test.form.TestForm: {1} > [... stack trace ...] > I hate to waste people'

Re: [S2] form population problem

2007-05-22 Thread Dave Newton
--- shadman <[EMAIL PROTECTED]> wrote: > private Department getDept() { return dept; } > private void setDept(Department department) { *dingdingding* Private, huh? ;) > label="Dept Name" > value="dept.deptName" > size="10" /> If dept (the

Re: TabbedPanel and Ajax Validation

2007-05-22 Thread Musachy Barroso
I don't see the tabPanel, assuming this is the jsp without it. Compare the generated html with/without the tabPanel, there should be a validation function in both. musachy On 5/22/07, jdemic <[EMAIL PROTECTED]> wrote: Hey All, I'm attempting to perform ajax validation in a tabbedPanel and I'

TabbedPanel and Ajax Validation

2007-05-22 Thread jdemic
Hey All, I'm attempting to perform ajax validation in a tabbedPanel and I'm getting the following JS error: validate is not defined The validation works fine outside of the tabbedPanel. My jsp looks like this, any help is appreciated: <%@ taglib prefix="s" uri="/struts-tags" %>

[S1] Really simple newbie question

2007-05-22 Thread Braun, James F
I set up a new work station with MyEclipse 5.1, Weblogic 8, and jdk 1.4.11 I set it up exactly the same as a workstation that is working well. However, when trying to create a simple test app to verify the installation I get the following error javax.servlet.jsp.JspException: Exception creating

View development and testing

2007-05-22 Thread Jason Weston
I've recently started exploring the possibility of using Freemarker templates to render my views. One of the things I like about the idea is that it's easy to execute my Actions and merge them with result templates without deploying to a servlet container. Is anyone doing this successfully with J

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Nuwan Chandrasoma
Hi, Add to what i said, equal tag only check values which are double,long or string only. Thanks, Nuwan - Original Message - From: "hk" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 22, 2007 5:30 PM Subject: Re: How can I access an attribute of session using JSP tags? In my JSP

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Nuwan Chandrasoma
hi, if the attribute netblockflixter is a bean and thinking that it has a property called Login Hi, you can check it like this your equal comparison is wrong., based on what you have your checking if the Login property of the netblockflixter bean is equal to string "Boolean.TRUE" Thank

Re: [S2] form population problem

2007-05-22 Thread shadman
Thanks for the reply, Dave. So I have the following: struts2test1.xml jsps/edit_list.jsp jsps/edit_dept.jsp Java: public class Department implements java.io.Serializable { private short deptId; private String deptName; public Department() { } pub

[S2] Problem setting radio to default value from a Collection

2007-05-22 Thread Cesar Arevalo
Hi All, I have a jsp with a radio tag setup like so: < /s:radio> What I display in the radio buttons are answers, once the userclicks on an answer the form is submitted, my action retrieves the correctanswer and puts it in both an id and an answer property defined in the sameaction

Re: [s2] unexpected Tomcat shutdown everyday

2007-05-22 Thread walidito
Unfortonutalely, I don't have any class that invokes System.exit() nor Spring scheduler. Nothing particular happens before tomcat shutdown (see logs). And No database is backed up or restarted during this time. This is really strange (and critical) and I suspect that it comes from Struts. Tan

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread hk
In my JSP page, I have a code like below, Logout Login I think, logic:present tag can check the session bean, but in this case, the "netblockflixter" is not a bean. How can I check the attribute in struts tag? Lance Semmens-3 wrote: > > I am say

Re: [S2] form population problem

2007-05-22 Thread Dave Newton
--- shadman <[EMAIL PROTECTED]> wrote: > The DepartmentAction retrieves the dept object from > DB, and has getters and setters for the domain "dept" > object in the action. > > This is the proper syntax; I do it all over the place. If the action has a getDept() and the dept has a getDeptId(), a

RE: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Al Sutton
Thanks for the suggestions. It just felt a little weird that the recommended method of dealing with POSTed data (i.e. post and redirect) whacks out the standard provided method of passing user messages (addActionError and addActionMessage). Is this something which could be "improved" in future rel

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Lance
I am saying the standard struts tags do check session scope if scope="session" or no scope is provided, so it's probably a bug in your code. Nuwan Chandrasoma wrote: Hi, I would go for JSTL tags, but i dont really get what you trying to say! Thanks, Nuwan - Original Message - From:

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Nuwan Chandrasoma
Hi, I would go for JSTL tags, but i dont really get what you trying to say! Thanks, Nuwan - Original Message - From: "hk" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 22, 2007 4:37 PM Subject: How can I access an attribute of session using JSP tags? I tried to check and output an

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Lance
It should be ok, if you leave the scope attribute empty, all scopes will be checked. If scope="session" the tags will only check session scope. Can I also suggest checking jstl which may make things (esp logic) a lot easier http://jadecove.com/downloads/jstl-quick-reference.pdf hk wrote: I t

Re: [S2] form population problem

2007-05-22 Thread shadman
Thanks for the reply, Jeromy. That is exactly what has not been working. Unfortunately, the s:property does not work either. "dept" is a Department domain object, with two field, deptId: short; and deptName: String. Both have getters and setters. The DepartmentAction retrieves the dept object fr

Re: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Lance
You could forward rather than redirect. Another option is to use "flash scope" which has been discussed on this list previously. My understanding of this is that a filter manages a map on the session and requests have access to attributes added by the previous request. I have never implemente

Re: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Nuwan Chandrasoma
Hi, if its struts2, take a look at this... http://struts.apache.org/2.x/docs/message-store-interceptor.html Thanks, Nuwan - Original Message - From: "Al Sutton" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Tuesday, May 22, 2007 4:21 PM Subject: [s2] Best method of p

How can I access an attribute of session using JSP tags?

2007-05-22 Thread hk
I tried to check and output an attribute of session in a jSP page, which I had set in an action by using logic:present and bean:out tagas, but I coulnd't. It seems like those are not a right tag. -- View this message in context: http://www.nabble.com/How-can-I-access-an-attribute-of-session-us

RE: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Raghupathy, Gurumoorthy
Redirect looses all data .. this is how it is to work One thing you can do is store it as a session attribute :) ... not the best way but one of the way Regards Guru -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 22 May 2007 17:22 To: 'Struts Users Mailing Lis

[s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Al Sutton
Simple question; Is there any way to retain messages added with addActionError or addActionMessage during a redirect? More complex explanation of my setup; ActionA gets data and has uses a jsp to display the data (using my_jsp.jsp). my_jsp.jsp has a comment field which submits data to A

Re: Struts2 DWR parameter issue

2007-05-22 Thread newtostruts struts
Thanks Lance, I don't know what I was doing wrong with my old method, but it is working fine now. Lance <[EMAIL PROTECTED]> wrote: You could use jsp tags to create a hidden template row. Client side you can clone the template row using dwr.util.cloneNode() then tweak the appropriate

Re: Struts2 DWR parameter issue

2007-05-22 Thread Lance
You could use jsp tags to create a hidden template row. Client side you can clone the template row using dwr.util.cloneNode() then tweak the appropriate bits. newtostruts struts wrote: I'm trying to use DWR with Struts2. The problem is when I'm trying to build the row of a table with a link

Re: [S2] form population problem

2007-05-22 Thread Jeromy Evans
I'm not 100% sure of your intent as this line is a bit strange - trying to set the deptId to the deptName but anyway, the documentation on the wiki around the expressions for some tags is a bit confusing and I suspect the problem is that you need "%{ }" to explicitly identify the OGN

Struts2 DWR parameter issue

2007-05-22 Thread newtostruts struts
I'm trying to use DWR with Struts2. The problem is when I'm trying to build the row of a table with a link to an action class, I'm not able to send any params in that link. eg: var getUname = function( user ) { return '' + user.uname + '' }; This is what I'm trying to do but gett

Re: how to read login info

2007-05-22 Thread Jeromy Evans
If you simply want to open a personalised page when they return to http://abc:8080/product, just save a cookie the first time they login so you know who they are the next time they come back. If you genuinely want to authenticate the user using their windows login credentials: On the server-si

Re: [S2] Problem with ! notation

2007-05-22 Thread Nate Drake
Roger Varley googlemail.com> writes: > > > 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 >

Re: datetimepicker is not showing at all

2007-05-22 Thread Mansour
Thanks, That helped. But the whole page now is a mess. As is it's popping up in another page, with new header and footer ! I don't understand how the layout goes with this, but I 'll try to figure it out. If any one faced before, please let me know. Julien Leonard wrote: Hello Try to had

displaying options with html:optionsCollection tag

2007-05-22 Thread kalyan namburi
I'm using html:optionsCollection tag in my jsp to display options for multiple dropdowns. see my code snippet below: where "availableGroupsByService" is a hashMap and "assignedGroupIdsByService" is an array of type int. The problem i'm facing is, while i'm

Re: Access to MessageResource from action.

2007-05-22 Thread Jeromy Evans
Hi Michał, Although that approach will work, if you're creating a new message resource bundle you may prefer the new Struts2 approach described at http://struts.apache.org/2.x/docs/localization.html and demonstrated at http://www.planetstruts.org/struts2-mailreader/Tour.do. Essentially you c

Re: Connection Pooling How To ?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jasdeep, jasdeep wrote: > 2. Configuring Jboss's Internal Container Level Connection pooling simply > creating the datasources This is the right way to do things. > The application works OK with Second method but When it is being hit with > 200 r

Problems with an exception thrown from an applet in a JSP

2007-05-22 Thread Oren Livne
Dear All, I'm sorry about the double posting but haven't received any feedback to my first posting. I am writing a Struts 1.3.8 web application with tiles. In one of the JSPs (participating a tiles definition), the tiles processor throws a path-not-found-exception upon finding an tag, althoug

Re: Optiontransferselect button customization.

2007-05-22 Thread Jeromy Evans
Hmm... I use 2.0.6. The wiki at http://struts.apache.org/2.x/docs/optiontransferselect.html lists doubleId as an attribute, it's definitely included in the OptionTransferSelect class and OptionTransferSelectTag class (in AbstractDoubleListTag) and it's definitely referenced in the optiontrans

Connection Pooling How To ?

2007-05-22 Thread jasdeep
Hi All , i am developing a struts based web-application with JBoss 4.0.5 as Application Server and Oracle 10g Express edition . I am configuring my application for connection pooling . I have tried following methods : 1. Oracle Connection Pooling following thius link http://www.lc.leidenuni

Re: Serious memory leak

2007-05-22 Thread Torsten Römer
You could also try to run jmap -histo when you get the OutOfMemoryError; you'll probably see the same as in the NetBeans profiler but maybe it helps to reveal the "memory eater" anyway. Torsten Balazs Michnay wrote: > Hi, > > I have just downloaded NetBeans Profiler to see how my web-app perfor

Re: [S2] form population problem

2007-05-22 Thread shadman
So, if the action properties are pushed onto the stack via OGNL, then what from below would be preventing me from seeing the values that should be there? Displaying a list worked just find, the Dept object seems to be unavailable. I have getter and setter, according to documentation, I shouldn't h

Re: Serious memory leak

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: > I have just downloaded NetBeans Profiler to see how my web-app > performs and realized that it produces serious memory leaks... [snip] > What I discovered was that > a simple page reload leads to eating up my memory a

Re: [OT] Connection Pooling

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: > 2) open your server.xml and put the following lines between > tags (this is what I > missed...) > (Modify it properly...) Although this is possible, most will recommend against it (including me). This will create a

Re: [OT] Connection Pooling

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: > Thanks for helping. > Sure, here are all my settings. I think you have more configuration than you need. Here is exactly what I have for a similar setup (MySQL 5.x, Connector/J 5.x, Tomcat 5.5.x): I checked, and

how to read login info

2007-05-22 Thread Vardan
Dear All , Can we have windows Login credentials like user name or domain name,to make my application single signon. Scenario 1.User login into Windows and hit http://abc:8080/product 2.The request comes to logOn action,so at this point is it possible to fetch user domain name or

Re: [S2] How to get the value of the datetimepicker?

2007-05-22 Thread Julien Leonard
Thanks ! I've just saved the validation of my application ! Julien 2007/5/22, Musachy Barroso <[EMAIL PROTECTED]>: Assuming that "datePicker" is the id of the datetimepicker tag: to get an string value (RFC 3339): dojo.widget.byId("datePicker").getValue(); to get a Date object: dojo.widge

Re: Serious memory leak

2007-05-22 Thread Guillaume Carré
2007/5/22, Balazs Michnay <[EMAIL PROTECTED]>: Hi, I have just downloaded NetBeans Profiler to see how my web-app performs and realized that it produces serious memory leaks... The interesting part is that I have nothing on my JSP but static struts tags (no dynamic content at all) and it turn

Re: datetimepicker is not showing at all

2007-05-22 Thread Julien Leonard
Hello Try to had at the begining of your jsp. Julien 2007/5/22, Mansour <[EMAIL PROTECTED]>: I can not get datetimepicker to work. Here's my Code: and here's the html output: dojo.require("dojo.widget.DatePicker"); Any Idea? Is there alternative for this one ? -

Re: [S2] How to get the value of the datetimepicker?

2007-05-22 Thread Musachy Barroso
Assuming that "datePicker" is the id of the datetimepicker tag: to get an string value (RFC 3339): dojo.widget.byId("datePicker").getValue(); to get a Date object: dojo.widget.byId("datePicker").getDate(); musachy On 5/22/07, Julien Leonard <[EMAIL PROTECTED]> wrote: Hello, Since there is

Re: [S2] Deploy error

2007-05-22 Thread laurosn
Yeah, i'm sure. It's very strange. I already opened the EAR file a thousand times to see if antything could be wrong. I have done this procedure (create EAR file) many times for other app. But for Struts 2 + Spring is the first one. My guess is that the Jdeveloper sets a lot o of environments var

Serious memory leak

2007-05-22 Thread Balazs Michnay
Hi, I have just downloaded NetBeans Profiler to see how my web-app performs and realized that it produces serious memory leaks... The interesting part is that I have nothing on my JSP but static struts tags (no dynamic content at all) and it turned out that the leaks are not made by my applicat

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
Many thanks for your help, I managed to set connection pooling up (however, I don't know whether it uses conn. pooling or not...) To help others, here are all the configurations that need to be done: (This works with Tomcat 5.5, MySQL 5.0, Win XP SP2) 1) Place your database driver in your $CATALI

Re: Access to MessageResource from action.

2007-05-22 Thread Zoran Avtarovski
Out of curiosity, why wouldn't you use: ResourceBundle.getBundle(propFile, Locale, getClass().getClassLoader()); Z. > hi, > > ServletActionContext.getServletContext(); > > Thanks, > > Nuwan > > - Original Message - > From: "Michał Letyński" <[EMAIL PROTECTED]> > To: "Struts Users M

datetimepicker is not showing at all

2007-05-22 Thread Mansour
I can not get datetimepicker to work. Here's my Code: and here's the html output: dojo.require("dojo.widget.DatePicker"); Any Idea? Is there alternative for this one ? - To unsubscribe, e-mail: [EMAIL PROT

Re: Optiontransferselect button customization.

2007-05-22 Thread Vijay Prajapati
Jeromy, In which version it includes doubled attribute for second select. I am using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it shows Bug in Optiontransferselect in version 2.0.6. please send me code for it. Vijay On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: opt

[S2] How to get the value of the datetimepicker?

2007-05-22 Thread Julien Leonard
Hello, Since there is some problem with ajax validation, i'm trying to validate my self my dates with topics. But I can't get the value of the component in JS,. Is someone know how to get the value of a datetimepicker ? Julien

Re: Optiontransferselect button customization.

2007-05-22 Thread Jeromy Evans
optiontransferselect includes the doubleId attribute for the second select. Your CSS can reference that ID. To change the order of the buttons you'll need to create your own optiontransferselect.ftl template based on the existing one. Vijay Prajapati wrote: Hi, This is Vijay and currentl

RE: Connection Pooling in Struts

2007-05-22 Thread Raghupathy, Gurumoorthy
Hi, Struts way (not good) Connection pooling is not available in latest version of struts 1 and struts 2. So if you upgrade your application to latest struts then you will be in trouble. Server (JNDI) very good All application servers provide it

Connection Pooling in Struts

2007-05-22 Thread Saravanan Vijayappan
Hi To set up connection pooling in struts which is the recommended way whether and please explain the benifts 1) Configure through struts-config 2) Configure through Server (like in tomcat data-source configuration) Thanks & Regards, Saravanan Vijayappan, +91 9448833571.

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

2007-05-22 Thread Lance
Firstly, I hope you are only using "request" scope for these forms. Session scope would kill your application. Have you tried experimenting with the JVM options? (http://blogs.sun.com/watt/resource/jvm-options-list.html) In particular -Xms (initial Java heap size) and -Xmx (maximum Java heap siz

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

2007-05-22 Thread Forsberg, Mike
A form of approximately 1800 form elements is causing "java.lang.OutOfMemoryError: Java heap space". When 1000 form elements are used, no such error. The environment: - JBoss 4.0.5 - Struts 1.1 - A jsp page using struts tags to start and end the form block. Then insidethe form, xslt is used to

[OT]Re: [S2] Deploy error

2007-05-22 Thread Nuwan Chandrasoma
hi, are you sure you have the applicationContext.xml file inside the WEB-INF directory of the .ear file? http://www.springframework.org/docs/api/org/springframework/web/context/support/XmlWebApplicationContext.html hope this would help you. Thanks, Nuwan - Original Message - Fro

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
Hi, Sorry mate, i think you should ask this from another group like tomcat.., hope this link would give you some help http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html Thanks, Nuwan - Original Message - From: "Balazs Michnay" <[EMAIL PROTECTED]> To: "Str

Re: Wrap data in struts

2007-05-22 Thread Antonio Petrelli
2007/5/22, Sourabh Chandan <[EMAIL PROTECTED]>: Hi, Anyone has idea about how can be wrapped the text when we use . I tried to use wrap attribute of text area. But it doesn't work because I am using struts What do you mean with "wrapped"? Antonio

Wrap data in struts

2007-05-22 Thread Sourabh Chandan
Hi, Anyone has idea about how can be wrapped the text when we use . I tried to use wrap attribute of text area. But it doesn't work because I am using struts It can be done if there is an attribute to break lines. It works if i enter data and press enter key after 40 characters. Sourabh +

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
I forgot that I also have a resource-ref entry in my web.xml file... just in case it counts... DB Connection jdbc/akr_db javax.sql.DataSource Container But still nothing :( Thanks, BM - Original Message From: Nuwan Chandrasoma <[EMAIL PROTECTED]> To

Struts 2 validation and Redirect After Post

2007-05-22 Thread Fowler, Perryn
Hi, I want to use the redirect after post pattern in order to have a web app that is well behaved when the user hits back, refresh etc etc I also want to use the Struts 2 validation framework. At first glance though, the two seem incompatible: If I have a form that I want to submit with a POS

Re: Access to MessageResource from action.

2007-05-22 Thread Nuwan Chandrasoma
hi, ServletActionContext.getServletContext(); Thanks, Nuwan - Original Message - From: "Michał Letyński" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 22, 2007 7:06 AM Subject: Re: Access to MessageResource from action. Michał Letyński napisał(a): How to

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
Still the same error message and the same symptoms: the url and the driverclass properties are still null: :-(( "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'" ohhh... what am I missing ??!! - Original Message From: Nuwa

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
hi, i just had a look, i think your url is wrong. where is the DB name? eg:- you have it like jdbc:mysql://localhost:3306 but should be like: jdbc:mysql://localhost:3306/akr_db Thanks, Nuwan - Original Message - From: "Balazs Michnay" <[EMAIL PROTECTED]> To: "Struts Users Maili

Re: Access to MessageResource from action.

2007-05-22 Thread Michał Letyński
Michał Letyński napisał(a): How to do this in struts 2 ? In struts 1 i had: MessageResources resources = (MessageResources) getServlet().getServletContext().getAttribute(org.apache.struts.Globals.MESSAGES_KEY); - To unsubscr

  1   2   >