Re: Deploying Struts 2 Portlet Into Pluto 1.1.6 Portlet Container

2008-12-05 Thread phillips1021
Well - after hours of trouble-shooting I finally figured out what my problem was. The error was in my web.xml: StrutsExample org.apache.pluto.core.PortletServlet portlet-class org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher

Old Velocity Tags

2008-12-05 Thread clatasa
Hello, Looking at this link: http://cwiki.apache.org/WW/velocity-tags-old.html I'm still trying to figure out how to support the "#tag( Component " - in Struts 2. Is it possible? or is there an newer way of doing the same thing. Carlo.

Re: Struts2 Ajax File Upload

2008-12-05 Thread Raghu
Please don't reply to this mail. I have solved issue and it work the way I expect. It is surprising that in case of file upload JQuery's Form Plugin is not picking form's action attribute value and request was not reaching to my action class. When I explicitly pass url's value to ajaxForm("options"

RE: Struts2: Carry parameters into following jsp/action

2008-12-05 Thread Radu Solomon
You could use ScopedModelDriven with your Model defined to hold all your properties name, age, height, hair color and eye color. I have been using this for two wizards and it works very nicely. You do not need to worry about persisting the model between pages, let the framework do it for you.

RE: Struts2: Carry parameters into following jsp/action

2008-12-05 Thread Dave Newton
--- On Fri, 12/5/08, Peterson, Ryan wrote: > I've heard rumblings about using session, so I thought > I'd avoid it this time to implement something "clever". Most of the clever solutions are just hiding session use, and there are a couple ways to wrap that up in Struts, including Spring scoped be

RE: Struts2: Carry parameters into following jsp/action

2008-12-05 Thread Peterson, Ryan
Thanks Dave! I've heard rumblings about using session, so I thought I'd avoid it this time to implement something "clever". :-) In the end, simplicity prevails! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 11:57 AM To: Struts Users Mail

Re: Struts2: Carry parameters into following jsp/action

2008-12-05 Thread Dave Newton
The quickest/easiest solutions are chaining (boo hiss) or just keeping a form model in the session like in any other framework. Dave --- On Fri, 12/5/08, Peterson, Ryan wrote: > I have a form filled out that may require additional info, > which I have > a 2nd jsp form for. How can I carry over

Struts2: Carry parameters into following jsp/action

2008-12-05 Thread Peterson, Ryan
Hello all, I have a form filled out that may require additional info, which I have a 2nd jsp form for. How can I carry over the already entered parameters from the first form to the second, so that all info may be submitted to an action. For example: data is collected from form1.jsp. Say nam

Re: Getter Method call twice - S2

