Salvo Montalbano

Greenhorn
+ Follow
since Sep 22, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Salvo Montalbano

Hi all,

I'm developing my first application using jasper reports library (v4.1.3).
I created the report using iReport 4.1.3 and I wrote the following class:


But when i execute this application, the following exception occurs:


I can't understand where is the bug.
I hope anybody can help me.
Thanks in advance

SM
12 years ago
Damn! I found the solution after my post (and after a lot of hours!)
http://www.roseindia.net/tutorialhelp/comment/30472
The problem is about the index.html file inside the struts2tutorial example!
After editing the file, browser's cache must be cleaned (this caused the difference about Firefox/IE vs Chrome)
I'm a very newbie...
I hope this post will be useful to another newbie
12 years ago
Hi all,

i'm at the beginning about studying the Struts 2 framework.
I'm following some examples and I deployed my first Struts2 application.
I noticed a strange problem: if I type in my browser the URL http://localhost:8080/struts2tutorial/, application works well only with Firefox and IE. If I use Chrome I have the following message:


Struts Problem Report

Struts has detected an unhandled exception:

Messages:
There is no Action mapped for action name HelloWorld.



The application shoud display an index.html page which contains a link to HelloWorld.action
In Firefox and IE this page appears and I can click on the link in order to execute the action, but with Chrome I have the previous error.
Can anyone explain me this different behaviour?
Thanks in advance

SM

12 years ago
Hi all,

I hope to be in the right section of the forum.
I'm looking for a book or a website that describes a full example of a J2EE (JSP, Servlet ) web application (for a production environment) also describing best practices techniques.
If this resource exists (!!!), can you advice me anyone?
I'm a newbie ad I created my litlle webapps (after reading Head first Sevlet&JSP book), but I would know the real and most used practices about an enterprise environment.
Thanks in advance.

SM


12 years ago
JSP
I think I solved my problem and I post my solution might be useful in future to another newbie (like me )
I'm also interested to learn other ways to reach my scope.
I put this filter declaration in web.xml


I also write this class:



In this way when i go to logout I make some string operations (that edit protocol and port) and perform a redirect to the home page.
Regards

SM
12 years ago
Hi all,

in my web.xml I declared a resource under the block
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
This resource is about a login page.
But when I logout or when I visit some pages like Contacts or Home Page, I wouldn't use HTTPS protocol
At the moment, HTTPS remain in the url even if I declared this protocol only for that resource
This is my (little) web.xml


Does anybody can help me to solve this problem?
Hoping my explanation is clear, thank you in advance for you replies.

SM
12 years ago
I apologize for my questions (perhaps too much questions)...
So, do you use authentication based on j_security_check or on your own custom servlet?
I'm using, at the moment, j_security_check servlet and the list of my users/roles are in a MySql database.
Thanks again!
12 years ago
Thanks for your link.
Do you know alternative techniques to j_security_check in order to perform authentication?
Thank you very much
12 years ago
Hi Ricardo,

I read just this chapter but it talks about the four types of authentication: basic, digest, client-cert, form.
Form Login is provided using j_security_check servlet of the Container.
I would know if exists any other way to have a form based login and what's the best practice to perform a login method.
Then, I would like see a website (in a production environment) that use j_security_check. Do you know anyone?
Thanks again for your time
12 years ago
Hi all,

i'm a newbie in the j2ee world and I read about form based authentication using j_security_check.
I tried it and all works fine :-)
Now, I would like know what is the better practice in production environment to authenticate users.
Is j_security used in a production environment?
Can you notice me any websites that use this kind of authentication?
What are the alternative APIs used in this context?
Thanks all in advance for tour precious help

Rosanero4ever
12 years ago
Hi all,

I need a free library to acquire images using a scanner.
I read about jTwain or Morena but they aren't free.
Has anybody any experience as reguard as my problem?
Thanks in advance
Regards
12 years ago