Grace Phone

Greenhorn
+ Follow
since Sep 29, 2011
a person who loves to learn more about technology.
Singapore
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
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Grace Phone

I want to show datetimepicker for every row of display tag table.
I use the following code.



But for now, I can only see it at the very first row.
How can I modify to display datetimepicker for every row of display tag table?
5 years ago
so simple the solution is.. just the popup window and , in here just target the iframe name of the parent window.

all works perfectly
6 years ago
I have pop up window , in which to upload an excel file of adding new users. After clicking the button and successfully added the users into DB, I want to close the pop up window and refresh the parent window to see the updates. In Parent Window, it shows the list of users.

How can I handle all of these events and steps in Struts2 and javascript?


I want to display some messages of how many users added in parent window too. How can I pass all those info by action?

Now the problem is when I successfully uploaded and added users, the popup window displays the list of users and I have two window opened.

Thanks.

StackOverflow: http://stackoverflow.com/questions/7644682/close-pop-up-window-and-redirect-to-parent-window-in-struts2
6 years ago
Finally I fix it just by adding which is an action just to display all the list.

Thanks to the following link:
http://www.coderanch.com/t/53098/Struts/display-tag-sorting-Struts

Thanks.
I have display tag like this.



I got the ArrayList of the data from Session.

The problem is whenever I click to sort the Organisation Name column, it automatically performs the last action. For example, I add a new organistation, then I back to the list. And I click to sort, then adding of a new organisation perform again.

When I check the URL on the sortable column, it is pointing to the last action (Add action ) URL. If last action is delete, it is pointing to Delete action. Second time click on sortable column is OK, it works well.

But just first time straight back from another action, sorting is duplication the same action. How can I overcome this problem?


Thanks ahead.

Ref: http://stackoverflow.com/questions/7630622/display-tag-sorting-duplicate-the-last-action-performed-on-the-page
Thanks for the reply.
I used something like that.



first I useand it gave me jasper exception.

So when I use,, it works well.

Reference: http://stackoverflow.com/questions/7606599/switch-case-with-display-tag

Thanks to all
I want to display various data in Display Tag column according to what I get from Session.

How can I integrate switch case with display tag ? I want to display AAA if the unit value I get from session is 1 etc.

Here is what I want to do.


Thanks ahead.

Here is the question at Stock Overflow. http://stackoverflow.com/questions/7606599/switch-case-with-display-tag
I agree with this because I faced similar problem because there was session=false directive declared in common page used by my page. It gave me headache over hours. Then I awared of the stack trace telling me no session in this page. When I enable it session=true and everything works well.

It might work well if you use like this. But when using sessionScope, it gonna give you session not found error.

Thanks to this link http://stackoverflow.com/questions/4730790/problem-with-session-attributes-in-jsp-el-using-spring-mvc

Cheers !

Bear Bibeault wrote:That error means:

jsp.error.page.noSession=Cannot access session scope in page that does not participate
in any session

For some reason, your page has no session. You need to figure out why. What declarations do you make for the page?

6 years ago
JSP

Swathi Ram wrote:Thanks for all the help.

I just had to access the value from the table id. And it works.

<display:table name="offices" requestURI="" pagesize="${row}" sort="list" id="jobResults" class="candSearchResults" >
<display:column><s:checkbox theme="simple" name="checked" fieldValue="${jobResults.office.officeid}"/></display:column>

</display:table>



Thanks for the quick fix.
I do like this to access the value into combo box using Table id.
Cheers.
6 years ago