Re: about sitemesh in struts 2.0.11

2008-02-20 Thread hardik_982
First of all i want to say thanks for favorable replies does your JSP include -yes does your decorator include -yes how to use FireBug (net tab) to see if the resources were found, and if so, examine them to see if sitemesh decorated something it should have. i dont know about anythin

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread Jeromy Evans
hardik_982 wrote: it shows javascript error on page 'dojo' is required That means the the dojo files were not found or were not even included. Does the head of your page (in html) include the scripts to load the dojo files? If not: does your JSP include does your decorator include If

Re: How to get method name in interceptor

2008-02-20 Thread Toni Lyytikäinen
Thanks. This approach works, but isn't quite as elegant as I was hoping. On Wed, Feb 20, 2008 at 2:47 PM, <[EMAIL PROTECTED]> wrote: > download the breadcrumb > interceptor > and look at the intercept method. You will see what's happening right

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread hardik_982
Thanks for your great advise i have tried u say but i think i still do any mistake it shows javascript error on page 'dojo' is required do you have any idea why? my decorater excludes /styles/* /scripts/* /images/* /index.html /Error.jsp

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread Jeromy Evans
hardik_982 wrote: when i try to use sitemesh and use s:tabbedpanel it can not work why? it is not give any error but tabbedpanel can not work Either: - you're missing in your decorator, so the javascript included by is missing; or - you need to an and excludes to decorators.xml because it

about sitemesh in struts 2.0.11

2008-02-20 Thread hardik_982
when i try to use sitemesh and use s:tabbedpanel it can not work why? it is not give any error but tabbedpanel can not work -- View this message in context: http://www.nabble.com/about-sitemesh-in-struts-2.0.11-tp15605222p15605222.html Sent from the Struts - User mailing list archive at Nabble.

Re: Iterator action setObject param

2008-02-20 Thread crappycrumpet
newton.dave wrote: > > > One way to implement this functionality is to simply the > desired page; your "note" object will be on the top of the stack, and can > be > accessed appropriately. > > Yeah I ended up doing using in the end. Was wondering if iterator passing object into action sho

Re: s:datetimepicker version 2.0.11 issue

2008-02-20 Thread Jeromy Evans
akash agrawal wrote: Issue: 1. Time cannot be edited by going straight to the text field and entering using keyboard. It only allows to pick up the time from the popup. However popup only gives minutes granularity in 5 minutes interval. Any workaround? Is there a better mailing list to post th

s:datetimepicker version 2.0.11 issue

2008-02-20 Thread akash agrawal
Hi, My code is: Issue: 1. Time cannot be edited by going straight to the text field and entering using keyboard. It only allows to pick up the time from the popup. However popup only gives minutes granularity in 5 minutes interval. Any workaround? Is there a better mailing lis

Re: Iterator action setObject param

2008-02-20 Thread Dave Newton
--- crappycrumpet <[EMAIL PROTECTED]> wrote: > Now I have a method in NoteAction called setNote(Note value) which sets the > note field to the value. I also have getModel which returns a new note > object if it's null. I however keep encountering the following error: > ERROR [com.opensymphony.xwork

Re: struts2 design question

2008-02-20 Thread Jeromy Evans
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: I'm curious why the developers of struts2 chose to define constants in an interface (StrutsStatics) and then implement that interface in at least 18 classes Just thought I'd mention that Dave followed this up for you in struts-dev: http:/

Re: Actions without extending ActionSupport?

2008-02-20 Thread Jeromy Evans
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: public class MyAction { public String deleteUser() { // Here I can inject errors for display on the JSP by writing: FacesContext.getCurrentInstance().addMessage("userNameField", "Sorry, that username is unknown"); return "input";

Iterator action setObject param

2008-02-20 Thread crappycrumpet
Hiya, I'm quite new to struts 2. I'm trying to write a jsp page for an action which iterates through a list of 'note' object and passing each of the 'note' object into another model-driven action (NoteAction) which renders the information for the note passed in. Now I have a method in NoteAction

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread bhaarat Sharma
try putting labelposition="top" as a property in your div tag for the first tab. and remove all css just to see if it atleast works On Wed, Feb 20, 2008 at 5:44 PM, xianwinwin <[EMAIL PROTECTED]> wrote: > > thanks for replying. No, the tabs.css is not mine. I realized it comes from > struts2-cor

Re: Need help with Struts Interceptor/session problem.

2008-02-20 Thread Dave Newton
--- daveck <[EMAIL PROTECTED]> wrote: > In our situation, some products are free while others are not. There's an > interceptor stack for each. All are dynamically generated immediately as an > html page or a pdf. An order is only generated for the products that > aren't free. For those, once th

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread Jeromy Evans
View the html source in the browser. The head should contain a script like this one from the struts2-showcase: // Dojo configuration djConfig = { baseRelativePath: "/struts2-showcase/struts/dojo", isDebug: false, bindEncoding: "UTF-8", debugAtAllCosts: true //

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
"Check that dojo is setup in the head of your page (view the html)" how do I do that? Thank you! Jeromy Evans - Blue Sky Minds wrote: > > Use the FireBug plugin for FF. > > Check that dojo is setup in the head of your page (view the html) and > that all of the resources it requires are loa

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread Jeromy Evans
Use the FireBug plugin for FF. Check that dojo is setup in the head of your page (view the html) and that all of the resources it requires are loaded (using the net tab). Ensure that struts filter is receiving requests for the /struts/* resources. xianwinwin wrote: :-( I think I have an issu

Re: Need help with Struts Interceptor/session problem.

2008-02-20 Thread daveck
newton.dave wrote: > > > I can't overstate enough that I have no idea how your application is > designed--it's possible an interceptor *is* the best way to handle your > needs, but I'm having trouble coming up with a reason why it would be > better > than just using another action, which would

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread xianwinwin
thanks for replying. No, the tabs.css is not mine. I realized it comes from struts2-core. Musachy Barroso wrote: > > Is tabs.css your css? I am guessing that there is some style applied > to the tabs that is breaking it. (because the text on the other tab > should be hidden, and it isnt) > >

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread Dave Newton
--- xianwinwin <[EMAIL PROTECTED]> wrote: > WHAT am I possibly doing wrong here? Not sure: does it work if you're not using your own CSS? It's weird that only one of your tab headers is showing up and that the text of both tabs is visible. I don't see anything immediately obvious about the JSP its

Re: strut2 & Ajax/dojo: rrrrrr what\'s wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread bhaarat Sharma
Pretty long subject eh.. use the labelposition property for your first I\'m a Tab!!! I\'m the other Tab!!! and lose all the css and theme=\"simple\" from the

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread Musachy Barroso
Is tabs.css your css? I am guessing that there is some style applied to the tabs that is breaking it. (because the text on the other tab should be hidden, and it isnt) musachy On Wed, Feb 20, 2008 at 5:21 PM, xianwinwin <[EMAIL PROTECTED]> wrote: > > WHAT am I possibly doing wrong here? > > I w

Re: Need help with Struts Interceptor/session problem.

2008-02-20 Thread Dave Newton
--- daveck <[EMAIL PROTECTED]> wrote: > The product is a generated and delivered (as a pdf) right after the user > clicks on the Confirm button. > I thought that the use of an interceptor for this purpose was ideal, but > I'm a Struts novice and far from an expert Java programmer. Can you > expla

Struts1.1 - Value of ActionForm in second Action that is chained

2008-02-20 Thread mule_user
This is the scenario using Struts 1.1: User Interface -> MyAction1 (input is Form1)-> MyAction 2 (input is Form2) ->User Interface MyAction1 and MyAction2 are Action classes. MyAction1 and MyAction1 are configured in struts-config.xmxl. MyAction1 takes Form1 as input. MyAction2 takes Form2 as

strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread xianwinwin
WHAT am I possibly doing wrong here? I want to get this result: (attention on the tabs example) http://www.nabble.com/file/p15600219/good.jpeg but I get this result: http://www.nabble.com/file/p15600219/wrong.bmp the code is: <%@ include file="/pages/layouts/taglibs.jsp" %> Welcome ; last

Re: Need help with Struts Interceptor/session problem.

2008-02-20 Thread daveck
I've done some pretty extensive troubleshooting, but will try and expand on it. The product is a generated and delivered (as a pdf) right after the user clicks on the Confirm button. I thought that the use of an interceptor for this purpose was ideal, but I'm a Struts novice and far from an expert

Re: Need help with Struts Interceptor/session problem.

2008-02-20 Thread Dave Newton
--- daveck <[EMAIL PROTECTED]> wrote: > Sometimes "PARMS" manages to keep its value, and sometimes > the value disappear. I don't see anything immediately obvious; IIRC you had already checked the session ID to make sure you were always dealing with the same session, correct? Have you done exten

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
thank you for your reply. I made the changes - still no good. I took one step backwards and I suspect that my theme="ajax" doesn't work properly. I tried to use a simple TABS and the result on the screen was text (the names of the tabs). Do you think that what causing the problem? How can I t

Need help with Struts Interceptor/session problem.

2008-02-20 Thread daveck
Hi, I have a BillingInterceptor that throws up a Confirmation Screen after submitting the input parameters and before processing the action. I am using the session to hold the parameter map so it's available to the action after the user Confirms their purchase. I have confirmed that the "PARMS" is

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread bhaarat Sharma
you can try the following. change: initial content to (close this tag after your tag, so that the whole form will be inside the div tag. ) also change: to > also nowhere in your page (where users enter data) do i see how you would be displaying the information to the user...even if data w

Re: [OT] Re: Is it post or get?

2008-02-20 Thread bhaarat Sharma
>../myApp/viewUserDetails.do?methodToCall=edit&userid=1, it >goes to Edit User page. so whats wrong with that? even if you are using \'hidden\' fields you will retrieve them as request.getParameter(). If you dont pass the hidden field but just type it in the url then also it will work. If you are

Re: Date formatting?

2008-02-20 Thread Adam Hardy
Chris Pratt on 20/02/08 17:07, wrote: On Feb 20, 2008 5:48 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: I just checked that there is no JSTL configuration setting to apply a format type or pattern to across the whole webapp. I need the ISO date format on 99% of dates displayed on my current app,

Re: [OT] Re: Struts2+MyEclipse

2008-02-20 Thread bhaarat Sharma
Struts2-core is what you should be using. On 2/20/08, Dave Newton <[EMAIL PROTECTED]> wrote: --- aum strut <[EMAIL PROTECTED]> wrote: > > struts-core-1.3.5 > > You should probably use an S2 library instead. > > > The IDE is giving the following errors: > > > > 1) the import com.opensymphon

Re: Date formatting?

2008-02-20 Thread bhaarat Sharma
Yea thats what I was thinking...but i am a n00b so thought maybe I am wrong... On 2/20/08, Dave Newton <[EMAIL PROTECTED]> wrote: --- \"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Please check the example at > > http://www.roseindia.net/struts/struts2/date/struts-2-date-format.shtml > > How

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
:-( I think I have an issue with the ajax configuration (I'm not sure). How can I verify that my theme="ajax" is configured properly? thank you! Jeromy Evans - Blue Sky Minds wrote: > > No, it seems fine now. > > Turn on debugging: > > >> >> on top, plus >> >> > /> >> >> but I get the s

Re: [OT] Re: Is it post or get?

2008-02-20 Thread Dave Newton
--- "semaj.najraham" <[EMAIL PROTECTED]> wrote: > How do I allow only POST form submission? Do I need to check on each Struts > Action method request.getMethod() is POST? If that's true, then I'm > screwed. I will need to make changes on all my action classes. If you actually *care*, then yes, you

Re: struts2 design question

2008-02-20 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I'm curious why the developers of struts2 chose to define constants in an > interface (StrutsStatics) and then implement that interface in at least 18 > classes It's likely you'd need to ask the original WebWork developers. Item #17, "Use interfaces only to define

Re: [OT] Re: Is it post or get?

2008-02-20 Thread semaj.najraham
Thank you for replying Dave. How do I allow only POST form submission? Do I need to check on each Struts Action method request.getMethod() is POST? If that's true, then I'm screwed. I will need to make changes on all my action classes. Thank you, semaj newton.dave wrote: > > --- "semaj.najra

[OT] Re: Struts2+MyEclipse

2008-02-20 Thread Dave Newton
--- aum strut <[EMAIL PROTECTED]> wrote: > struts-core-1.3.5 You should probably use an S2 library instead. > The IDE is giving the following errors: > > 1) the import com.opensymphony.xwork2.ActionSupport can not be resolved > > 2)ActionSupport can not be resolved to a type. > > Please te

RE: Date formatting?

2008-02-20 Thread Dave Newton
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Please check the example at > http://www.roseindia.net/struts/struts2/date/struts-2-date-format.shtml How does that address the question? Dave > From: Adam Hardy [EMAIL PROTECTED] > Date: Wed, 20 Feb 2008 13:48:18 + > To: user@struts.apach

Re: Actions without extending ActionSupport?

2008-02-20 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > public class MyAction { > public String deleteUser() { > // Here I can inject errors for display on the JSP by writing: > FacesContext.getCurrentInstance().addMessage("userNameField", "Sorry, > that username is unknown"); > return "input"; > } > } >

struts2 design question

2008-02-20 Thread eric . jung
Hi, I'm curious why the developers of struts2 chose to define constants in an interface (StrutsStatics) and then implement that interface in at least 18 classes (see http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/StrutsStatics.html). The"interface constant" pattern has b

Struts2+MyEclipse

2008-02-20 Thread aum strut
hi all, I am using MyEclipse 6.0.1 to develop my application.but i am facing some problems in it. i followed the follwing process: 1) in the new project wizard under the option of MyEclipse---> selected Web Project 2) after this i manually put the following Jar file under the WEB-INF\lib folder

Re: Actions without extending ActionSupport?

2008-02-20 Thread eric . jung
Hi David, Thanks again for the reply. I'm comparing MVC frameworks right now, and wondering if struts2 has a similar feature to JSF. In JSF, an action can look like this: public class MyAction { public String deleteUser() { // Here I can inject errors for display on the JSP by writing:

RE: Date formatting?

2008-02-20 Thread [EMAIL PROTECTED]
Hi, Please check the example at http://www.roseindia.net/struts/struts2/date/struts-2-date-format.shtml Thanks Original Message: - From: Adam Hardy [EMAIL PROTECTED] Date: Wed, 20 Feb 2008 13:48:18 + To: user@struts.apache.org Subject: Date formatting? I just checked that

Re: Actions without extending ActionSupport?

2008-02-20 Thread Dave Newton
--- tom_brokaw <[EMAIL PROTECTED]> wrote: > I said: >> You don't *need* to extend ActionSupport to implement ValidationAware, >> it's just much easier. > > So I *must* implement an interface (ValidationAware) or extend a struts2 > class in order to add errors messages from an action. Is that accur

URL encoding question

2008-02-20 Thread Tommy Becker
I'm having trouble getting to stop encoding a parameter. Here's a snipped of my jsp code: Apply Despite the encode="false", the url as rendered looks like this: /sf/WML/Buy.action?c1=CFWAP2734&c2=CFWAP712&coup=%24codeInput The problem is the $ is still being encoded. Anyone

Re: Actions without extending ActionSupport?

2008-02-20 Thread tom_brokaw
>> I was under the impression that I could write actions without extending >> ActionSupport or implementing any struts2/xwork interfaces. >You can. Doesn't mean you'd *want* to, if you want to use functionality >provided by the framework. I want to do this so that I can minimize the coupling b

Re: Date formatting?

2008-02-20 Thread Chris Pratt
On Feb 20, 2008 5:48 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: > I just checked that there is no JSTL configuration setting to apply a > format > type or pattern to across the whole webapp. > > I need the ISO date format on 99% of dates displayed on my current app, > but > there is no way to chan

Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread Dave Newton
--- Randy Burgess <[EMAIL PROTECTED]> wrote: > Yeah I apologize for the bad advice, I whipped that out too fast. Premature explication; it happens. I get email about that all the time. > It should be: > Dave - To unsubscribe

Re: Is it post or get?

2008-02-20 Thread Randy Burgess
If the user types in the URL it is a GET. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: "semaj.najraham" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 20 Feb 2008 08:52:11 -0800 (PST) > To: > Subject: Is it post or get? > > > Thi

[OT] Re: Is it post or get?

2008-02-20 Thread Dave Newton
--- "semaj.najraham" <[EMAIL PROTECTED]> wrote: > my point is if the user directly types > ../myApp/viewUserDetails.do?methodToCall=edit&userid=1, it goes to Edit > User page. > > Is this how it should behave even if it is POST or I am misunderstanding > how POST and GET works? You appear to be

Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread Randy Burgess
Yeah I apologize for the bad advice, I whipped that out too fast. It should be: Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Dave Newton <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 20 Feb 2008 07:55:24 -0800 (PST) > To: Struts

Is it post or get?

2008-02-20 Thread semaj.najraham
This is a novice question about post and get form submission and I am confused. I really appreciate if you could help me. I have included some sample codes for explanation. I have following action mappings in struts-config file

Re: Actions without extending ActionSupport?

2008-02-20 Thread Dave Newton
--- tom_brokaw <[EMAIL PROTECTED]> wrote: > I was under the impression that I could write actions without extending > ActionSupport or implementing any struts2/xwork interfaces. You can. Doesn't mean you'd *want* to, if you want to use functionality provided by the framework. > However, I > cann

Actions without extending ActionSupport?

2008-02-20 Thread tom_brokaw
Hi, I was under the impression that I could write actions without extending ActionSupport or implementing any struts2/xwork interfaces. However, I cannot figure out how to add action errors (ActionSupport.addActionError()) to an action if not extending ActionSupport. I looked at ActionContext.get

Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread Dave Newton
--- Randy Burgess <[EMAIL PROTECTED]> wrote: > If you have a getter for 'chapter' in your action then this should work. > > IIRC the "#" is only for named objects in the stack context (like #request, #attr, etc.) so I'm not sure that will work. For example, if I have a property "foo" on my actio

Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread Randy Burgess
If you have a getter for 'chapter' in your action then this should work. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: jcleve <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 20 Feb 2008 07:09:26 -0800 (PST) > To: > Subject: Re: Upd

Re: Update from 2.0.9 to 2.0.11

2008-02-20 Thread jcleve
I undestand the issue, but missed the clue, I'm a bit rookie on Struts2. If EL is forbidden, should OGNL be used, or is there a cleaner solution ? It might be a stupid question, but what would be the correct way of writing Have I to use % and #request or other context everywhere, and can't I s

Re: reflect.InvocationTargetException

2008-02-20 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > Has anyone encountered this before? Nope (well, I mean, *I* haven't, anyway). > Any suggestons on how to fix this? Post the code (and its related configuration, and the URL you're using to invoke it) that you believe should be getting executed. Is

reflect.InvocationTargetException

2008-02-20 Thread Richard Sayre
Hi All, I am getting the following error in my Struts 2 application. "class java.lang.reflect.InvocationTargetException : null" None of my classes are showing up in the stack trace. But it is happening at the same spot in my application. Has anyone encountered this before? Any suggestons on

Passing data to Global Error Page

2008-02-20 Thread John Menke
I need to pass data to my global error page I am attempting to setup a global error action instead of a jsp page as i want to post a message stored in my db on the error page. The action will grab data from the db and forward to jsp I am trying: errorHandlerAction

Date formatting?

2008-02-20 Thread Adam Hardy
I just checked that there is no JSTL configuration setting to apply a format type or pattern to across the whole webapp. I need the ISO date format on 99% of dates displayed on my current app, but there is no way to change the default globally for from dateStyle="medium". It seems like a p

Re: Struts version

2008-02-20 Thread Antonio Petrelli
2008/2/20, George Dadulescu <[EMAIL PROTECTED]>: > > > Hello. I want to show on the first page of my web application, the struts > version I use. Is there a way to extract it dynamically? You could try extracting if from the manifest... But what for? Antonio

Struts version

2008-02-20 Thread George Dadulescu
Hello. I want to show on the first page of my web application, the struts version I use. Is there a way to extract it dynamically? Thank you. -- View this message in context: http://www.nabble.com/Struts-version-tp15589157p15589157.html Sent from the Struts - User mailing list archive at Nabble

Re: How to get method name in interceptor

2008-02-20 Thread stanlick
download the breadcrumb interceptor and look at the intercept method. You will see what's happening right away. On Wed, Feb 20, 2008 at 5:40 AM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to access the ActionMapping from

Re: Using Variables with Messages in Struts

2008-02-20 Thread Adam Hardy
If you bear in mind that it's usually best to seperate mark-up and content, then you would break the string down into smaller parts: Then the problem is that in some languages you might break the string down differently. Ideally you would choose a different way of doing it, e.g. Please cl

How to get method name in interceptor

2008-02-20 Thread Toni Lyytikäinen
Hi, I'm trying to access the ActionMapping from an interceptor, like the following test stub: public String intercept(ActionInvocation invocation) throws Exception { ActionMapping am=ServletActionContext.getActionMapping(); log.info("The method is "+am.getMethod()); return invocation.

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
dont forget to share the code. Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Ok,,thx for the repliesi'll try using JNDI and with spring integration.I have worked using struts2+hibernate,it works fine.. Laurie Harper wrote: > > Struts1 provided a data-source configuration element because, at the > time that was added, there was no consistent mechanism for configuring

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
> eg. > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html is this connectio data source is the best implementation we are using hibernate c3p0, any suggestion F - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Using Variables with Messages in Struts

2008-02-20 Thread Asad Habib
Hello Nuwan. Doing it the way you proposed defeats the purpose since I have to place this string in a bean first. I would like to retrieve this string directly from message resources and display it with the html intact. Is there any to do this? Thank you for your suggestion. - Asad On Feb 20, 2

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Laurie Harper
Struts1 provided a data-source configuration element because, at the time that was added, there was no consistent mechanism for configuring data sources that worked across servlet containers. That changed a long time ago and Struts first deprecated, and then removed, its support for the data-so

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
Right. The configuration file the mysql reference refers to is the Container configuration, for example, server.xml or context.xml provided with Tomcat. Every J2EE container provides that configuration. Struts 1 provides some config to simply it, but Struts 2 doesn't provide convenience conf

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi, In this link : http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html, we can preform connection pooling only after configuring it in our configuration files.If it is in the case of struts1, struts-config.xml file has a tag called and there we can configure.But,

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
hi there i got a too many connection when try use spring-hibernate with struts2 and this is not struts2 problem i think the connection pool is not struts2 responsibility as the controller and if we use spring, this will become injection work with the database tech like ORM ot JDBC F -

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
RajiR wrote: Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. Struts 2 itself doesn't provide a connection pooling implementation and probably shouldn't. MySql provide a pooled DataSource that you can use immediately. Set it up t

Re: Type conversion questions

2008-02-20 Thread Jeromy Evans
Now the funny thing is that this seems to work. I got all sorts of exceptions at first, but they don't seem to be related to conversion. Thanks for all your help, and I'm sorry for wasting your time on this one. I'll get back when I find the real problem, should it be related to struts. Da

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. nuwan chandrasoma-2 wrote: > > Hi, > > Why do not you give a try with Spring. as struts2 has built in support > for spring, you can use springs connection pooling very easily. > > Thanks

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Nuwan Chandrasoma
Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks, Nuwan. RajiR wrote: Hi All, Since struts1 has connection pooling mechanism using tag,what is the procedure of connection pooling mechanism i

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Laurie Harper wrote: Daniel Baldes wrote: [...] [...] This way I could use getMyObjects() for displaying my objects and setMyObjects() for setting them (using only their IDs). Doesn't this imply that the myObjects property represents both the set of values that can be selected *and* t

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Hi Jeromy, Jeromy Evans wrote: Ah, I see the problem better now. In your select: you're trying to access myObjects as both a list of objects (list=) and as a string (name=). You can't do what you're describing because convertToString needs to provide the currently selected value for the s

Re: is session efficient way to persist the action properties

2008-02-20 Thread Laurie Harper
Prashant Khanal wrote: Hello all, I have two jsp pages say Page1 and Page2 backed by their corresponding action. When the Page1 is first loaded the corresponding action's prepare() method is used to provide the data for the page based on the parameter sent by the page that precedes the Page1. Up

Re: Type conversion questions

2008-02-20 Thread Laurie Harper
Daniel Baldes wrote: [...] 1. extending StrutsTypeConverter forces me to implement String convertToString(Map context, Object o). I think there is no common sense way of converting a collection back to a String in this context. It would, maybe, make sense to convert it to a String[]. But what

Re: Map instead of List in action

2008-02-20 Thread Laurie Harper
Change your property/method signatures from List<...> persons = new SomeList<...>(); public List getMap(); public void setMap(List value); to Map persons = new HashMap(); public Map getMap(); public void setMap(Map value); L. Sessizlik wrote: Hi Musachy, Thank you for your res

Re: Type conversion questions

2008-02-20 Thread Jeromy Evans
Daniel Baldes wrote: the problem here is that convertToString only allows returning .. a String. Accessing "myObjects" in a JSP would always call converter.convertToString(context, myaction.getMyObjects()) (as far as I can tell). So this way I can't return a collection of objects where I co

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Hi Jeromy, Jeromy Evans wrote: Daniel Baldes wrote: [...] 2. Is there a way to define a type converter application wide, like "always use this type converter for setting types which are subclasses of X" and "for setting types which are Collection"? This way I could define the type converter

Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi All, Since struts1 has connection pooling mechanism using tag,what is the procedure of connection pooling mechanism in struts2? Can we do tht using tag?I have seen from some of the search results for oracle db using class:oracle.jdbc.pool.OracleConnectionCacheImpl. But I need to

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Jeromy Evans wrote: [...] Now my questions: 1. extending StrutsTypeConverter forces me to implement String convertToString(Map context, Object o). I think there is no common sense way of converting a collection back to a String in this context. It would, maybe, make sense to convert it to a S

Re: Type conversion questions

2008-02-20 Thread Daniel Baldes
Hello Martin, this would be ok, but that method doesn't exist in StrutsTypeConverter as of struts 2.0.11, and most likely the framework won't call it when I implement it. Or am I missing something? Daniel Martin Gainty wrote: package org.apache.struts2.showcase.conversion public class EnumT