Vallaru smitha

Ranch Hand
+ Follow
since Aug 19, 2008
Vallaru likes ...
Hibernate Firefox Browser Tomcat Server
Merit badge: grant badges
For More
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vallaru smitha

I have textfield


I have write a test condition with name value. I have tried set it but it is not returning any value



Any one please suggest how to get that value.

Thanks
13 years ago
hi,

I want all the child records with a compnayid and also parent records different company id. ie. a jsp will display all the records not belong to his company and he can select them and that gets stored with his company id. So next time when displayed it should the already selected ones and all the records from the he does not belong. I tried writing something like this but i get an ewrror


DEBUG [http-8080-Processor22] (ErrorCounter.java91) - throwQueryException() : no errors DEBUG [http-8080-Processor22] (HqlSqlBaseWalker.java111) - select << begin [level=1, statement=select] DEBUG [http-8080-Processor22] (FromElement.java129) - FromClause{level=1} : com.tai.domain.Activities (a) -> activities0_ ERROR [http-80any80-Processor22] (ErrorCounter.java56) - Path expected for join! DEBUG [http-8080-Processor22] (ErrorCounter.java51) - Path expected for join!

Any help is appreciated

Thanks
Hi,

have 2 tables for which i have created a pojo with required fields and running hibernateUtil.createsql query. Below is my query



but I am getting a nullpointer when i try. Could any one please suggest me where I am doing wrong or if there is any other way.

thanks
hi,

can anyone please share with me one-to-one relationship mapping struts2 example. I am kind of struck, did all my homework but no luck.

thanks
13 years ago
Hi Nitin,

i have followed your code but still i am not getting value, here is what i wrote

<s:iterator value="activityList" id="myact" status="activityStatus">

<s:iterator value="%{favorites}" status="myStat">
<s:checkbox name="myact[%{#activityStatus.index}].favorites[%{#myStat.index}].accFavorities"/>
</s:iterator>

But check box is not getting displayed.

Is there any other way it could be done. I am using one-to=many relationship between activity and favorites.

thanks
13 years ago

Please check the file permission on that folder.

13 years ago
this is how I am tyring to display in jsp

<s:iterator value="activityList" status="activityStatus">
......
<s:iterator value="favorites">
<td class="viewCell"><s:checkbox id="accFavorities" name="accFavorities" /></td>
</s:iterator>
</s:iterator>


it should display an empty check box if the values are not in favorites table.

when we click submit here then it goes and inserts in to favorites table.

Anybody please advice, I am kind of struck.

Thanks
13 years ago
Hi,

I am using struts2 and on2-to-one hibernate mapping
In parent class



child class


In Daoimple i was retirve both child and parent class values



I am able to retrieve the data only when the child table has data. Is there a way we could retrive data even if there is no data in child table for that particular id.

i am unable to save the data too.


in my action class





can anyone please help. please point me to any example ifpossible.

Thanks
13 years ago
Resolved:

was having a redundant jar file.

Thanks
13 years ago
Thanks Sriram.

I have tried the link you mentioned but still get the same error.

I think its not specific to javax.mail but Gerneric. Google but did find any specific answer.

Does anyone have an idea on it.

thanks
13 years ago
Hi,

i am calling a mail function from my action class but getting below error

java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)


below is code i am using



Can anyone tell me the probem with code

Thanks
13 years ago
Hi,

thanks Raza.

I am not able to pass the date from jsp to javascript . Below is how i am displaying the data



Can you please suggest me how to pass the date to javascript

i also tried using compound statements but they are not working.



But its always going to else loop.

Any suggestions...

thanks












13 years ago
Hi

sorry, from my below post its not textfiled but its field with date .

the date and the hyperlink with edit are displayed on the screen. The edit should be enable only when date ranges between Jan 2010 to Dec 2010. How can that be achieved.


Any help is greatly appreciated.

Thanks
13 years ago
thanks Joe.

i did the same but

SimpleDateFormat formatter = new SimpleDateFormat("mm/dd/yyyy");
String s = formatter.format(dateValue);
dateValue(formatter.parse(s));

but I am getting an output as
12/12/01 instead of 12/12/2001

is there anyway we could get complete year. I tried all typed formatting.

thanks
13 years ago
Hi,

we have a textfiled with date and hyperlink edit. The edit hyperlink should be enabled only when the date is between jan 2010 to Dec 2010 or else disabled.

can anyone help me how to check the datereange using <s:if > and also how pass that value to javascript to display an alert msg


Thanks
13 years ago