waseem nadaf

Greenhorn
+ Follow
since Mar 28, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by waseem nadaf


Hi,


I am new to JSF. I am trying to run a simple JSF application on Jboss server using the tutorial from this link : http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial-RC3/JSFTools_tutorial.html. I am using JSF 1.2 with eclipse IDE.


I am using JBoss 4.0.4. When I run the application I get the following error :


Generated servlet error:

The type javax.servlet.jsp.tagext.JspIdConsumer cannot be resolved. It is indirectly referenced from required .class files


I did some research on the web and found that this error is due to JSF 1.2's dependence on JSP 2.1 specification. How can I know if the JBoss server supports JSP 2.1 ?? If not then how can I add JSP 2.1 capability to my JBoss server ?


Can some one please help me resolve this issue.


Thanks in advance for your reply.
14 years ago
JSF

Hi,

I want to run multiple instances of the same application in JBOSS AS. I have created separate WAR files with different context paths.
But all class names and packages are still the same in both the applications.
Will this lead to any conflict during the JVM class loading ?? I have done some basic testing and everything seems to be working OK. But since I am not too sure of JVM behavior, I want more clarity on this before I move my code to production server.

Please advise.

Waseem
15 years ago
Hi Jeanne,

I figured out where i need to add the "_new" in the jsp:

<html:form method = "post" action="managePsr.do" target="_new">

However this opens the link in an entirely new window. If we want to open the link in the same window then we need replace target="_new" with target="_top".

Thank you so much
17 years ago
Hi Jeanne,

First of all thanks for your reply.
I am new to html and struts. So could you please tell me where exeactly i need to add "_new" in my jsp. A small piece of code demonstrating the same would be of great help.

Thank you once again.
17 years ago
Hi,
I have a jsp page which has 3 frames: Header, Navigator and Main frames.

In the Main frame i have some buttons. When the user clicks on any of these buttons a corresponding action is invoked. Now my requirement is that i want each of the actionforwards to open in the parent window. However the new jsps continue to persist in the Main frame of the frameset.
How do i break out of the frameset upon an actionforward.

Can someone please advise me.

Thanks in advance.
17 years ago
Thanks Rahul,
I understood your point....

But you said "Class cannot be protected , it can only be public or default."

My question is why cant a class be potected...??
18 years ago
I have a certain idea that when any entity is declared as protected, it is not visible outside the package unless the class is extended. So if the class itself is declared as protected then the class cant be extended outside the package as the class is not at all visible outside the package. This is as good as declaring the class with default modifier. Therefore it doesnt make sense to declare a class protected and hence the limitation.

Is what i think correct or is it a wrong presumption by me...
If it is wrong can someone please give me the right answer...
18 years ago
Thank you so much Jan Cumps, Jesper Young and Matt Russell... your replies were a great help... my doubt is cleared...
18 years ago
Lets say i have ten java classes and i want all of them to be coderanch. It implies(according to java) that i need to declare each of them in a different source file. But that is so irritating. Why is it so strictly compulsory..?? Will it be a problem if i have al my public classes in the same source file..?? According to java syntax, YES it is a problem... but what is the logical problem....??? ( Is it that just because the java guys wanted the file name to be the same as that of the public class they decided to have just one public class per source file.. I dont think thats the reason...)

Sorry for the lengthy question...

Some one please help....
18 years ago
Hello.. my question is about the object definition given in the SCJP 5 book by Kathy Sierra. The book says "at runtime when the JVM encounters the new keyword, it will use the appropriate class to make an object, which is an instance of that class. That object will have its own state, and access to all of the behaviors defined by its class. "

Now my question is related to the last sentence of the above definition.How can an object access private behavior of its class when it is instantiated in another class.

I am a confused.. please help soon....