Re: [S2]

2007-08-16 Thread yitzle
On 8/16/07, Steve Sether <[EMAIL PROTECTED]> wrote: > I'm using struts 2 to create a form whose action links outside of struts > 2. The problem is when I set the action parameter in the the framework is putting the Struts2 context in the URL. For instance: > say I have a struts 2 project called st

Re: [S2] How to use https on form submissions?

2007-08-16 Thread yitzle
On 8/16/07, Srinivas.N. <[EMAIL PROTECTED]> wrote: > > Struts 2 - Is there a way by which I can configure a form submission to use > https? > > Thanks > SN You should be able to specify the url to point to any URL, including https I am using Axis, though, and it doesn't nativaly support https. It

Re: using ${ , # and %{

2007-08-14 Thread yitzle
NOTE: This email assumes Struts 2. I'm not sure how Struts 1 works; it may or may not be the same On 8/14/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: > > I´m very confused , when I must use ${ , # and % > What are the situations to use each one ? > > Thanks > > Herrera I had the same probl

Re: s2: Netbeans 5, 6 or Eclipse?

2007-08-14 Thread yitzle
I think NetBeans eats a lot of RAM, so if you don't have much you may want to avoid it. Better yet, try both out for a week or so, and see which suits *you* the best! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: MultiPartRequest bean for File Upload missing?

2007-08-12 Thread yitzle
On 8/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- yitzle <[EMAIL PROTECTED]> wrote: > > On 8/9/07, Dave Newton <[EMAIL PROTECTED]> > > wrote: > > > --- yitzle <[EMAIL PROTECTED]> wrote: > > > > I had > > > > > >

Re: MultiPartRequest bean for File Upload missing?

2007-08-10 Thread yitzle
Solved. Found it here: http://www.jroller.com/yokeping/entry/file_upload_with_struts_2 I had to add two libraries: commons-fileupload-1.2.jar and commons-io-1.3.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: MultiPartRequest bean for File Upload missing?

2007-08-10 Thread yitzle
On 8/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- yitzle <[EMAIL PROTECTED]> wrote: > > I had > > > enctype="multipart/form-data" > > > and tried with > > > method="POST" > > enctype="multipart/form-data"

Re: MultiPartRequest bean for File Upload missing?

2007-08-09 Thread yitzle
On 8/9/07, Hafeez-ur Rehman <[EMAIL PROTECTED]> wrote: > Hi, > > Add enctype property as form attribute > > > Hafeez > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle > Sent: Thursday, August 09, 2007 8:23 A

MultiPartRequest bean for File Upload missing?

2007-08-09 Thread yitzle
I'm trying to add a file upload to my web app. When I submit the file, I get: java.lang.RuntimeException: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location] Is there a line I'm missing from my JSP or a lib/jar I need to add or a setting tha

Re: placing 2 buttons next to each other

2007-08-02 Thread yitzle
> -Original Message- > From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 02, 2007 1:39 PM > To: user@struts.apache.org > Subject: placing 2 buttons next to each other > > Hi, > > Is there a way to configure an s:form tag so that the 2 submit buttons > appear side

Re: Radio Buttons: name & value the same

2007-07-25 Thread yitzle
On 7/25/07, yitzle <[EMAIL PROTECTED]> wrote: When I debugged, the getAllowUpgrade() does get called and does return a boolean. That should read 'isAllowUpgrade()' - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Radio Buttons: name & value the same

2007-07-25 Thread yitzle
On 7/25/07, yitzle <[EMAIL PROTECTED]> wrote: My action has a boolean isAllowUpgrade() and a setAllowUpgrade(boolean b). If the name is set to "blah", the correct radio button gets selected at render time. If the name is "allowUpgrade", neither radio button gets sele

Radio Buttons: name & value the same

2007-07-25 Thread yitzle
My action has a boolean isAllowUpgrade() and a setAllowUpgrade(boolean b). If the name is set to "blah", the correct radio button gets selected at render time. If the name is "allowUpgrade", neither radio button gets selected. When I debugged, the getAllowUpgrade() does get called and does return

Re: Show message using struts

2007-07-25 Thread yitzle
On 7/25/07, tfr <[EMAIL PROTECTED]> wrote: Hi all, I want to show some message to user. These messages will not be error messages. These will be something like 'Data has been saved successfully' type. Have any idea how to do it easily? == Action Class == private String message; public String g

Re: [S2] Preselected option in tag

2007-07-25 Thread yitzle
On 7/25/07, Vincent Lin <[EMAIL PROTECTED]> wrote: I found some people are discussing this problem. When the data type of the attribute is Integer, the value can't be too large. We can use toString() to make pre-selecting work. So I changed my tag to: And it works now. Is this a bug o

Re: Problem with radio button for one default selection

2007-07-25 Thread yitzle
On 7/25/07, Vamsi <[EMAIL PROTECTED]> wrote: Hi all, I have some requirement like this I need to display a group of radio buttons where one them is defautly checked. Struts 2 ui componant display all the radio buttons without any difficulty but my problem is I am n

Re: Radio Button - setting a to 'checked'

2007-07-23 Thread yitzle
On 7/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, I also experience this problem with the radio button. Could you please give me an example of how this is done? My code: gives a 'true' output. If I change from radio to select it works ok, strange... Thanks in advance for your h

Re: New Bee Question: How do i enable validation only if certain condition is met?

2007-07-23 Thread yitzle
On 7/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: My Question: Suppose i have a form and it has 5 text boxes. I am using validation.xml for validating the data entered in the textboxes. My requirement is, if the user nters data in atleast one of the textboxes (valid or invalid) and hits su

Re: How to control the display of Struts2 tags like s:textfield

2007-07-19 Thread yitzle
Consider wrapping it in a tag... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2] Passing values from one action to another

