STRUTS example not running

2010-10-05 Thread ir2pi
hello I'm learning struts but an example i followed from the net isn't working...can anybody look into this ? i've uploaded the war file...plz help me out |test\ ||helloworld.jsp ||index.jsp ||META-INF\ ||WEB-INF\ |||WEB.XML |||CLASSES\ |||LIB\ STRUTS.XML user\ |helloworld.class

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Yanto Bong
Hi Hantsy, Jose, thanks, we'll take a look at the plug in. Best Regards Yanto On Wed, Oct 6, 2010 at 11:48 AM, Jose A. Corbacho wrote: > I meant, yep, using the plugin provided for jQuery. > > On Wed, Oct 6, 2010 at 10:40 AM, Hantsy Bai wrote: > > > There is a project which integrated JQuery

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Jose A. Corbacho
I meant, yep, using the plugin provided for jQuery. On Wed, Oct 6, 2010 at 10:40 AM, Hantsy Bai wrote: > There is a project which integrated JQuery into Struts2... > http://code.google.com/p/struts2-jquery/ > > The dojo plugin shipped with Struts 2 is too old... > > Hantsy > > 于 2010/10/6 11:28

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Hantsy Bai
There is a project which integrated JQuery into Struts2... http://code.google.com/p/struts2-jquery/ The dojo plugin shipped with Struts 2 is too old... Hantsy 于 2010/10/6 11:28, Jose A. Corbacho 写道: I changed to jQuery not long time ago and I have to say the system has improved its performanc

Re: Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Jose A. Corbacho
I changed to jQuery not long time ago and I have to say the system has improved its performance (I was using before the dojo plugin) as well as the code being cleaner. You'll still need to do some "javascripting" but using jQuery API that is, as said, cleaner. On Wed, Oct 6, 2010 at 10:05 AM, Yant

Reduce Java Script Depecency in Struts 2

2010-10-05 Thread Yanto Bong
Hi All, We've use Struts 2+Spring+Hibernate as our framework and use JSP as the UI. After we review the application, our application having quite a lot Java Script that cause certain form not working propertly in one of the browser. Any suggesstion how we can reduce Java Script in the JSP ? is th

Using ARIA with Struts tag

2010-10-05 Thread Anjib Mulepati
Can anyone tell me how we can write ARIA attribute in struts tag. I ma using Struts 1.3.8 Thanks Anjib

Re: Multipart/Form-Data with Struts 1

2010-10-05 Thread DavidZaz
Yes, it only occurs under Internet Explorer. I've reproduced with IE 7 and 8. Dave Newton-6 wrote: > > If you're uploading a file, the form must be multipart. > > Which version of IE? Is it only under IE that it happens? > > Dave > > On Tue, Oct 5, 2010 at 10:16 AM, DavidZaz wrote: > >> >>

Re: Multipart/Form-Data with Struts 1

2010-10-05 Thread Dave Newton
If you're uploading a file, the form must be multipart. Which version of IE? Is it only under IE that it happens? Dave On Tue, Oct 5, 2010 at 10:16 AM, DavidZaz wrote: > > I have a legacy application using Struts 1.2.8 and I have the following > HTML > form: > > enctype="multipart/form-data">

Multipart/Form-Data with Struts 1

2010-10-05 Thread DavidZaz
I have a legacy application using Struts 1.2.8 and I have the following HTML form: If I include multiple blank lines in the tinyMCE editor, the generated HTML should be:   However, IE posts the following HTML: Â At first glance, I thought that this was exclusively a tinyMCE problem

Re: Problem with required validator

2010-10-05 Thread Darren Karstens
Thanks for the replies. I figured out what the problem was. My model in the action class is a member variable called user, so I needed to change the name of my form fields and validator fields to user.userName instead of just userName. 2010/10/5 Raymond He : > You can debug your app,and step in th

Re: Problem with required validator

2010-10-05 Thread Raymond He
You can debug your app,and step in the required validator class'validation method. And check whether the value is populated . Maybe it'snull . 2010/10/5, Darren Karstens : > Hi, > I have a xml validator for my user login action which requires values > for both the userName and password fields. How

Re: urls and iterations

2010-10-05 Thread Piotr Kopeć
Thank kou Kou There's still more to learn for me As I guess there isn't any mechanism for declaration/evaluation, eg: Then will be url that evals with getting item.id ... For PC browsers I'll use javascript post as you suggested, it will be much cleaner and probabl

Re: Problem with required validator

2010-10-05 Thread Dave Newton
Without knowing specifically how the validator is configured (where is the validation file when it's deployed, how the action is configured, the form itself, etc.) it's tough to give much beyond "make sure it's configured correctly." Dave On Tue, Oct 5, 2010 at 7:52 AM, Darren Karstens wrote: >

Problem with required validator

2010-10-05 Thread Darren Karstens
Hi, I have a xml validator for my user login action which requires values for both the userName and password fields. However when submit the form with these fields populated I still get the same "Username is required" and "Password is required" messages. Am I right in thinking that the "required" v

Re: urls and iterations

2010-10-05 Thread Wataru Kou
hi Piotrek s:a is expanding ftl. for example. link use String ? It quickens a little. show if you're able to use JavaScript . post id. JavaScript function form submit. ex : Thanks. kou

Re: Best Practices for handling of XSS attacks

2010-10-05 Thread Paweł Wielgus
Hi Pars, because it should return an array. In HTTP reguest parameter with the same name can be entered many times, and that's why it's represented as an array. Best greetings, Paweł Wielgus. 2010/10/5 Pars Man : > I am currently not using any ajax stuff and i belive using JSON validation is > n

RE: Best Practices for handling of XSS attacks

2010-10-05 Thread Pars Man
I am currently not using any ajax stuff and i belive using JSON validation is not the solution I am looking for. Although I have no idea what it does i think it is way too much for my little and simple requirement and if is also not a good choice from design point of view. as i suggested and