Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Bhawna Gupta

Greenhorn
+ Follow
since May 28, 2013
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 Bhawna Gupta

Hi ,

Thanks Heena , Winston and Roger Sterling.

Actually , my concept was not clear.Due to which I faced the problem to understand the concept of wait and notify.

Thanks for your help.
6 years ago
Hi All,

Can anybody explain me wait and notify with real scenario example in java . I read many example on the internet but still not satisfied.
Thanks in advance.

Points which is not cleared.
How notify and wait are called on the same object?
Example: if there is 2 thread e.g t1 and t2
t1 going into waiting state because t2 want to use the same monitor . It leave the monitor.
After that , t2 has done its work and notify to t1 that you can use that monitor.
Then t2.notify() is informing t1 about the monitor that it is free.


If i give incorrect explantation .Please correct me .

Thanks.


6 years ago
Hi,

When i added id of same button on partial trigger to disable it.Like,
<tr:commandButton text="Do Something"
id="myButton"
partialSubmit="true"
partialTriggers="myButton"
actionListener="#{myBean.doSomething}"/>

Then some of my javascrit function did not call .
But when i removed partialTriggers="myButton" from commandbutton then js function called.Do not get this point.
Anybody who know this answer please help me.
Thanks in advance.
6 years ago
JSF
Hi Jaikiran,

On Service level , there is one Hibernate Query through which data is fetched from Teredata . On Jsp level, proper encoding style is used. But my concerned to fetch the data from teredata. Is there any mapping or property that we should add in our project regarding Teredata for encoding style?

One thing which am not clear . When batch process run to store the data in Teredata then all french character will store . If there is any encoding problem then french character will not store properly. So,why we are facing this issue only on fetching.

Teredata is new for me. So, please help me .
Thanks in advance.
6 years ago
Hi,

Sorry Paul for not clear my point at this form.
Actually , i am fetching data from teredata at service level then displaying through jsp page. But when data fetched from teradata DB . I checked at that point of time.I got junk charcter instead of french data.Due to which jsp page also showing junk character.
Not able to share code at this form.
6 years ago
Hi All,

I am facing one issue regarding Teradata i.e when i am fetching data from teradata and data contain french character then french character displayed in junk form .In teradata DB , data with french character stored properly. Data is stored into teradata DB through batch process . I tried to figure out. But not getting any progress.
Anybody who know this answer please help me.
Thanks in advance.
6 years ago
Hello Friends,

I have doubt regarding tiles definition.

In web.xml,we add the entry of listener class for tiles.In which we add the param name is TilesDefinition having value is /WEB-INF/tiles.xml .
Like,
<listener>
<listener-class>
org.apache.struts2.tiles.StrutsTilesListener
</listener-class>
</listener>
<context-param>
<param-name>tilesDefinitions</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>


But i do not understand , can i write another name here may be abc. Or if we use tilesDefinitions only.Then what the reason behind this.Is there any definition giving for that.
6 years ago
Hi Steve,

You clear all my doubts.Thanks for giving the full explanation.

Thanks
7 years ago
HI,

It means the answer of my question "My Question is ----I want some information will retain on that page after refreshing a page. Then that value will stored in page scope or request scope " is i will store that information on request scope which i want to retain on refreshing.

Thanks
7 years ago
HI ,

Refresh command do not send the request to the server because its cookie generated on our system.
Request Scope is used ----when we want to forward our request on the new web page.

My Question is ----I want some information will retain on that page after refreshing a page. Then that value will stored in page scope or request scope.
I think request scope is used when we want to open different web page and page scope is used --when we want to open same page(in case of refresh also).

If i am incorrect .Please correct me and give the answer of my question.


Thanks
7 years ago
HI Steve,

Still i have some doubts.Can you please explain through example.
Thanks
7 years ago
Hi all,

I have doubt related refresh command. When we refresh web page then this is a new request.But this request come under page scope or request scope.

Thanks in advance.
7 years ago
HI Swastik,

I am not talking about my application. I refered that example http://www.mkyong.com/struts2/struts-2-file-upload-example/ which you suggested.
I refered whole example .That worked very nice.But when i try to add this line only
String filePath = servletRequest.getSession().getServletContext().getRealPath("/"); in action class.I got 404 error.

But ,now that example working with the above line also.
I did small mistake in struts.xml ie i didn't add <interceptor-ref name="basicStack"></interceptor-ref> .
When i added this line , my new app was working and file uploaded in server also.

action in struts.xml file:




FileUploadAction2 class:



Thanks Swastik for your help.

7 years ago
HI,

Thanks Swastik.It's working.
But i want to ask someting ie when i add

String filePath = servletRequest.getSession().getServletContext().getRealPath("/");

this line in execute method of action.

first web page opened but after that i got 404 error.When i removed this line,code worked without any error.
Could you please suggest me.Why this error come?
Thanks in advance.
7 years ago
HI,

[6/11/13 17:18:53:942 IST] 00000027 SystemOut O Server path:C:\WorkSpace_Struts\StrutsEx7\DemoFileUpload\WebContent
[6/11/13 17:18:53:942 IST] 00000027 SystemOut O FileName:null

I got this message in logs.
filePath = Server Path
this.myFileFileName = FileName

FileName is null means interceptor don't get file or filepath.
7 years ago