steward frank

Greenhorn
+ Follow
since Mar 22, 2004
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 steward frank

Everything works now, i just restarted tomcat and the url encoding took effect. silly tomcat, dont know why i had to restart tomcat for url rewriting to take place but nevertheless, it works now, Thanks David for your reply.
16 years ago
Hi all,
I am facing a problem where i am unable to maintain a session in a terminal services environment. Basically, the enviroment used to access my web application is citrix. So when i am on one terminal, and i surf the website, every form submission is creating a new session for me. I have already used response.encodeURL() to make sure that if cookies cant be used then the jsessionid will be appended at the end of the url but it does not work.It works perfectly fine on my local machine but it just cant work when i access the website thru a terminal(virtual desktop, that is). I have tried checking my mail on mail.yahoo.com and there isnt any problems. Can anyone tell me what i am not doing rite?

Best Regards
16 years ago
Thanks man!!! You are a lifesaver!!
16 years ago
Hi there,
Does anyone know if there is any good reliable/popular java open source pdf library out there? i have searched on a few but just thought i would ask others who have experience in pdf reporting generation tools. Thanks in advance!!!


Best Regards
16 years ago
Hello All,
Can anyone tell me of any good or popular open source java based groupware/collaborative web application out there? Thanks in advanced!!


Best Regards
Hello All,
Can anyone tell me of any good or popular open source java based groupware/collaborative web application out there? Thanks in advanced!!


Best Regards
16 years ago
Hi there,

I am posting this problem again becos i have posted it before at

https://coderanch.com/t/48802/Struts/Missing-request-parameters-after-servlet

and cant seem to get an answer to this problem, basically, I am currently using struts and am using action chaining, however i realize that when a request comes in with parameters , the corrresponding action class gets activated and then it forwards to another action class , then that action class forwards to a jsp page, now the thing is when it reaches the jsp page, the request parameters mysteriously goes missing, i got a null, but i am able to retrieve those parameters in the first action class. am i missing something here? or is this an inherent problem in struts? is so, how do i work around it? putting the request parameters as attributes seem like an ugly workaround, can someone enlighten me? Thanks!!
16 years ago
Hello John Carnell,
Yes, thats what i am doing, hey!, how do you know? oh yeah of course you do , you wrote the book!! hehe, so is this a known issue? how can i solve this problem? Many thanks!!!

Best Regards
16 years ago
Hi there,
I am currently using struts and am using action chaining, however i realize that when a request comes in with parameters , the corrresponding action class gets activated and then it forwards to another action class , then that action class forwards to a jsp page, now the thing is when it reaches the jsp page, the request parameters mysteriously goes missing, i got a null, but i am able to retrieve those parameters in the first action class. am i missing something here? or is this an inherent problem in struts? is so, how do i work around it? putting the request parameters as attributes seem like an ugly workaround, can someone enlighten me? Thanks!!


Best Regards
16 years ago
Hello Fletcher,
Thanks for your input it definitely gave me something to chew on. but a couple of follow up questions.

"If this role has access to this form element, display it, otherwise put in a hidden field (avoids the Javascript null problem you had earlier)."

regarding the above: what if the form element is a select element, how am i going to make it hidden? what if this select element has options to it and the javascript references those options? well i could check for null for those elements, to check if they are in the form or not but wouldnt that make the javascript more complicated with checks for null here and there?

is there a better way?
16 years ago
Hi there,
I have posted this message at General Java itermediate but it seems that there is no one who is able to answer me there so i just tot that i would try out here. I would just like to ask anyone out there who has ever programmed an application that allows an administrator(through a web interface) to control which page or option or field of a form are available and whether they are read only , editable or not, whether a user has the rights to delete or not based on the authorizations a person is given. I am sure there are applications out there that have been developed with such features but how messy or complicated were they?

currently, the only thing i coud think of is using custom tags and surrounding the element of a form and the custom tag will check if the current user as rights to element of this form, if the user does, the custom tag will display the element but if it doesnt, it will not. but however, this approach also has its disadvantages: what if i have client side scripting that references this element and the user does not have acccess rights to this element, wont that result in a javascript error? or do i have to surround the script that affects that element with a acl custom tag as well? if that is the case, wouldnt that be very messy? in such an approach, i think i would have to give a unique identifier to each and every element, page, form, and that information would be stored in the database but i think that would be extremely hardcoded cos the application needs to know the link between the identifier in the database and the element in form and for that to happen, the identifier of the element would have to hardcoded into the jsp page for example.

to programme an application with page control(controls which page a user can see or not) is not too difficult but to not only control that page access and also the visibility of those fields in that page and its properties such as editable or not, i think it might be quite a headache