2007-07-16 Thread yitzle
I got two action classes, A and B. A has a bunch of getters and B has corresponding setters. In order to get the value from A into B, does that value need to appear in the JSP? e.g. ? I know I can get it to work by passing the values through the JSP (and calling B from the submit), but can I get t

Re: Struts 2 and Tomcat 5.0.27 filter start error

2007-07-14 Thread yitzle
Not sure how helpful this is, but I know I got the same message when I modified my struts.xml and mistypes a class name so that it pointed to a non-existing class. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [s2] formatting in textfield

2007-07-13 Thread yitzle
I would image you would need some on_change JavaScript. I found this off Google: http://javascript.internet.com/forms/currency-format.html You might be able to adapt it somehow. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

[S2] JSP/OGNL - displaying iterator length

2007-07-12 Thread yitzle
I got an iterator that works fine and does what I want it to: ... A few lines above, I try to print the iterator size: Total: Doesn't display anything. The OGNL Guide says it supports .length for arrays. Does is not support iterators? Especially since the iterator is simple an array contain

Re: Struts 2.x mapping question

2007-07-10 Thread yitzle
I found this via Google http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html Default action mapper implementation, using the standard *.[ext] (where ext usually "action") pattern. The extension is looked up from the Struts configurati

Re: [S2] Default Action

2007-07-06 Thread yitzle
I think the trouble is you want are specifying the action but not its matching class, in which case it uses the default class which can not be changed. I'm suggesting that you don't have the action in the xml file and have it use the default action for which you had specified the class. Inside

Radio Button - setting a to 'checked'

2007-07-06 Thread yitzle
How to I make a radio button get rendered as checked? I'm making several radio buttons, one per and they all render unchecked. Even when I generate several with one radio tag and a map, I can't figure out how to set one to checked. ---

Re: Struts 2 - Array of Text Fields

2007-07-06 Thread yitzle
JSP: Create several textfields with the same name: Action: private String[] textFields; public void setText (String s[]) { textFields = s; } public String execute () throws Exception { ... } - To unsubscribe, e-mail: [EMAIL P

Re: [S2] Default Action

2007-07-06 Thread yitzle
Oops. I misunderstood your question. Maybe use a default action... If there is a way to 'peek' at the URL requested, maybe you can set the role in the default execute() based on that. - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [S2] Default Action

2007-07-05 Thread yitzle
I'm not sure what you are trying to do, but each action calls an execute() Couldn't you set the role value in the execute()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Action tag with parameters

2007-07-05 Thread yitzle
Quoting http://struts.apache.org/2.x/docs/action.html Parameters can be passed to the action using nested param tags. (links to http://struts.apache.org/2.x/docs/param.html) I'm not sure about the HTTP method... What exactly are you trying to accomplish? ---

Re: Struts 2 and frames

2007-07-05 Thread yitzle
You mean you got a page that got frames and you want to eg have a button that switches you to a single framed (er, zero frames; frameless) page? I know in HTML this is accomplished by setting the attribute "target". See http://www.w3.org/TR/html4/types.html#h-6.16 HTH --

Re: How to change colors to an item of a select tag list

2007-07-04 Thread yitzle
Um... is there corresponding HTML/AJAX code you know of that can accomplish that? I don't think I've ever seen the like. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] onsubmit in tag

2007-06-26 Thread yitzle
Um... Firstly, it does the same thing. I think if you move the code to the submit button it renders it as expected. On 6/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Vincent Lin <[EMAIL PROTECTED]> wrote: > Why it renders onsubmit="return (validateFields()); > return true;" > instead of ons

