Pooja Shah

Greenhorn
+ Follow
since Jan 05, 2009
Pune
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pooja Shah

Hi,

I am trying to write a "NOT IN" constraint using JPA Criteria.
Ive tried something like this -
builder.not(builder.in(root.get(property1)));
though i know it will now work.
In the above syntax, how can i add the collection/list against which "property1" will be checked?

Any suggestions will help.
Hi

I am trying to migrate some existing hibernate .hbm files to JPA annotations.
Is there any way i can represent the collections, list, bag and set in JPA.
I cant find any annotations corresponding to those used in the hbm files.
Are there any attributes in the relationships that might help?

Any ideas will help.
I have a textfield on whose onChange event i display an alert.
The alert does get displayed but not immediately after the edit in the textfield.
After editing, if i click on the page, or tab to the next field, it gets displayed.
Is this how it is supposed to be? More like onBlur...
9 years ago
Thanks for the replies... I ultimately did this using the <s:doubleselect> tag.
9 years ago
I am new to Struts. I need to implement dependent drop down boxes.
I do not want to use Ajax, and hence have decided to get this done using Javascript.
I want to know if in my Javascript function, i can specify the method of the action to be called.
If not, then how do I differentiate between the submit from Javascript(when the 2nd drop box is to be populated), and the form submit(when, based on the 2 selected values of the drop down boxes, a file will be downloaded).
Any suggestions will be appreciated!
9 years ago
I have 2 logging files. I have defined two appenders for the 2 files. In a class, if i need to output few logs to one file, and few to the other, do i need to have 2 logger instances. Is there a cleaner way of achieving this requirement? Or is there some log4j configuration that will help me?
I have a object TrunkInformation.
This contains an arraylist of the object Providers.
Provider has a String field name;

How can i get the list of names to be displayed in a combo box.
I have tried various ways but get the following exception always -

Expression parameters.name is undefined on line 35, column 48 in template/simple/combobox.ftl. - Class: freemarker.core.TemplateObject
File: TemplateObject.java
Method: assertNonNull
Line: 124 - freemarker/core/TemplateObject.java:124:-1

Any suggestions?

Some of the options i have tried -


9 years ago
Hi,

When making an update using merge, i get the error -
Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while commiting the transaction

Inserts and deletes work fine.
The class is as follows -

Any idea as to what is happening?
Thanks for the response.
However, the property that I want to populate is a list.
The example shows primitive types.
9 years ago
Hi,

I am trying to populate a list within an iterator.
The list i am trying to populate is different from the one i am iterating over.
The code listing is as below -


I have tried several variations but none seem to work.
9 years ago
Just started with struts, and facing the same problem as Lela.
Any suggestions ?
9 years ago
Thanks F Malin!!
It turns out the problem was in the classloading sequence.
But now, I get a SocketException... although my server is started.
I had select SOAPPort 8880 on my Websphere server. So i selected the RMI port 2809.
But the same result.. any ideas ???
10 years ago

Hi,
I am trying to access a datsource from a standalone application.
I am using websphere 6.1.
My code is as follows -

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:8880";);
Context initialContext = new InitialContext(env);
DataSource ds = (DataSource)initialContext.lookup("jdbc/icareSouthOracle");
System.out.println("Hi...."+ds);
}
catch (NamingException e) {
e.printStackTrace();
}

I am getting an exception -
Exception in thread "main" java.lang.NoSuchMethodError: com/ibm/ws/bootstrap/WSLauncher.isZOS()Z
at com.ibm.ws.orb.GlobalORBFactory.readProperties(GlobalORBFactory.java:166)
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:85)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:174)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:97)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:73)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:386)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:305)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:375)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:113)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:428)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at MySample.main(MySample.java:29)

Please can you tell me what exactly is going wrong here.
10 years ago