RE: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes the value of dt_oid is null at that point. Im trying to figure out how i can populate it at that point . -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3672845.html Sent from the Struts - User mailing list archive at N

RE: RE: loading Dropdown dynamically from database

2011-03-14 Thread Lee Clemens
I think Eclipse auto-compiles by default. What is this? DomainDAO.listDomain(dt_oid) Is dt_oid null at this point? (Add a debugging statement) Have you posted code for DomainDAO? I apologize if I've missed it. - To unsubscrib

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Ive cleaned the project and restarted eclipse Yet it still throws the NPE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3669127.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
I meant that perhaps (and if you're using eclipse is more likely than perhaps) your ide is not running the code that contains your latest changes Maurizio Cucchiara Il giorno 15/mar/2011 06.15, "JavaNoobie87" ha scritto: Yes, very much .In fact, I copied the code directly from my IDE -- View th

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes, very much .In fact, I copied the code directly from my IDE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3666711.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
I'll try to reformulate the question: are your sure that your IDE is running the code you posted? Maurizio Cucchiara Il giorno 15/mar/2011 05.53, "JavaNoobie87" ha scritto: > Im using the same version , as ive pasted for the DAO class. > > -- > View this message in context: http://struts.1045723

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Im using the same version , as ive pasted for the DAO class. -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3664225.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
I was refering to the dao's method invocation Maurizio Cucchiara Il giorno 15/mar/2011 05.46, "JavaNoobie87" ha scritto: Yes very much the same code.But the method that leads to the NPE is not static in the action class. Im placing the action class below again Action Class http://struts.104572

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes very much the same code.But the method that leads to the NPE is not static in the action class. Im placing the action class below again Action Class http://struts.1045723.n5.nabble.com/file/n3663281/2vG8DAsH.txt 2vG8DAsH.txt -- View this message in context: http://struts.1045723.n5.nabble

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
Are you sure that you are running that version of code? A static method invocation, even with null value as argument, should not thrown a NPE Maurizio Cucchiara Il giorno 15/mar/2011 05.26, "JavaNoobie87" ha scritto: > I solved the issue , but right now im facing a Null pointer exception, which

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
I solved the issue , but right now im facing a Null pointer exception, which Im trying to solve . Ive attached the pastebin links to the action and dao class , and the stacktrace below. (This is on running the addupdomain action.) Inside AddDomain Unknown else Listing records java.lang.NullPoin

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Maurizio Cucchiara
It looks like that your action execution fails inside the method you defined for the action. You should look inside the invocation target exception (through the get cause method) in order to investigate what is the really cause. Maurizio Cucchiara Il giorno 14/mar/2011 21.26, "abhishek jain" ha

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
Are there any errors in the stacktrace? Maurizio Cucchiara Il giorno 14/mar/2011 07.59, "JavaNoobie87" ha scritto: > Yes there is a method doing that.Here is the snippet . > public void setDtList(List dtList) { > this.dtList = dtList; > } > > public List getDtList() { > return dtList; > } > > Iv

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
also noticed: 6 times constructor called 2 time execute This is when validation is true DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax - In the constructor DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax - In the constructor DEBUG [http-8080-4] net.xxx.emr.wo

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
If I don't use the sj:dialog (just regular form) and just the form with Ajax - its calling only once. but when validate is true, then the action is called multiple times. So believe something is definitely not right when used with validation and sj:submit being used inside dialog. Thanks On

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
ok - my observation if I use the sj:submit by itself then the JSON plugin is called only once (confirmed from Chrome developer tool). IF I add the sj:submit inside the sj:dialog - it is called twice IF I add the validation then it is called 6 times it seems like the sj: tags is creating issues

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
its the same action configured ! Best, Muneer On Mon, Mar 14, 2011 at 8:58 PM, satyanarayana katta wrote: > Check if the action is submitted twice! If you are using js submit of the > form explicitly and form tag also has the same action configured. > > Sent from my iPhone > > On Mar 14,

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread satyanarayana katta
Check if the action is submitted twice! If you are using js submit of the form explicitly and form tag also has the same action configured. Sent from my iPhone On Mar 14, 2011, at 6:45 PM, fr...@meruvian.org wrote: > We got current json plugins also have problem parse json > > I think the jso

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread frans
We got current json plugins also have problem parse json I think the json jar is the current issue We modify to use jackson Anyone? The actionmapper using jackson we put in github.com/blueoxygen/cimande /m/ -Original Message- From: Muneer Malik Date: Mon, 14 Mar 2011 19:36:33 To: S

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Brian Thompson
On Mon, Mar 14, 2011 at 8:03 PM, Dave Newton wrote: > On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik wrote: > > Can someone help here? using the JSON plugin - my execute method is being > > called twice. > > So far, it sounds like it's being called twice for some reason. > > Any other information

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik wrote: > Can someone help here? using the JSON plugin - my execute method is being > called twice. So far, it sounds like it's being called twice for some reason. Any other information available? Dave ---

JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
Can someone help here? using the JSON plugin - my execute method is being called twice. Thanks -- Confidentiality Notice --- THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM D

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Jason Ferguson
I've often found InvocationTargetException to be masking something else. Look at every log you can possibly find. On Mon, Mar 14, 2011 at 5:23 PM, abhishek jain wrote: > On Tue, Mar 15, 2011 at 2:46 AM, Dave Newton wrote: > >> On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain >> wrote: >> > Also i

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Dave Newton
If it's a Hibernate error why are you asking here? Dave On Mon, Mar 14, 2011 at 6:23 PM, abhishek jain wrote: > > > On Tue, Mar 15, 2011 at 2:46 AM, Dave Newton wrote: >> >> On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain >> wrote: >> > Also i forgot to add , i dont see this error when running

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
On Tue, Mar 15, 2011 at 2:46 AM, Dave Newton wrote: > On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain > wrote: > > Also i forgot to add , i dont see this error when running on test server, > > Also you forgot to add , when you get the error, > > dave > hey i think this error occured when i execu

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain wrote: > Also i forgot to add , i dont see this error when running on test server, Also you forgot to add , when you get the error, dave - To unsubscribe, e-mail: user-unsubscr...@

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
Also i forgot to add , i dont see this error when running on test server, abhishek On Tue, Mar 15, 2011 at 2:42 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Abhishek, > > > http://download.oracle.com/javase/6/docs/api/java/l

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhishek, http://download.oracle.com/javase/6/docs/api/java/lang/reflect/InvocationTargetException.html - -chris On 3/14/2011 4:26 PM, abhishek jain wrote: > Hi friends, > I am on production and getting this error: > can anyone help me solve, i am u

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread abhishek jain
hi, Whenever i call the url which calls the code, i get this exception. is that what u meant to ask? Do u need code snippets. thanks abhishek On Tue, Mar 15, 2011 at 2:06 AM, Dave Newton wrote: > Under what circumstances? I don't see how we're supposed to be able to > help. > > Dave > > On Mon,

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Dave Newton
Under what circumstances? I don't see how we're supposed to be able to help. Dave On Mon, Mar 14, 2011 at 4:26 PM, abhishek jain wrote: > Hi friends, > I am on production and getting this error: > can anyone help me solve, i am using hte hibernate 3, tomcat 5.5 , struts2, > linux centos 5.x. > >

Re: Jquery plugin sj:tab

2011-03-14 Thread Johannes Geppert
have you seen the example in thw http://www.weinfreund.de/struts2-jquery-showcase/index.action struts2 jquery plugin showcase ? There is an example for enabling disabled tabs. JavaScript Code: $.subscribe('tabchange', function(event,data) { var tab = event.originalEvent.ui.index;

Calling method with parameter from tag.

2011-03-14 Thread Jacob Lester
I'm trying to call a method that takes a parameter similar to the snippet below, but it isn't working and Google is failing me. TEST OUTPUT Any suggestions? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Validate method call validator

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 10:21 AM, Mohamed SIDI wrote: > I wd like to know if in my validate method, I can call et validator rule in > my ActionName-validation.xml. > > Some things like : > . > validate (){ > . > if(condition) >  call a validator rule in ActionName-validation.xml > } Not reall

Validate method call validator

2011-03-14 Thread Mohamed SIDI
Hi all, I wd like to know if in my validate method, I can call et validator rule in my ActionName-validation.xml. Some things like : . . . validate (){ . if(condition) call a validator rule in ActionName-validation.xml } Best wishes --

RE: loading Dropdown dynamically from database

2011-03-14 Thread Jose Luis Martinez Avial
Can you put the chunck of your struts.xml in which the action is defined? -Original Message- From: JavaNoobie87 [mailto:vivek...@enzentech.com] Sent: Monday, March 14, 2011 2:59 AM To: user@struts.apache.org Subject: RE: loading Dropdown dynamically from database Yes there is a method do

RE: struts 2 internationalization problem

2011-03-14 Thread Jose Luis Martinez Avial
It should work right away with that. Check after settint the locale if is correct using : Locale locale = ActionContext.getContext().getLocale(); That should return the same locale you selected. -Original Message- From: sumitjain23 [mailto:sumitjai...@gmail.com] Sent: Monday, March 14,

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Alex Lopez
I think they ment DSL as in Domain Specific Language Em 14-03-2011 14:06, Brian Thompson escreveu: On Mon, Mar 14, 2011 at 7:29 AM, Dave Newton wrote: On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: But for the future I am writing an app where the user can upload a file of data and spec

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Brian Thompson
On Mon, Mar 14, 2011 at 7:29 AM, Dave Newton wrote: > On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: > > But for the future I am writing an app where the user can upload a file > of > > data and specify the input using that printf/scanf pattern description, > and > > output the same data into

Re: Validate filed if filled

2011-03-14 Thread Dave Newton
Or a custom validator (that could be chained with others), sort of a "validateIfFilled" type thing. Dave On Mon, Mar 14, 2011 at 8:58 AM, Paul Zepernick wrote: > If you need to use the XML you might be able to use the field expression > validator.  It probably would be easier to just put it in t

RE: Validate filed if filled

2011-03-14 Thread Paul Zepernick
If you need to use the XML you might be able to use the field expression validator. It probably would be easier to just put it in the validate() though as suggested. http://struts.apache.org/2.0.14/docs/fieldexpression-validator.html Paul -Original Message- From: Paweł Wielgus [mai

Re: Jquery plugin sj:tab

2011-03-14 Thread Dave Newton
Use plain text. It probably doesn't do anything--I haven't looked at the implementation, but if it's like a lot of other S2 tags, it'd be a base tag attribute for plain HTML tags that don't have any meaning for Dojo/jQuery/etc. tags since those require framework-specific impls. IMO for anything b

Re: Jquery plugin sj:tab

2011-03-14 Thread roger
Lets try that again, it looks like the nabble interface I'm using doesn't like < and > tags. The question was "what does actually do? Regards -- View this message in context: http://struts.1045723.n5.nabble.com/Jquery-plugin-sj-tab-tp3556130p3556205.html Sent from

Re: Jquery plugin sj:tab

2011-03-14 Thread roger
Sorry - don't quite know what happened there. What should have appeared was "what does actually do?" Sorry -- View this message in context: http://struts.1045723.n5.nabble.com/Jquery-plugin-sj-tab-tp3556130p3556202.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: > But for the future I am writing an app where the user can upload a file of > data and specify the input using that printf/scanf pattern description, and > output the same data into new file with a new format according to a secocnd > pattern. It's

Re: Just a stab in the dark

2011-03-14 Thread Adam Hardy
Martin Gainty on 14/03/11 11:25, wrote: this is a bit OT but it's the weekend and I have a question which I am desperate to answer and my googling skills are no match for it. Does anyone know where I can get a Java implementation of scanf? Does java.text.MessageFormat.parse() perhaps meet at le

RE: xclude parameter from URL tag

2011-03-14 Thread Ilya Kazakevich
Thanks. Looks like it would not help me:( I will try to explain my problem: When user navigates through my application she may set some parameters (like category, platform, tags and so on). This information is saved in GET parameters. I like it. All information is stored in url from-the-box when

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Adam Hardy
A micro-DSL ? I should know this stuff, I think my brain is going. What's DSL in this context? Re: needing all of scanf: not right now I don't need it. I actually need anything like last week already - spent too long staring at tv scenes of exploding nuclear reactors and wasteland where towns

RE: Just a stab in the dark

2011-03-14 Thread Martin Gainty
MG>Matt and Adam > Subject: Re: Just a stab in the dark > > Matt Meola on 14/03/11 00:04, wrote: > > On 03/12/2011 05:57 AM, Adam Hardy wrote: > >> Hi List > >> > >> this is a bit OT but it's the weekend and I have a question which I am > >> desperate to answer and my googling skills are no matc

[OT] Re: Just a stab in the dark

2011-03-14 Thread Dave Newton
Do you really need all of scanf's functionality? If I were approaching this I'd probably consider writing some sort of transform between scanf functionality and an underlying implementation; a micro-DSL, more or less. Dave On Mon, Mar 14, 2011 at 7:15 AM, Adam Hardy wrote: > Matt Meola on 14/03

Re: Just a stab in the dark

2011-03-14 Thread Adam Hardy
Matt Meola on 14/03/11 00:04, wrote: On 03/12/2011 05:57 AM, Adam Hardy wrote: Hi List this is a bit OT but it's the weekend and I have a question which I am desperate to answer and my googling skills are no match for it. Does anyone know where I can get a Java implementation of scanf? Does

Re: Jquery plugin sj:tab

2011-03-14 Thread Dave Newton
What does what do? Dave On Mon, Mar 14, 2011 at 6:56 AM, roger wrote: > What does  do? I was expecting it to prevent a user clicking on the tab and > displaying its contents. > > I'm trying to develop a page where each tab represents a step in a > wizard-like data entry. I want to be able to dyn

Jquery plugin sj:tab

2011-03-14 Thread roger
What does do? I was expecting it to prevent a user clicking on the tab and displaying its contents. I'm trying to develop a page where each tab represents a step in a wizard-like data entry. I want to be able to dynamically enable/disable each tab so that, depending on the data input so far (and

Re: Validate filed if filled

2011-03-14 Thread Paweł Wielgus
Hi Mohamed, i would do it in actions validate method, not in xml. But that's just my oppinion. Best greetings, Paweł Wielgus. 2011/3/14 Mohamed SIDI : > Hi all, > > In my Web User Interface, I have a field witch is not a mandatory filed, for > this filed I want to define a validation rule in my

Validate filed if filled

2011-03-14 Thread Mohamed SIDI
Hi all, In my Web User Interface, I have a field witch is not a mandatory filed, for this filed I want to define a validation rule in my ActionName-validator.xml only when it was filled, somneone can help to do that BW

Re: Code Help:CRUD example

2011-03-14 Thread JavaNoobie87
The thread is followed up here. Please address this post . http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-td3555885.html -- View this message in context: http://struts.1045723.n5.nabble.com/Code-Help-CRUD-example-tp3483604p3555951.html Sent from the Struts - User m