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
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
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
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
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
> > > > > >
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
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"
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
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
> -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
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
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
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
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
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
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
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
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
Consider wrapping it in a tag...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
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
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
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.
---
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
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
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]
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?
---
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
--
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]
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
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:
Either of those two should solve my problem.
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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?
--
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]
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
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
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
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
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
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.
---
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
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
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
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
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
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
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]
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
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
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
--
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
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]
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:
Please use "user@struts.apache.org" for the "to:"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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
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
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
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]
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
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...
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]
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
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
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
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
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'
72 matches
Mail list logo