Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Java Server Faces parameter pass?

Posted on 2016-11-16
6
Medium Priority
?
75 Views
Last Modified: 2017-01-25
Hello Experts!

General Scenario:  (and I can't provide exact details thanks to an nda)

I have an application that needs to access a website written in Java Server Faces.  The application supports several end users, and the goal is for the application to grab the users credentials, and log into the website to download their documents and then log off (all automated).  Is there a way to look at the website code to see what the parameters are to pass and then just pass the parameters in the URL.  I looked at the code and I see that Javascript is being used (maybe in the login function?)

Can someone point me in the right direction to go about getting this information?  Tell me how *you* would solve this issue?


-Fox
0
Comment
Question by:the_b1ackfox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 41890685
with chrome do Chrome Menu -> More Tools -> Developer Tools
click on network tab
do a login and click on left on the line you see appear when you click on the login, one the right go on header tab and locate your parameters name
0
 
LVL 9

Author Comment

by:the_b1ackfox
ID: 41891745
I'll give that a try this weekend.  Once I have the parameters is there a particular format to put them into the url string?

https://www.somedumbsite.jsf/?userid=bob,password=1234
0
 
LVL 82

Expert Comment

by:leakim971
ID: 41891868
no, this format use the GET method to post, so you see parameters in the url.
that's why I asked you to check th header, if you it's a POST, check the header to see the parameters name, maybe more than user/password
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Author Comment

by:the_b1ackfox
ID: 41893602
OK, so I couldn't wait until the weekend.  :)  I was able to get the parameters based upon your suggestions!!!  Thank you so much!
1
 
LVL 82

Expert Comment

by:leakim971
ID: 41893622
nice, don't forget to close the question, thanks
0
 
LVL 9

Author Closing Comment

by:the_b1ackfox
ID: 41906379
Thank you for the information, You helped us get pretty far into our project!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question