Yogesh Mathur

Greenhorn
+ Follow
since Apr 18, 2002
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Yogesh Mathur

Hi All,

I am working on an application where the requirement is to FTP files from the WAS 5.x server to another AIX server. I am not allowed to use any third party APIs due to various constraints and hence I have been left with the option of using sun.net.ftp.FTPClient for the FTP process.

I can see the sun.net.ftp package in my Websphere runtime environment as part of the core.jar archieve. Does anyone have an idea if this package has been incorporated in WAS 5.x for any specific reason?

I am basically trying to figure out weather Websphere is going to keep the sun.net.ftp package in the runtime environment or I am at risk of losing it in future.

Any help/suggestions to resolve the FTP issue is greatly appreciated..

Thanks in advance,

Yogesh
12 years ago
Still waiting for some suggestions.

Kindly reply for clarifications too if you find the question ambiguous ...
13 years ago
Hi,

We are making a web application which incorporates more that 1 war's (web archive). The application is controlled by a Login module (a seperate war). The user has to choose the application he wants to log into from this login page. Based on his choice, the control needs to be transferred to the respective application (seperate war for each application).

I am not sure how to pass the control from the login module to the other application as both have different struts-config's and hence the mappings are different.

Waiting for suggestions...

Thanks in Advance,

Yogesh

[ June 14, 2004: Message edited by: Yogesh Mathur ]
[ June 18, 2004: Message edited by: Yogesh Mathur ]
13 years ago
Hi All,

I am stuck with a very peculiar problem in STRUTS...

I am making a web application where the menu's are generated dynamically by loading them from database.

I have a menu table, from where I get the menu id, menu name, menu level and parent menu flag.

Menu ID is primary key (DB2 TIMESTAMP), Menu name is name of menu, menu level describes what level should the menu be displayed at. For ex: if menu level = 0, it is a top level menu. It can have its children menu with menu level = 1.
Similarly menu level 1 can have children with menu level = 2

I need to display these in order:
first the top level menu (menu level = 0)
below it its children(menu level = 1)
second level menu(menu level = 2)

another top level menu (menu level = 0)
1st level children (menu level = 1)

..... and so on ...

I am getting the list of menu's, sorted in the order they have to be displayed in a vector with the four fields as menu id, menu name, menu level & parent menu flag. Parent menu flag is to indicate weather this menu has got children or not, so that I could know that I have reached the end of a tree and have no children menu's further.

I have to iterate through this vector in my jsp page and display the menus in indented format based on their level..

Ex: Top Level Menu 1
First Level 1
First Level 2
Second Level 1

Top Level Menu 2
First Level 1
Second Level 1

.... and so on...

I have to put tabs based on the menu level, for 0 level no tab, for 1 level 1 tab, for 2 level 2 tabs .. and so on..

I need some solution as to how can I achieve this using STRUTS ....

Eagerly waiting for suggestions,

Thanks in Advance...

Yogesh
13 years ago
Hi James,

Thanks a loooooooooooooooooooooooot !!

That was exactly what I was looking for !!
Am able to sort the menu's now without recursion.

Thanks a lot Peter,

I am now working on your idea to improve on this implementation.

Thanks to one and all who tried to help me !!

Cheers
13 years ago
Thanks a lot Peter!

I will definitely try that out as it looks quite an interesting way and I have not explored the XML option too much before...

Right now I am having a time crunch, hence in need of a quick fix for this problem. I am more inclined towards finding a solution at database design level, that makes building the menu tree simpler while coding..

Waiting for suggestions...
13 years ago
Hey Paul,

Thanks for the quick response!!

I am still struggling with the recursion logic and you have made my belief stronger that I am not going to get it right anyway

I can redesign the schema, but I need some suggestions how to go about it so that I will not have to worry about the design later..

Badly in need of Suggestions, awaiting response !!
[ June 07, 2004: Message edited by: Yogesh Mathur ]
13 years ago
Hi All,

I am facing a peculiar problem (due to bad database design, I assume) and need some help in logic building.

We are making a web application where the menu's to be dislayed on screen are generated dynamically based on the menu details stored in a table "MENU". The fields in this table are menu id (primary key, we are using timestamp), menu level and parent id.
Menu ID is the primary key and is generated whenever a new menu is created. We are using DB2 UDB's TIMESTAMP for this.
Menu Level describes what level of menu is it. For top level menu its value is '0' (zero). For 1st level submenu, its value will be '1' and soon.
(Example: We have a menu called Master Tables, which is a list of all master tables, hence its menu level is '0'. This master table has 3 submenu's "User", "Admin" & "Client", so these sub menus have menu level '1'. If we add a sub menu for "User" master, it will become a level '2'.

The parent id field has the menu id of its corresponding parent. For menu level '0' this field is null as it is the top level menu. Foe menu level '1' this field will have the menu id of its parent menu ie one of the '0' level menu's. Similarly, a menu level'2' will have the corresponding menu level '1' id in its parent id field.

I need to display this menu in the proper parent-child hierarchy.

ie, 0 level - its corresponing 1 level - its corresponing 2 level... and so on.. this should repeat for all 0 levels having their respective tree of 1 level's and 2 levels inside (can go upto any level)...

I need a solution for this problem either programatically or at the database level. I strongly believe programatically this requires some kind of recursive loop where it should iterate through the entire list and find all childrens of a top level menu, again and again to generate the sorted list of menus in the order in which it has to be displayed...

Awaiting response,

Thanks in Advance...

Yogesh
13 years ago
Hi All,
We have been following a low level design document format which to me is very ancient and outdated. I would be thankful if somebody could provide some guidelines or provide with a template regarding how to go about a low level design document for a mid size enterprise application to be coded using MVC architecture under STRUTS framework... Even general guidelines are welcome..
Thanks in Advance,
Yogesh
Thanks a lot Corey & Valentin, got your point
Hi All,
I recollect that when sun had launched J2SE 1.4 beta, they also had a free certification for the beta version for a limited uration to analyse the test takers response and come up with the actual test. Anybody aware if they have similar offer for J2SE 1.5 beta ??
Thanks in Advance,
Yogesh

Originally posted by Yogesh Mathur:

I thought Entity Beans can be Bean Managed also. As far as Session Beans are concerned, I think only statefull session beans could be stored in Persistent storage.
Can anybody throw some light weather Session beans (Statefull) could be Bean Managed?


I am sorry. I am new to EJB. I got confused between Persistence and Transactions. Actually its analogous- session beans can have CMP, CMT & BMT whereas entity beans can have BMP, CMP & CMT.
Sorry for such silly mistake.
Hi!
I have a very fundamental doubt.
Can we have a method definition in our Bean's Implementation class without declaring it in the Remote Interface & Home Interface. If yes, that means our Bean Class will have this method, but clients won't have access to this method, indeed makeing it a useless method (or, is it usefull in some cases?)
Please Clarify...
Thanks in advance..

Originally posted by RaviShanker Tippa:
To be Precise,
If the transaction is of type Bean Managed,then u can use UserTransaction.This apply only to sessionBeans not Entity Beans as they always are COntainer Managed Transactions.


I thought Entity Beans can be Bean Managed also. As far as Session Beans are concerned, I think only statefull session beans could be stored in Persistent storage.
Can anybody throw some light weather Session beans (Statefull) could be Bean Managed?
Hi all,
Its nice to see you guys helping others in every possible way. Thanks a lot for all your help and info. I guess i missed the bus.
Again Thanks for everything!
Yogi