Question
How to get current page url from backing bean?

Answers

You can get a reference to the HTTP request object via FacesContext like this: 

FacesContext fc = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest) fc.getExternalContext().getRequest(); 
and then use the normal request methods to obtain path information. Alternatively, context.getViewRoot().getViewId(); 
will return you the name of the current JSP (JSF view IDs are basically just JSP path names).   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What are the differences between pivot tables and straight tables?
  • Q Why did Sage Kanva name the child of Menaka as Shakuntala?
  • Q Explain why detailed history?
  • Q What is a Rocky mountain canary
  • Q What is the SYSTEM VARIABLE that is used to determine the CURRENT MODE ?
  • Q What is a Statics Class
  • Q What is realm ?
  • Q hi im doing my research in biology. in that one of my chapter is Phytochemistry, i have 24 test procedures for phytochemical test .. i would like to know how many testes in phytochemistry?can anyone help me....
  • Q What are the components defined in the model from mvc architecture?
  • Q ‘Swaraj’ as goal of Congress was declared in 1905 at which congress session?
  • Q < h2 > What is the difference between < div > and < frame > ?< /h2 >