Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!

Ruchi Kumar

Greenhorn
+ Follow
since Feb 16, 2005
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 Ruchi Kumar

Hi,

We are creating a J2EE application, working with the struts framework, generating a pdf file using XML, XSLT, fop.

� While opening the file from the local box (using Weblogic server 8, OS: Windows 2000), the file is opening and also getting saved properly.
� While opening the file from the development server(Weblogic server 8, OS: unix box):
  • On the IE browser, the file is not opening. It opens the Adobe Acrobat reader, appears as if it will open the file, but gives the following error message: "There was an error opening this document. The file does not exist." The strange part is that it is successfully saving the same file.
  • On the Netscape browser, the same file from coming from the server hosted on the unix box, is opening properly. Hence, the issue is not related to case of the path etc.


  • Has anybody come across this issue. Can you please suggest what could be done to fix the same. Thanks in advance.

    Regards,
    Ruchi
    Hi,

    We are creating a J2EE application, working with the struts framework, generating a pdf file using XML, XSLT, fop.

    � While opening the file from the local box (using Weblogic server 8, OS: Windows 2000), the file is opening and also getting saved properly.
    � While opening the file from the development server(Weblogic server 8, OS: unix box):
    o On the IE browser, the file is not opening. It opens the Adobe Acrobat reader, appears as if it will open the file, but gives the following error message: "There was an error opening this document. The file does not exist." The strange part is that it is successfully saving the same file.
    o On the Netscape browser, the same file from coming from the server hosted on the unix box, is opening properly. Hence, the issue is not related to case of the path etc.

    Has anybody come across this issue. Can you please suggest what could be done to fix the same. Thanks in advance.

    Regards,
    Ruchi

    1.
    <security-constraint>
    .....
    <http-method>GET</http-method>
    <security-constraint>
    (ie no <auth-constraint> )

    <auth-constraint> NOT being there is same as <auth-costraint>*</auth-costraint>. So, ALL users can access GET method on the give url-pattern. For all other http - methods, ALL can access them. Hence, in this case, ALL users can access ALL methods on given url-pattern.


    <security-constraint>
    ..........
    <auth-constraint>
    <role-name>Admin</role-name>
    </auth-constraint>
    (ie no HTTP method)

    You are right. If NO http-method is specified, the security constraint applies to all methods. So, admin has access to ALL methods. Also, everybody other than the admin also have access to ALL methods. Hence, everybody has access to ALL methods on the url-pattern.


    <security-constraint>
    .....
    <http-method>GET</http-method>
    </auth-constraint>
    <security-constraint>
    (ie empty auth-constraint with no role names )

    I think firstly, that </auth-constraint> is an error.
    To depict an empty tag, use <auth-constraint />Next, this specifies that NOBODY has access to the GET method on the given url-pattern. For all other http methods(besides GET), everybody has access to them on the given url-pattern.

    Please make sure u have the errata marked on ur copy of HFSJ, then the whole concept is crystal clear from the book itself.

    In fact, there is a very good example in the specs: SVR.12.8.2, Page 98. with a nice matrix as solution.

    Hope this helps!
    Regards,
    Ruchi.
    [ June 01, 2005: Message edited by: Ruchi Kumar ]
    This is with reference to HFS, Pg 202, last Q <There are no Dumb Qs>

    To my understanding, this mentions ways in which multiple threads can access a common value. But then it says:

    "1. Declare the variable as a local variable within the service method, rather than as an instance variable..."

    I thought that local varibales are thread safe, and instance variables were not, so inorder for multiple threads [I] to [I]sharethe value, shouldn't the variable be as an instance variable. ie: shouldnt 'instance variable' and 'local variable' be swapped in teh above sentence in the book ? Or am I missing some point?

    I looked up the errata, couldn't find any related to this point.
    Please help me with this query, as the concepts get mixed up otherwise.

    Regards,
    Ruchi.
    Congrats Phoebe!
    N great tips!! Especially the pitfalls for the real exam. Thanks!
    Congratulations!! Good job!