PrachiS Shah

Greenhorn
+ Follow
since Sep 02, 2010
Merit badge: grant badges
For More
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 PrachiS Shah

Pradeep bhatt wrote:Pass a query paramter to the failed page say failed=true as shown below

Check for failed=true in the jsp and display the error message.



This is working okay. But when the user refreshes the page without filling any data then also the error page gets called and the error message is displayed...Please help
12 years ago
This is working okay. But when the user refreshes the page without filling any data then also the error page gets called and the error message is displayed...Please help
12 years ago
When I am using form authentication of web.xml...Then there is this issue that I am facing...
I have return the code as follows :

<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/loginpage.jsp</form-login-page>
<form-error-page>/loginpage.jsp?failed=true</form-error-page>
</form-login-config>

Now what happens is that when I refresh the page without filling in any details then also the page gets submitted and the errorMsg starts getting displayed. i.e. the form-error-page gets executed and the error message starts getting displayed. Any idea what is going wrong here?
12 years ago
How can I give the context path? The context path is not going to be fixed.It depends upon the server on which it is deployed. All I need to do is to restrict the access of jsp pages till he logs in. I want to allow other resources i.e. images and css to be accessed anytime whether before of after login.
12 years ago
My head portion contains just links for the css and images files..Like,
For the css;
<link rel="stylesheet" type="text/css" href="css/utility/base.css"/>

For the images;
<img src="images/xyz.jpg" alt="XYZ" title="XYZ" />

The images and css folders are present in the WebContent itself
12 years ago
I am having a concern regarding the Form Based authentication in Java. I need to restrict the access of jsp pages to the user, until and unless he logs in. This is the code for that;

<web-resource-collection>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>

I have jsp pages in a folder called jsp, images in a folder called images and the css in the folder of css. When I apply the above restriction then the pages are not accessed and automatically it is redirected to the login page. This is the correct behavior that I want but the only issue is that my images and css also don't load. Hence my login page appears without css and images. Any help would be appreciated.
12 years ago
Yeah I think you are right...All the resources get restricted.....And if you want specific resources to be restricted and rest everything to be accessed then you should be writing /jsp/* ..just an example...which will restrict all the jsp pages..but the images, css and all such other resources will still be accessible....
how to print the name of an object in java ?

for eg.
String start = "hello";

Now how to print the name of the object ?
13 years ago
Got the answer to this issue.......

Just use the process attribute of the rich:datascroller and pass the id of the rich:datatable in the process attribute.....and it works.......
13 years ago
JSF
I have a rich:datatable...which contains numerous rows for the display of which i am using a rich:datascrolller.....but the issue is that the rich:datatable that i am using has h:inputtexts which the user uses to enter user input...now using the rich:datascroller when i move to the second page of the rich:datatable i loose the user input on the first page...please help me resolving this issue as soon as possible........
13 years ago
JSF