Re: hello world is giving me a stack trace.

2014-07-08 Thread Kun Niu
f the > assumptions. I have no idea where > to look for the root cause at this point. > > Jim > > > On 07/08/2014 05:12 PM, Kun Niu wrote: > > The backtrace already told you. There's a classcast exception in your > struts.xml file. > You need to at least add

Re: hello world is giving me a stack trace.

2014-07-08 Thread Kun Niu
The backtrace already told you. There's a classcast exception in your struts.xml file. You need to at least add your struts.xml file. On Tue, Jul 8, 2014 at 12:47 PM, Jim Anderon wrote: > > Hi, > > I'm trying to learn about struts and I have been trying to run the > tutorials. The example, 'ba

Re: Basic security problem

2010-04-15 Thread Kun Niu
You should check the authentication all by yourself in your action. Stephane Cosmeur wrote: Hello struts users I have a really basic security problem and i would like to know what is the best practice to resolve it. I have an application with an authentification system and diffrent rights for

Re: previous action

2010-04-15 Thread Kun Niu
You'll have to track it all by yourself with an action ID or something related, as a parameter of your request url. lucas owen wrote: Hi Struts users: An easy one: how can I figure out the struts 2 previous action, the one I come from? I have tried everything but nothing works... Thanks in a

Re: struts & PDF

2010-04-13 Thread Kun Niu
You can't. One alternative is to save the file in another directory and redirect to it. fea jabi wrote: On click of a button I open a window and generating PDF in it as "inline" within that browser window. It works fine. I did set the http response header for the response with the file nam

Re: Struts2 File Upload

2010-04-07 Thread Kun Niu
How did you write your file upload form? sand...@i2it wrote: Hello All, In my file upload program of struts 2 in HTTP Monitor window of Netbeans im getting Data sent with this request was not parameterized Thanks in Advance

Re: Can I redirect user to another website using action result?

2010-03-25 Thread Kun Niu
Thank you for your detailed reply. Lukasz Lenart writes: 2010/3/25 Kun Niu : Thank you for your fast reply. I wonder if there's a manual so that I can checkout all the struts function? http://struts.apache.org/2.x/docs/guides.html http://struts.apache.org/2.x/docs/result-types

Re: Can I redirect user to another website using action result?

2010-03-25 Thread Kun Niu
Thank you for your fast reply. I wonder if there's a manual so that I can checkout all the struts function? Lukasz Lenart writes: > 2010/3/25 Kun Niu : > >> I'm trying to use struts2 to redirect user to another website out of my >> tomcat box. >> I won

Can I redirect user to another website using action result?

2010-03-25 Thread Kun Niu
Dear all, I'm trying to use struts2 to redirect user to another website out of my tomcat box. I wonder if action result supports http://xxx.com format. Any hints are appreciated and thanks in advance. Best regards, Kun - To uns

Re: How to accomplish Html:link in struts 2

2007-09-18 Thread Kun Niu
s:url and s:a ? 2007/9/18, Xibin Liu <[EMAIL PROTECTED]>: > > What is the equivalent tag in struts 2.0 for the following struts 1 tag? > > key="help"/> > > I know s:text will replace bean:message, but what about html:link ? > > > Thanks > -- 失业 牛坤 MSN:[EMAIL PROTECTED]

Re: Problem about the hello world struts2 example.

2007-08-26 Thread Kun Niu
I think that I've solved the problem. I put the configuration file under the wrong directory. I put it under the WEB-INF directory. Now I've moved it to WEB-INF/classes direcotry. And it works for me. Thanks again for your kind reply. Regards. 2007/8/26, Kun Niu <[EMAIL PROTECTED]&g

Re: Problem about the hello world struts2 example.

2007-08-26 Thread Kun Niu
; folder, what is the tomcat version you are using? if its supports > servelet spec. 2.4+ you dont need it in the web.xml. what i ment was > that in you .jsp file do you have this line on top? > > <%@ taglib prefix="s" uri="/struts-tags"%> > > Thanks, &g

Re: Problem about the hello world struts2 example.

2007-08-25 Thread Kun Niu
ss, have you included the > struts-tag declaration in you jsp? > > Thanks, > > Nuwan > > > Kun Niu wrote: > > Dear all, > > I wonder if anyone has ever met the problem like me. > > Now I've come to the first step. > > I create the view jsp file and the ac

Problem about the hello world struts2 example.

2007-08-25 Thread Kun Niu
Dear all, I wonder if anyone has ever met the problem like me. Now I've come to the first step. I create the view jsp file and the action bean following the guide. And I configured struts.xml file. I can see the page come out on my browser. But I can only see the title. I can't file the message "S