Hi,
I have a requirement where I have to hit the external
url and get the response and display it on the browser ,this can be done
using httpclient but my requirement is I am using a proxy pass in
apache.when I am make a request to the url that should be proxy pa
Rick Schumeyer wrote:
I'm trying to follow the directions at
http://struts.apache.org/2.x/docs/tiles-plugin.html
but with no success. At the moment, I am only trying to get the app
running with tiles configured...I'm not actually using tiles yet!
I get this error:
SEVERE: Exception sending
I'm trying to follow the directions at
http://struts.apache.org/2.x/docs/tiles-plugin.html
but with no success. At the moment, I am only trying to get the app
running with tiles configured...I'm not actually using tiles yet!
I get this error:
SEVERE: Exception sending context initialized eve
Hi,
Thanks for your quick response. I will take a look at this. But my
question is: can I configure my actions in a way/somehow that they
execute different methods when called through different HTTP methods
e.g. GET, POST maybe even DELETE.
Call the action’s input method if it is a GET, call
I left out of the original post that I am using Struts 2.
--
View this message in context:
http://www.nabble.com/dynamic-checkboxes-and-radio-buttons-in-one-group-tf1971631.html#a10423856
Sent from the Struts - User mailing list archive at Nabble.com.
-
well, the number of questions and set of answers for each are dynamic
(determined at runtime). I could look at the response object but hopefully
there is a cleaner way of implementating this.
Dave Newton-4 wrote:
>
> --- elan <[EMAIL PROTECTED]> wrote:
>> On submit how do I capture which radio
--- elan <[EMAIL PROTECTED]> wrote:
> On submit how do I capture which radio buttons
> were selected since the radio name field is dynamic?
Don't make the whole name dynamic; use a map (or
something similar).
d.
__
Do You Yahoo!?
Tired of spam? Y
I am trying to figure out the same thing but using Struts. I have the
following jsp to display my questions.
For example this will display 2 questions and each question has a set of
answers with radio buttons. On submit how do I capture which radio buttons
wer
The version of Tiles 2 shipped with Struts 2.0.6 is an early snapshot. The
Strut2 plugin for Tiles 2 only works with this version. It will not work
with the latest Tiles 2 release, 2.0.3.
I'm using the Struts 2.0.6 version of Tiles2 without any issues so far.
Just be careful with your definitio
אלחנן מעין wrote:
can i use the simple theme just for the form, and use the usuall ones of
all other forms?
Yes: you can specify the theme for the whole page in the s:head tag; for
a particular form in the s:form tag; or just for selected form inputs,
using any mix of themes you want within t
I've been partially paying attention to this list for several months
while I was mostly working with Ruby-on-Rails. I finally have some time
to try and come up to speed on S2. I will obviously need some sort of
view/template solution, and I'm leaning towards JSP + tiles2. (But I'm
willing to
although i haven't done much of web frameworks development i recommend
against turning you actions, into the actuall pojos, develop as much pojos
as you can, with only pure java elements (or commons utils for allready been
there done that fame of mine), test them as though they are alone in the
can i use the simple theme just for the form, and use the usuall ones of all
other forms?
when you say render manualy what do you mean exactl? the current beaviour is
that error messages appear automtially which is nice, but they appear rather
misplaced, so placeing them where i want sounds pr
Thanks for sharing that tip. You can also simply make a JSP 2.0 tag
and bypass the whole Struts 2 tag system if you'd like. That is a
simple way to create your own tags that encapsulate common HTML. The
main thing the Struts 2 tags add is the ability to call them from JSP,
Velocity, and Freemar
Yep, that should work almost exactly as you describe, although what I
would do is use a single action definition. You can specify exactly
what method to call either in the URL (via the action!method.action
syntax) or in your action definition. Say you make the default case
be "input" in your act
All you need to do is expose your TResultSet object via a getter on
your Action, then access it like any other object using JSP-EL in your
jsp. You can even use the JSTL for-each tag to handle iteration. For
example, if you exposed this object using getResultSet(), in your jsp
you could access i
Your Actions *can* be POJOs... they also *can* implement certain
interfaces, and they *can* extend certain base classes... implementing the
interfaces or extending the base classes gives your Actions certain
inherent abilities, or marks them as being usable by the framework in
certain ways it other
You were correct - Actions in S2 can be POJO's. They don't need to
implement or extend anything, and in fact, don't even need any
annotations. Now, we still do have an Action interface with a single
execute method that you can implement if you'd like, and we also have
several support classes you
Well, there is another option which I should have mentioned: you can use
the 'simple' theme to get plain versions of the form inputs and wrap
whatever markup you want around them.
The downside of that is that you have to render labels, error messages
etc. manually, but it would give you the fl
It's quite possible I'm confused, but I thought that actions in S2 were
now POJOs. In Webwork in Action, for example, we see:
public class HelloWorld implements Action
but in the blank application we see
public class ExampleSupport extends ActionSupport
Is this an example where Webwork in Ac
How do I make the request to have UI tag attributes modified to evaluate an
OGNL expression? Without support for substitution on key attributes like
"key," we are forced to write if/else code and duplicate many statements in
a JSP. I looked at the MailReader example last evening, and the logic
r
Thanks for the answers, but I would like a direct answer to my questions
(1)... (2)... . Any thoughts?
-Original Message-
From: Ray Clough [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 10, 2007 1:41 PM
To: Struts Users Mailing List
Subject: Re: The design of bread crumb trail
Are you usi
Are you using S1 or S2?
I once implemented a S1 bread-crumbs facility using a custom
RequestProcessor to put a stack of page url's into the user's session.
This worked well, and allowed a page to return to any of the last 3
pages. I used it to go from the catalog page, where the user made a
isn't there another way? like maybe wrapping them in tables (table that has
one row, once cell) and have the table boreder visible?
otherwise if i understand this right, i'll have to create new "Group" tag,
that will have nested regualr tags , sounds rather difficult to me, becouse
then i wo
Hi,
I'm newbie in Struts, and I have begin with Struts 2. I have an
ActionSupport object that contains a complex object TResultSet (this
object communicates with a remote server and this server sends a lot of
information that is stored into the TResultSet client).
class TResultSet
{
private
I would use the paging feature in ActionForms
A single ActionForm can be used for the wizard style data collection.
It also hooks in with the validator, allowing you to specify that for page
1, only page 1 fields will be validated, such as your name and your SSN.
Since the ActionForm can have
Hi,
I worked with Spring-MVC in my past projects and I really liked the idea
of my form actions/controllers to initialize my forms when I access them
with an HTTP GET and then process the forms with an HTTP POST. The nice
effect of this is that I have one single URL that does form
initializat
Say I have two Jsp pages, Page 1, Page 2.
On page 1 I have some text fields such as Name, SSN for example, and the
user types in Name and SSN and then submit the form and the navigation
goes to page 2. On page 2 I have the bread crumb trail saying Page 1>>
Page 2. Notice that Page 1 is a clickable
Kikoolol.
Thanks for your help, but if you had read my question, you will have
understood that we don't care what will be in my tag. In do know that
displayTag is not Struts...
By the way, I found my mistake. Tags does'nt more exist, it is themes and
templates.
So here is my JSP :
2007/5/10, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
In fact I would like to put some HTML around displayTag.
DisplayTag IS NOT part of Struts:
http://displaytag.sourceforge.net/
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTE
Hi all,
I don't find any documentation on that, so I post here.
I would like to create my own tag (in Struts 1 I extend
org.apache.struts.taglib.html.BaseFieldTag for example) to display a
table. In fact I would like to put some HTML around displayTag.
How could I do ? Where are the new "baseF
If you can use the tags that Struts already provides, then it is very easy,
check this for examples:
http://struts.apache.org/2.x/docs/ajax-tags.html
if not, you can use dojo.bind in a normal fashion, just passing the url of
your action as the url to use, and set the innerHTML when the request
r
Hi.
I want to invoke the action from dojo (the result of action is a jsp)
and then innerHtml this generated page. Is it possible ? If yes, how to
get this generated jsp ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
%{expr} won't work (yet). I modified EditPersonAction on showcase to this:
@Result(name="list", value="${next}", type=ServletRedirectResult.class)
public class EditPersonAction extends ActionSupport {
...
public String getNext() {
return "listPeople.action";
}
public String execute() t
ok, I added "URIEncoding="UTF-8"" in server.xml tomcat-config-file
Now it works fine.
--
View this message in context:
http://www.nabble.com/Decode-Request-Parameters-tf3718189.html#a10411761
Sent from the Struts - User mailing list archive at Nabble.com.
--
Read up on Web Start, it's not all that new, and a web start application
isn't going to be able to efficiently use struts for it's presentation.
-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 10 May 2007 04:15
To: Struts Users Mailing List
Subject: RE: Good idea of
What does this has to do with struts ?
-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 10 May 2007 04:15
To: Struts Users Mailing List
Subject: RE: Good idea of installing a file on host machine
Thanks,
But i heard of a new trechnology called web start.
I thin
BTW it is not related to struts but javascript n client programming query ?
For the sake I am giving u a hint.
It is the way how you are going to set the pattern according to single entry
change.
Take all the required data into the page and set the pattern accordingly.
i.e on change event you
Hi Struts User Community,
I need a rough IDEA / CODE on there are three combo boxes are there
depending on the first combo box selection second combo box has to
populate and depending on the second combo box selection third one has
to populate.
Like populating all the states of country in
אלחנן מעין wrote:
hi..
i saw that all you do in struts tag is place them inside a form tag, and
it automatically renders them as a 2 columns table, but if i want a
diffeent layout? what if i want to have several controls in one group
,and several controls in another group next to them (like
40 matches
Mail list logo