Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Jay Josh

Greenhorn
+ Follow
since Jun 26, 2016
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jay Josh

Hi

Its working now. I think you were correct. After editing the JRE home in eclipse to C:\Program Files\Java\jdk1.8.0_65, I think I directly pressed OK before pressing Apply.

Regards
Jayant  

Hi Jeanne

Thanks for reply.

Eclipse JRE path was : C:\Program Files\Java\jre1.8.0_65

Netbeans : C:\Program Files\Java\jdk1.8.0_65

Then I changed JRE path for Eclipse to

C:\Program Files\Java\jdk1.8.0_65

But still its not showing javadoc comments

- Jayant
More precisely question should be why eclipse is not showing ""javadoc comments" in java source files. But it is visible with netbeans IDE.


Thanks
Jayant
Hi All

I am using Eclipse IDE for java developers (mars 4.5.1) with decompiler (JD-Eclipse). Whenever I am opening any class file like HashMap.java, its not showing copy right comments, @author or any other /* */ comments. While with netbeans 8.2(for Java EE) where I dont need any decompiler, is opening the same HashMap.java with all comments. Please check screen shots attachments for more clearity.

Thanks
Jayant
I have just started learning JSF so just a beginner. Surely will keep your advice in mind.

Thanks for your time.

Jayant
5 years ago
JSF
I think I got the answer. The code



should be present in welcome.xhtml and not in login.xhtml.

Thanks for your reply Tim. For me its resolved now.

Thanks
Jay
5 years ago
JSF
I think my question is still unanswered. My second reply got posted without preview hence there could be some mistakes about <h:commandLink>. I know how to use <h:commandLink> property.

But my question was about <h:link> tag. I know bean properties wont get updated with this. This is the reason why I am using following code in login.xhtml file.




which appends name=JayJosh to the address field. And then



in top of login.xhtml file which should take the 'name' parameter's value and should update UserBean class. But its not happening.

My question is about that. How should I do it ? i.e. by using <h:link> how can I update my bean properties.

Thanks
Jay

5 years ago
JSF
cont from post 2...

Then its working fine.

Thanks
5 years ago
JSF
Reminding again, when I replace <h:link> with <h:commandLink> as shown below

5 years ago
JSF
Hi all

I am just checking out how GET request is generated in JSF. For that I am using <h:link> tag but with that bean properties are not getting updated. But if I use <h:commandLink> its works fine.

Here is the code.

login.xhtml


welcome.xhtml


UserBean.java


web.xml


When I clicked on link then address field changes to

http://localhost:8080/GETReqPjt/faces/welcome.xhtml;jsessionid=2f86aaea178fc9ed1d964f327fd0?name=JayJosh

I am using netbeans IDE and it supports both JSF managed beans and CDI beans. Its working with <h:commandLink> i.e. POST request.

Thanks
Jay
5 years ago
JSF
Yes agree but it is still taught in many j2ee courses in India. I have worked with JSTL and with all core library tags. Anyways thanks for your reply Bear Bibeault. I finally got it solved thanks to the following

http://www.javatpoint.com/jsp-setProperty-and-jsp-getProperty-action-tag
5 years ago
JSP
I know abt EL and JSTL. But just wanted to know how <jsp:useBean> elements works? Especially its attribute 'scope=application' and how the same bean could be accessed through other jsp pages.
5 years ago
JSP
Hi All !!! I am doing a small project by using JSP standard action elements.

Employee.java (bean)



Login.jsp


StdAct.jsp


Above after setting Employee bean properties I am forwarding it to FinalJsp.jsp page where I want to display bean properties.

FinalJsp.jsp


web.xml



After submitting data through Login.jsp page I am getting the following error



However when I am using <jsp:getProperty> elements on the same page i.e. StdAct.jsp then its working fine. I just wanted to check how a single bean could be accessed from different places by using JSP standard action.

Thanks
Jayant
5 years ago
JSP
What I am getting from your reply is that you are saying isErrorPage="true" directive is only useful while using scriplets but its presence doesn't make any sense while accessing exception object using EL? Hope I am getting it right.

Also where I got confused is, in the Head first Servlets and Jsp 2nd edition, they have mentioned that

"Note: the exception implicit object is available ONLY to error pages with an explicitly-defined page directive: <%@ page isErrorPage=”true” %>
In other words, configuring an error page in the DD is not enough to make the Container give that page the implicit exception object!"



And while giving this note they have used exception object using EL as ${pageContext.exception}. Please see the attached picture.



5 years ago
JSP
No. They say if somebody need access to 'exception' object then one should use directive as true. But my question is I could display exception even without using directive or even using isErrorPage="false". What is the use of directive then?
5 years ago
JSP