Re: AJAX and Struts2

2007-06-19 Thread yitzle
I may be quite wrong, but I would suggest first learning and becoming somewhat familiar with AJAX independent of Struts before you try to mix the two... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [S2] Best way to catch specific exception at any point?

2007-06-19 Thread yitzle
Either of those two should solve my problem. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2] Best way to catch specific exception at any point?

2007-06-19 Thread yitzle
I'm working on a web app that got a weird tendency to throw a specific exception - at any action. What's the best way to redirect to a specific JSP on that error? With an interceptor? Or stick in a try/catch in all my execute()'s? --

Re: In struts 2 can we stop form submiting twice when submit button is pressd more than once

2007-06-15 Thread yitzle
I've seen websites that have an submit onclick script that disables the submit button. You may want to consider that approach. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] target without AJAX

2007-06-12 Thread yitzle
On 6/12/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > I want to create a URL/A that opens in a new window. > In HTML I would do > I tried making a http://struts.apache.org/2.x/docs/a.html What does the documentation for the "t

[S2] target without AJAX

2007-06-12 Thread yitzle
I want to create a URL/A that opens in a new window. In HTML I would do I tried making a and targets="%{'_blank'}" but no targets appear in the HTML. Please help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Struts 2 Tutorials

2007-06-09 Thread yitzle
On 6/9/07, Deepak Kumar <[EMAIL PROTECTED]> wrote: HI, Here is good collection of Struts 2 Tutorials http://www.roseindia.net/struts/struts2/index.shtml Thanks Thank *you*! - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [S2] Using

2007-06-07 Thread yitzle
e="". On 6/7/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > Is it true, or does work with other themes? > includes a bunch of .js files > that aren't there. Where do I get the js files from, > and do I really n

Re: [S2] Using

2007-06-07 Thread yitzle
te: s:url just builds a url string an pushes it into the stack, to generate an anchor, use the s:a tag: Goolgle musachy On 6/7/07, yitzle <[EMAIL PROTECTED]> wrote: > > The URL tag isn't working right for me. I have: > http://www.site.com"; /> > The generated

[S2] Using

2007-06-07 Thread yitzle
The URL tag isn't working right for me. I have: http://www.site.com"; /> The generated HTML is: http://www.site.com No 's. What am I doing wrong? P.S. This code is being ran via a tagfile , but I doubt that affects anything. ---

Re: [S2] Mixing JSP variables and strut properties

