You can process the json response using yui plugins.There is a module called
ConnectionManager in yui using that you can invoke your json action class as
shown below
var mySource = new DataSource('some/some/example.action?');
below is yui link.
http://developer.yahoo.com/yui
YAHOO.util.Event.
> As I said, the JSON plugin would be a good starting point.
>
> http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Thanks. I've experimented with the JSON and I m able to return a JSON
string, but was not able to process that in the jsp.
How I m going to process the JSON in jsp? Do I need to w
Hi Pankaj,
If you open firefox and see the page info-->Media ,you can see the image
path being picked up by the JSP . That might help .
Regards,
Kavita
"Pankaj Gupta" <[EMAIL PROTECTED]>
09/25/2008 09:56 AM
Please respond to
"Struts Users Mailing List"
To
user@struts.apache.org
cc
S
Hi,
I am using struts 1.3. I have kept jsp folder parallel to WEB-INF folder.
Inside jsp pages I have images folder, where I am keeping the images
referred by jsp.
In jsp I giving src of images as as : "images/image-1".
So when I access the jsp directly, then I can see the images.. But if try
Ryan,
I just went through a similar learning process. I found that by
following the model of the online tutorial, I had a lot more luck
getting started than trying to start from scratch.
Load up the WTP plugins for Eclipse, grab the "quickstart" zip file
mentioned in the online tutorial, an
I just read the Manning book on Struts 2 and understand the theory behind
Struts but am a little bit confused as to how to actually implement my first
app in practice. The locations of the config files, etc are a little
confusing.
For my development environment I'm using Maven 2 + Ecplise IDE. I'
Keyword: struts2 preparable, spring OpenSessionInViewFilter, hibernate
transaction management.
Background:
We use OpenSessionInViewFilter in our web xml to enable lazy loading in web
views.
The struts action class provides a basic function in adding, updating and
deleting data entity as a cont
Hi all,
I'm having an issue while implementing an App Listener for my App.
Thing is that the ApplicationListener appears to be working fine, as from the
logs I can see that the contextInitialized method is being invoked.
Inside the method I do this call, same way as the Mailreader sample app does
Thank you very much. I actually needed to display one set as the property
and the other as label property. So it is strictly for the output. I have
implemented that as the request.attribute and it works with just fine. Thanks very much.
Sincerely
Zhu, guojun
On Wed, Sep 24, 2008 at 3:31 PM,
Like you, I was under the impression that generics were erased and you were
out of luck at runtime! After the type conversion burn at the top of this
thread, I started to dig in and found this article. I have experimented
with it and it works great. As it turns out, this is probably about all
an
That you can do it in server side also, I mean you intercept, remove the
white space and proceed.
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: EXCELLENCE
-Original Messag
Guojun Zhu wrote:
Hi,
I am new to struts. I am using Struts 1.2.9. I have two String arrays
generated in an action should go to the JSP pages . I can set
it as an attribute in request/session and pull them in jsp pages. But it
seems a bit against the idea of separation between model and view
ManiKanta G wrote:
Thanks Laurie,
If all you need to return is a number or true/false, simply write that to
the response in your action method and return null
what do you mean writing to response? You mean using response.xxx methods?
or some thing else?
More or less, yes: write your respons
If the action isn't being called, that would explain why the data the
action pushes into request scope can't be found... Sounds like the link
is pointing to the JSP instead of the action, then. How are you
rendering the links? What are they rendering as? (i.e. what is the
generated HTML?)
L.
I stand corrected -- and thanks for the link; I've never seen this
documented before. Very interesting...
L.
[EMAIL PROTECTED] wrote:
http://www.google.com/gwt/n?eosr=on&q=Reflection+generics+Java+&source=m&hl=en&ei=ZWfZSODxI5nYqAKR1t53&sa=X&oi=blended&ct=res&cd=4&rd=1&u=http%3A%2F%2Ftutorials
I can't believe I haven't run into this issue before but I just noticed that
you can't use JSP 2.0 syntax inside a Sitemesh decorator.
My Sitemesh config is exactly like as described here:
http://struts.apache.org/2.x/docs/sitemesh-plugin.html
The only difference is that I'm using PageFilter ins
I finally got it! I spotted this attribute: deploy-name="MyProject"/> in org.eclipse.wst.common.component (see
below). I changed that and the context root to "/" and now I can access
my actions from the server root (http://localhost/foo.action)!
Thanks a lot for your help!
/Emil
-org.ecli
I want to do it on the client side, basically I want the autocompleter to
work and find the proper string even if there is a difference between the
string from the list and the string typed by the user..
Jishnu Viswanath wrote:
>
> You want a client side removal or server side? If server si
You want a client side removal or server side? If server side, why don't
you write interceptor for it? And if client side you have to write js.
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE
Hello everybody,
I have a problem with configuring an action mapping.
The related Struts-config.xml chunk is:
The input form beans are all declared:
The problem is that when from the URL /insertAuthor I access
to the url /showInsertedAuthor, Tomcat indeed access to the
new URL but
I am trying to ignore any white space entered by the user in the
autocompleter combobox. I appreciate any help/hint
--
View this message in context:
http://www.nabble.com/I-am-trying-to-ignore-any-white-space-entered-by-the-user-in-the-autocompleter-combobox.-tp19652266p19652266.html
Sent from
some clarification on which (Struts vs JSF) lifecycle does what would be
appreciated
thanks,
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission i
Assumming you are talking about Struts 2, I would recommend checking out
the source code and trace how the UIBean delegates to the Component
class (super class). All Struts2 ui objects are subclasses of
"Component". Additionally, UIBean adds a set of methods that are very
useful (particularly t
I think this is hardly a Struts question, but an Eclipse question (which
granted could be a bit complicated when not understanding WTP well enough).
I'm going to assume that the following assumptions are true:
- You are using WTP in Eclipse.
- You are using Eclipse 3.3.x
- You are working on a
Hi,
I have a i18n problem when validating a field in my action. (Struts
2.0.11.2)
My validation:
@RequiredStringValidator(
fieldName = "user.username", key = "error.required", message = "")
My resource bundle reads this:
error.required=${getText(fieldName)} is required.
To have a lo
Cant you put if condition in the ftl?
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: EXCELLENCE
-Original Message-
From: Narayana S [mailto:[EMAIL PROTECTED]
Sent: Wedn
Hi
i missed my previous email about the same topic, one guy helped me to
implement struts UI tag customization. i could extend the Bean and Tag
classes to implement the required behavior.
now based on some value from the database i want to stop rendering of the
control itself. means for ex
Wow, nice !!! Thanks Joachim !!!
--
View this message in context:
http://www.nabble.com/Struts-vs-JSF-newbie-questions-tp19645533p19646792.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe,
There is a JSF-plugin for Struts. Have a look at
http://struts.apache.org/2.1.2/docs/jsf-plugin.html
Hopefully this answers some of your questions.
Joachim
UseTheFork schrieb:
Hi,
I am still in my quest to understand J2EE technologies. Today, I am reading
about JSF. My questions are:
i) I u
Is avoiding OGNL a possibility rather than avoiding Struts 2 altogether?
On Wed, Sep 24, 2008 at 6:47 AM, yorlick kilroy <[EMAIL PROTECTED]> wrote:
> a few weeks ago I posted the same problem with struts2 concerning poor
> OGNL performance. Absolutely none of the advice given has helped. The
> App
a few weeks ago I posted the same problem with struts2 concerning poor
OGNL performance. Absolutely none of the advice given has helped. The
Application I wrote in Struts2 needs to handle and render large lists
displayed in rather complex tables. I have a similar application with
similarly complex
Hi,
I am facing an issue in struts2.0.11 autocompleter.
Issue:
In jsp page where I have used autocompleter, IE is showing an alert message
with "stack overflow at line: 8259" and in the same jsp page, I have an
error as "djConfig.baseScriptUri.length' is null or not an object"
Jsp code for auto
Hi,
I am still in my quest to understand J2EE technologies. Today, I am reading
about JSF. My questions are:
i) I understand that in JSF, you have to define a navigation model from
pages to pages. Therefore, it means that JSF is incompatible with Struts,
correct? It is an either/or situation, on
Hi,
I tried the example given in
"http://struts.apache.org/2.x/docs/autocompleter.html";(to get list from an
action), but it is not working with struts2.0.11. It is getting the list
form action, but all the values are displaying in same line.
Kindly help me.
Thanks in advance.
Rag wrote:
Hi,
Thanks for your replay Martin.
I am new to struts. In my project I am not at all changing any dojo file.
Whether I need to include any javascript code to fix the issue.
Kindly help me...
Thanks in advance.
On 9/23/08, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
>
> djConfig.baseScriptUri.le
Hi Guojun,
in case of struts1 i would use form (struts form).
Best greetings,
Paweł Wielgus.
2008/9/24 Guojun Zhu <[EMAIL PROTECTED]>:
> Hi,
>
> I am new to struts. I am using Struts 1.2.9. I have two String arrays
> generated in an action should go to the JSP pages . I can set
> it as an att
Thanks Laurie,
If all you need to return is a number or true/false, simply write that to
> the response in your action method and return null
what do you mean writing to response? You mean using response.xxx methods?
or some thing else?
The bottom line is that, once you understand what it is yo
37 matches
Mail list logo