2008-12-05 Thread Felipe Lorenz
Did you try to debug your application? Or try to see from what Action/JSP its called! Or create a Interceptor to print a log: public class Log4JInterceptor extends AbstractInterceptor { @Override public String intercept(ActionInvocation invocation) throws Exception { String comand

Re: Struts2 Ajax File Upload

2008-12-05 Thread Raghu
Thanks Dave for prompt reply. Yes, I have defined inputStream property in action class like below. *private InputStream inputStream; public InputStream getInputStream() { return inputStream; } public void setInputStream(InputStream inputStream) { this.inputStream = inputS

Re: Struts2 Ajax File Upload

2008-12-05 Thread Dave Newton
--- On Fri, 12/5/08, Raghu wrote: > I am trying to implement Ajax File Upload using > JQuery's Form Plugin which uses iframe internally. JQuery's Form Plugin doc says it support response > type of HTML or XML. > > Without Ajax, my file upload works fine. I am not sure what > result type to choos

Struts2 Ajax File Upload

2008-12-05 Thread Raghu
Hi, I am trying to implement Ajax File Upload using JQuery's Form Plugin which uses iframe internally. JQuery's Form Plugin doc says it support response type of HTML or XML. Without Ajax, my file upload works fine. I am not sure what result type to choose for ajax response. If I use type="stream"

Re: OGNL and instanceof

2008-12-05 Thread Johannes Geppert
newton.dave wrote: > > I'd try #object first, since it's a named context variable created on the > page. > > Dave > thank you, this works great. -- View this message in context: http://www.nabble.com/OGNL-and-instanceof-tp20850061p20858557.html Sent from the Struts - User mailing list arch

Struts File Upload Bug.. Please reply.

2008-12-05 Thread Shazad
Hi All, I am using struts 1.3. But i think this issue might be in Struts 2.0. When i upload an excel file with name Book1.xls or a word document Document1.doc or Book1.doc it doesn't recognize the word document as "application/msword" rather it treats it as 'application/octet-stream" similarily fo

Re: Deploying Struts 2 Portlet Into Pluto 1.1.6 Portlet Container

2008-12-05 Thread phillips1021
Thanks for the quick reply. I changed: per your suggestion. I still get the same error: INFO: Portlet Context '/StrutsExample' registered. Dec 5, 2008 9:48:48 AM org.apache.pluto.core.PortletContextManager register INFO: Registered portlet application with applicati

Re: Deploying Struts 2 Portlet Into Pluto 1.1.6 Portlet Container

2008-12-05 Thread Nils-Helge Garli Hegvik
On Fri, Dec 5, 2008 at 3:50 PM, Phillips, Bruce A <[EMAIL PROTECTED]> wrote: > We have been using the Pluto 1.1.6 Portlet container > (http://portals.apache.org/pluto/) to test our JSR-168 portlets. Our > team needs help learning the correct way to setup a Struts 2 portlet to > run within the Plut

S1: Nocache and SSL

2008-12-05 Thread Givler, Eric
I'm using Struts 1.3.5. I've run into a snag lately that my struts-config.xml controller nocache setting is causing IE to not download/display a PDF from one of my actions (see http://support.microsoft.com/?kbid=323308). I thought I could selectively turn off the nocache attribute for the sing

Re: Can't get definitions factory from context

2008-12-05 Thread Benjamin Dittwald
thanks for your help. i use tiles 2 now. with the common dependencies includet in the distribution. now, my tomcat log says: 05.12.2008 16:05:23 org.apache.catalina.core.StandardContext listenerStart SCHWERWIEGEND: Error configuring application listener of class org.apache.tiles.web.startup.Tiles

Deploying Struts 2 Portlet Into Pluto 1.1.6 Portlet Container

2008-12-05 Thread Phillips, Bruce A
We have been using the Pluto 1.1.6 Portlet container (http://portals.apache.org/pluto/) to test our JSR-168 portlets. Our team needs help learning the correct way to setup a Struts 2 portlet to run within the Pluto 1.1.6 portlet container. We've studied the Struts 2 example portlet tutorial (http

Re: .do and .jsp

2008-12-05 Thread Paul Benedict
You can do it. Just remember the whole pipeline of the RequestProcessor will be executed for the forward. Paul On Fri, Dec 5, 2008 at 4:17 AM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > 2008/12/5 hello_everyone <[EMAIL PROTECTED]>: >> so how can i solve .do issue. the jsp files are not under WEB-

Re: OGNL and instanceof

2008-12-05 Thread Dave Newton
--- On Fri, 12/5/08, Johannes Geppert wrote: > i want to iterate above an List with different Objects. > How can i use instanceof to differ the Object. > [...] > I'd try #object first, since it's a named context variable created on the page. Dave --

Re: Having problem with Struts CRUD

2008-12-05 Thread Lukasz Lenart
2008/12/5 Vinoth.t <[EMAIL PROTECTED]>: > private String city; > >public Employee(Integer employeeId, String firstName, String lastName, >Integer age, Department department, String city) { >this.employeeId = employeeId; >this.firstName

Having problem with Struts CRUD

2008-12-05 Thread Vinoth.t
Hi, I'm new to Struts. I extract struts-crud.war file in TomCat's webapps folder. Its work fine I changed jsp file to add a field but it shows error msg. First I add a field in emplkoyeeForm.jsp as follow I added a line in classes/guest.property as follow label.city=City In struts-crud\W

Re: Getter Method call twice - S2

2008-12-05 Thread Eugenio Perrotta Neto
anybody has the answer? On Thu, Dec 4, 2008 at 2:05 PM, Eugenio Perrotta Neto < [EMAIL PROTECTED]> wrote: > the code is here: > > > > i have a tag file called page.tag > > > <%@ tag body-content="scriptless" %> > <%@ tag pageEncoding="UTF-8" %> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags" %

Re: assigning values from javascript to struts tag

2008-12-05 Thread Nils-Helge Garli Hegvik
Remember that struts tags are rendered server-side and all you have left on the client side is HTML. So you can't "communicate" with the struts tags from JavaScript (which runs in the browser). You have to use JavaScript to manipulate the DOM that is created from the generated HTML. Nils-H On Fri

assigning values from javascript to struts tag

2008-12-05 Thread Greenhorn2005
Hello all, I am having a peculiar problem. How do i assign the values from javascript to struts tag. consider as an example Suppose I have a javascript in a jsp page that contains lots of struts tags. from javascript based on some formula.i assign a list of values say 1,2,3 and wan

Re: .do and .jsp

2008-12-05 Thread Lukasz Lenart
2008/12/5 hello_everyone <[EMAIL PROTECTED]>: > so how can i solve .do issue. the jsp files are not under WEB-INF. so in > struts-config.xml it requires path to jsp. and if i try with .do, it finds > nothing. As far I remember, you can't use action for forwards, except with redirect attribute set

Re: Dojo datetimepicker problem

2008-12-05 Thread Dimitar Vlasev
Sure I succeeded wrapping the String to Date conversion outside of the action class with custom type conversion class. I guess I expected that when uses java.util.Date property when rendering the HTML, I will get the new value in the same property after submitting the form which holds the Since

Re: running stored procedure

2008-12-05 Thread Nils-Helge Garli Hegvik
Typically you would use JDBC or a database framework for this. http://www.google.com/search?q=jdbc+stored+procedure Nils-H On Fri, Dec 5, 2008 at 9:48 AM, hello_everyone <[EMAIL PROTECTED]> wrote: > Hi, > > Can anyone suggest some samples for running stored procedures from strut > application? >

OGNL and instanceof

2008-12-05 Thread Johannes Geppert
Hello, i want to iterate above an List with different Objects. How can i use instanceof to differ the Object. I try it this way: do something with Class One do something with Class Two It does not work! But it does not work. It runs evertime in the else branch. Have a

Re: .do and .jsp

2008-12-05 Thread hello_everyone
so how can i solve .do issue. the jsp files are not under WEB-INF. so in struts-config.xml it requires path to jsp. and if i try with .do, it finds nothing. regards On Thu, Dec 4, 2008 at 6:22 PM, Greg Lindholm <[EMAIL PROTECTED]> wrote: > > You don't need to keep your jsp's under WEB-INF, you c

running stored procedure

2008-12-05 Thread hello_everyone
Hi, Can anyone suggest some samples for running stored procedures from strut application? Regards