2007-06-05 Thread yitzle
Thank you. I got it to work (after playing with it for an hour. Stupid array variables sometimes are singular and sometimes plural. I need to decide on one or the other... An hour because I don't know my own naming... ) - To unsu

[S2] Mixing JSP variables and strut properties

2007-06-05 Thread yitzle
Before I begin, I apologize if I offend anyone by asking a question that could easily be found in the Struts 2 documentation by searching for the correct keywords, and, no, I did not read the entire Struts documentation nor any other Struts textbook (though I did read and appreciate a good chunk o

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
That's why I prefer Perl ;) On 6/4/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: That depends on your perspective: if("10" != 10) doesn't even compile. Some people would say that makes Java broken. :( - -chris - To u

Re: [OT] Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
All working. I've been doing well at making a perfect fool of myself... I appreciate you taking the time to point out my obvious mistakes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
As per your advice, I tried explicitly casting the map to a Map public void setParameters (Map map) { Map myMap = map; Object m = myMap.get("criteria"); message = m.toString(); } No difference. message gets set to [Ljava.lan

[S2] Accessing URL encoded GET data (bug found?)

2007-06-04 Thread yitzle
I am implementing the ParamterAware interface to get to the parameter. The interface has a setParameters(Map parameters) that I'm supposed to be able to use to access the GET data encoded in the URL. From the JavaDoc API: "Note that all parameter values for a given name will be returned, so the

Re: Using a tag as an attribute value

2007-06-04 Thread yitzle
Shouldn't that be jsp:attribute rather than jsp:param?... L. Erm... Maybe? I got it working -> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Empty emails [was Retrieving HTTP query string]

2007-06-04 Thread yitzle
Not sure why, but the body of the emails is in the attachment. On 6/4/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: what are these empty emails? musachy On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > The information contained in this electronic message and any attachments > to

Re: Retrieving HTTP query string

2007-06-04 Thread yitzle
On 6/4/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > How do I get the Request object? Struts version? S1: It's passed in to Action.execute(...) S2: Implement ServletRequestAware http://struts.apache.org/2.x/struts2-core/apidoc

Re: Retrieving HTTP query string

2007-06-04 Thread yitzle
On 6/4/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > If I got a URL with a parameter embedded in it, how > do I check what the query string is? Struts version? d. Sorry. Struts 2 --

Re: Retrieving HTTP query string

2007-06-04 Thread yitzle
Its as simple as using the Request object. Request.QueryString Maybe I am getting the question wrong. Can you explain the scenario in which you are using this? How do I get the Request object? Implementing RequestAware gets me a map... There's a sun.misc.Request object, but that doesn't look rig

Retrieving HTTP query string

2007-06-04 Thread yitzle
If I got a URL with a parameter embedded in it, how do I check what the query string is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Using a tag as an attribute value

2007-06-01 Thread yitzle
I got a linkIf.tag file that's working well. It checks the test and either creates a link the the url with the body as the link content (ie < a href="<%=url%>" >) or just shows the body sans link. I want to set the test attribute to be , and that's where I run into trouble. I tried:

Re: Table Tag With Freemarker Templates

2007-05-31 Thread yitzle
Please use "user@struts.apache.org" for the "to:" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [s2]hot deploy java and struts.xml changes in tomcat

2007-05-30 Thread yitzle
Did you look at http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server ? Also view: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Reload%20An%20Existing%20Application

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread yitzle
talled for this, since I > noticed maven downloads > the required components on its own. Don't know what I am doing wrong here. > can someone please help... > thanks, > robin > > > > > Dave Newton-4 wrote: >> >> --- yitzle <[EMAIL PROTECTED]> w

Re: struts 2 setup for tomcat 5.5/6

2007-05-30 Thread yitzle
I'm using Struts2 + Tomcat (for a whole 2 weeks!) and its all good. The way I deploy is by shutting down Tomcat, using an ANT script to copy to files into the Tomcat/webapps and starting Tomcat. I think you can deploy without closing Tomcat. You may want to check out Tomcat's manual... There's the

Re: [OT] Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: I'm starting to feel like we're doing your homework for you. I'm sorry you feel that way. If you prefer not to reply, its your prerogative. I am just trying to understand the technology. A "Struts project" is not a servlet. A Struts project mi

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
Alright. Read that page. Wikipedia's definition needs updating. What I understand from that is that a servlet is basically like a Java CGI program that runs in the web server process. So, it would seem a Strut project is a servlet. It runs inside the web container, receives an HTTP request, genera

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
Oh. OK. That makes sense... They have some sample code here [1] that made it "click" for me. Thanks! [1] http://www.infoq.com/articles/converting-struts-2-part1 On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > SessionAware o

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
SessionAware only provides a setSession() method. No getSession(). Do I use setSession both to set and get Session variables? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
The SessionAware documentation you linked me to earlier [1] states: "This interface is only relevant if the Action is used in a servlet environment." So is SessionAware really ServletSessionAware and/or ServletRequestAware the same as RequestAware? (I'm not trying to equate two classes, but rather

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- yitzle <[EMAIL PROTECTED]> wrote: > Now I need to figure out what classifies a Servlet > vs a Web Application. Er... In case you're serious, a servlet is part of a web application. d. Let me see if I get this...

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
Now I need to figure out what classifies a Servlet vs a Web Application. Wikipedia should be of use... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
No, you should implement SessionAware http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/SessionAware.html55 and avoid being tied to the Servlet spec. ... unless I am writing a Servlet. - To unsubs

[S2] Obtaining Session/Request Object

2007-05-29 Thread yitzle
I want to store session information. From what I understand, the best way to do this is by accessing the Session Object. It appears I get the session by getting the Request Object (HttpServletRequest or whatever) and calling its getSession(). Struts1 had execute() methods that took a Request as

Re: [S2] Field is not changed

2007-05-29 Thread yitzle
Might help to see your Action class code. Do you have a method: public String getTest1() and getCallTextSubject() ? On 5/29/07, Michał Letyński <[EMAIL PROTECTED]> wrote: Hi. In my action class i have to different String fields(setters and getters are aplied). String test1; String test2; In my

Re: [S2] How to set an action as input result ?

2007-05-29 Thread yitzle
Somewhat of a new user myself, but I think you want to read this: http://struts.apache.org/2.x/docs/result-types.html The default result type is Dispatcher Result. Used for JSPs. You want a Chain Result for a .action . The page got sample code. Yay. I'm going to be using this myself. I guess it

[S2] Session Beans - how to make?

2007-05-26 Thread yitzle
Hi all. I'm a Struts Newbie here, so I apologize for the stupid question ;) I'm working on making a fairly large Struts project. Most data will be passed from one page/JSP to the next. The login info has to be available on the server at every action. How do I make a session bean or whatever that'