if i were to store all these access control list information in a database, how would the information be organized ?

i have come across applications that store references to elements to a form in a page as a "page.form.element" string so that at first glance, it becomes immediately recognizable in the database to a human to which element in the form does this permission belong to and the application also uses this string(the identifier) to match its permissions according to the the user rights.

is there already a design pattern out there already for this issue? I hope seasoned developers might be able to give me some pointers or shed some light into this issue cos i think a lot of people might faced the same task and go about it in different ways, some better than the others , some worse

Thanks!!!
16 years ago
Hi there,
I would just like to ask anyone out there who has ever programmed an application that allows an administrator(through a web interface) to control which page or option or field of a form are available and whether they are read only , editable or not, whether a user has the rights to delete or not based on the authorizations a person is given. I am sure there are applications out there that have been developed with such features but how messy or complicated were they?

currently, the only thing i coud think of is using custom tags and surrounding the element of a form and the custom tag will check if the current user as rights to element of this form, if the user does, the custom tag will display the element but if it doesnt, it will not. but however, this approach also has its disadvantages: what if i have client side scripting that references this element and the user does not have acccess rights to this element, wont that result in a javascript error? or do i have to surround the script that affects that element with a acl custom tag as well? if that is the case, wouldnt that be very messy? in such an approach, i think i would have to give a unique identifier to each and every element, page, form, and that information would be stored in the database but i think that would be extremely hardcoded cos the application needs to know the link between the identifier in the database and the element in form and for that to happen, the identifier of the element would have to hardcoded into the jsp page for example.

to programme an application with page control(controls which page a user can see or not) is not too difficult but to not only control that page access and also the visibility of those fields in that page and its properties such as editable or not, i think it might be quite a headache

if i were to store all these access control list information in a database, how would the information be organized ?

i have come across applications that store references to elements to a form in a page as a "page.form.element" string so that at first glance, it becomes immediately recognizable in the database to a human to which element in the form does this permission belong to and the application also uses this string(the identifier) to match its permissions according to the the user rights.

is there already a design pattern out there already for this issue? I hope seasoned developers might be able to give me some pointers or shed some light into this issue cos i think a lot of people might faced the same task and go about it in different ways, some better than the others , some worse

Thanks!!!
16 years ago
Hello everyone,
I am targeting at the websphere application server cert. There were 2 I am interested in :
IBM Certified Specialist - IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms, V4.0
IBM Certified Enterprise Developer - IBM WebSphere Application Server, Advanced Single Server Edition for Multiplatforms, V4.0
I am a developer so I am not really into the administration of the app server, just to let you know. Because the CED requires 4 test, 1 of which(SCJP) , I already have but I can't really afford the time or money for the other 3 tests. So I have decided to settle for the CS cert which only requires 1 test. However, there is one thing that disturbs me, both the CS and CED are for v4.0 , but I know that the latest version is 5.0. And I have also found out IBM has actually retired v4.0 certifications some time last year if I am correct but has since brought it back due to popular demand. I seek to obtain the latest versions of the certifications but it seems that I can't do so in this case because I have already emailed IBM about their v5.0 CS App Server cert but they replied that for this certification , v4.0 is the latest. Now what I would like to understand from anyone available, should I be taking up any WSAD v5.0 certifications? I mean after all these are certification for an IDE and not the app server, or perhaps there is something that I do not know? The only v5.0 certs that I could find on the IBM website are those for WSAD v5.0 or for Administration of Websphere App server v5.0. May I ask what value is there in a WSAD cert even if it is for v5.0 if it is not really necessary for development and deployment into the app server since the app server comes with its Application Assembly toolkit to deploy into the server? and the IDE could be JBuilder or something else?
unless there is something about WSAD that I am not aware off such as tight integration with the app server in v5.0 and up?
I hope someone can shed some light for me on this issues because I am a little confused about what is what. Would appreciate your quick response. Thanks!!
Hi there, I would just like the official word on this matter, can create methods in stateful session beans/entity beans home interface be overloaded like this?
create(String name) throws ...
create(int studentId) throws...
or can the home interface just contain this:
createStudent(String name) throws...
without any default create() or create(args) in the home interface?
or must there be at least one create() or create(args)? Please bear in mind that I am refering to stateful session beans and entity beans here. Thanks!!
Hi there, I would like to find out what is the purpose of <ejb-ref> in the DD. I understand it is used to state which EJB the current bean is referencing but the thing is if the current EJB references many other EJBs in the code, does it mean that for every referenced bean, there got to be a <ejb-ref> equivalent in the DD? if so, would it also mean that everytime I add or remove a reference to another EJB, I would also need to update the DD?