Hello Laurie,
Thanx a lot for replying.Let me tell you the exact
scenario.I am developing a discussion forum for my Project.There is one JSP
called "View_topic.jsp".This will display the list of all topics in the
Discussion Forum.Before this JSP one action class say "view_topics_Ac
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. If I
change the v
newton.dave wrote:
>
> --- bugs_ <[EMAIL PROTECTED]> wrote:
>> I must find some good tutorial for ognl
>
> http://struts.apache.org/2.x/docs/ognl.html
> http://struts.apache.org/2.x/docs/ognl-basics.html
>
> http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html
>
> Dave
>
>
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.jenkov.com%2Fjava-reflection%2Fgenerics.html
On 9/23/08, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Sounds reasonable until you remember
--- On Tue, 9/23/08, Emil Lundberg wrote:
> (Sorry for the double post)
> I looked around a bit in the navigator and found this file:
>
> project-version="1.5.0">
>
>
> source-path="/src"/>
> source-path="/build/classe
--- On Tue, 9/23/08, Emil Lundberg wrote:
> Like I said, I'm using Eclipse, so I don't really
> know where everything ends up on the server.
You'll want to know the application context root.
IIRC the default is that Eclipse will create an application context with the
same name as the project--y
(Sorry for the double post)
I looked around a bit in the navigator and found this file:
---/.settings/org.eclipse.wst.common.component---
source-path="/build/classes"/>
source-path="/classpath"/>
end .settings/org.eclipse.wst.commo
Hi,
I am also facing the problem of invalid field value. I didnt give any
validation for the datetimepicker but it validate itself and give this field
error. Pls help asap.
With Regards,
Ashok
Torsten Römer wrote:
>
> Great, that was quickly fixed :-)
>
> I'm looking forward to 2.1.0!
>
>
Dave:
Like I said, I'm using Eclipse, so I don't really know where everything
ends up on the server. I've set the default class directory to root>/build/classes, and that's where struts.xml is. The default content
root is /content, if that's any help.
Alberto:
Yes, I have a /classpath folder,
ManiKanta G wrote:
Hi,
I m practicing AJAX in S2. And in response to my previous mail, Dave replied
That's what Ajax does (loosely speaking): returns HTML fragments (or data as
JSON, XML, etc.). That's the point of it--so you don't have to return entire
pages and refresh the entire window.
Unfortunately your struts-config.xml and JSP code didn't make it through
to the list properly. Make sure you're sending your message as plain text.
A couple of questions:
*) How are you accessing the page? (i.e. what URL are you typing?)
*) Are you sure you are calling the action before the JS
You never answered the question about where you were deploying it to: are you
deploying it to the root context?
Dave
--- On Tue, 9/23/08, Emil Lundberg <[EMAIL PROTECTED]> wrote:
> Yes, it is configured to intercept all requests, and I
> wouldn't get a Struts error message if the FilterDispatche
Sounds reasonable until you remember two words: type erasure. There is
no way to 'glean the generic type' of a collection at runtime.
L.
Gabriel Belingueres wrote:
I agree too.
2008/9/23 stanlick <[EMAIL PROTECTED]>:
I agree totally! If the TypeDeterminer had called getEmployees() *and* ha
I just tried both on my own terminal and these work just fine. Here is a
layout of my war:
foo
- WEB-INF
-lib
struts2-core.jar (and the other 3 minimum jars you need)
-classes
-struts.xml
-jsp
-page
-home.jsp
-web.xml
you said you have a classpath folder?
Em
Try this:
http://wiki.apache.org/struts/StrutsWidgets#head-d413131b40091e2337eb036c8a7ce9e43f428aec
On Tue, Sep 23, 2008 at 7:47 AM, cpanon <[EMAIL PROTECTED]> wrote:
> now the error is when I submit on a very simple form with the code below it
> states:
>
> No getter method available for proper
Yes, it is configured to intercept all requests, and I wouldn't get a
Struts error message if the FilterDispatcher didn't launch, would I?
And I did post my struts.xml and the URL, but Mr. Dave didn't include it
in his reply. Both http://localhost/home.action and
http://localhost/random.action
I agree too.
2008/9/23 stanlick <[EMAIL PROTECTED]>:
>
> I agree totally! If the TypeDeterminer had called getEmployees() clearly did for iterator> *and* had bothered to glean the generic type of
> the key, it would have recognized the action expected the key to of type
> String. If the data ty
Hello
I was able to configure it to keep both separate. However now the error is
when I submit on a very simple form with the code below it states:
No getter method available for property value for bean under name dropDown
dropDown is just a collection of LabelValueBean. I just expected on su
I agree totally! If the TypeDeterminer had called getEmployees() *and* had bothered to glean the generic type of
the key, it would have recognized the action expected the key to of type
String. If the data type is specifically spelled out and the framework
decides a type diametrically opposed,
Hello Alexander,
First of all thanx for replying.My code looks very much
unclear here.You can refer this link
http://forums.sun.com/thread.jspa?threadID=5333420.Again topic_list is my
arraylist.I have created it in action class & I have set it in request
scope.Same arraylist I
Hi Alberto, thank you for your answer !!! Very helpful !!!
J.
--
View this message in context:
http://www.nabble.com/2-newbie-questions-about-Struts-and-JSP-tp19627021p19628686.html
Sent from the Struts - User mailing list archive at Nabble.com.
AFAIK, OGNL does not have any support for generics, but even if it
would support it, I would prefer that it wont be too smart, for
example in:
I prefer that abc be treated as an action property and call method
getAbc() than coerce it to the string 'abc'.
2008/9/23 <[EMAIL PROTECTED]>:
> Those
If you are developing using Tomcat (hopefully you are), consider reading
the comments (and documentation) on the Jasper 2 JSP Engine.
Particularly look here:
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html
Specifically, trying the flags "keepgenerated" will bring some light to
your
djConfig.baseScriptUri.length' is null or not an object means the dojo.js which
configures baseScriptUri attribute
via the function
dojo.hostenv.getBaseScriptUri = function(){
was never initialised properly
with the end result the baseScriptUri ws never initialised
struts needs to know the locati
Hi,
I am studying JSP and I understand that these pages are translated into java
code servlets, which are then compiled and executed on the application
server.
i) Do these 'JSP servlets' implement the HttpJspPage interface defined in
javax.servlet.jsp?
ii) Does Struts (or Spring MVC) provide i
HI,
Here is the lot of examples and tutorials on Java mail api. Read at
http://www.roseindia.net/javamail/
Enjoy.
-Original Message-
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 5:38 PM
To: Struts Users Mailing List
Subject: RE: Java Mail errors
L
>is it public static void main() what you are saying. is it
> required for every class?
Not exactly, the method main() is needed if you want to launch the
program (it's a entry point to your application), but if you writing
Java class which will be used with server or with some ot
Hi,
I am using struts2.0.11. I will try the example given in the url. Thanks for
the url.
Jishnu Viswanath wrote:
>
> Oops I mean Late version needs plugin
>
> Regards,
>
> Jishnu Viswanath
>
> Software Engineer
>
> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
>
> Tavant Technol
Hi,
I created a plugin for Struts 2 and posted a news in the Struts 2 Plugin
Repository Wiki.
However, I cannot see my plugin listed in the
http://cwiki.apache.org/S2PLUGINS/home.html announcements list. (I can see
it in http://cwiki.apache.org/confluence/display/S2PLUGINS/home).
I noticed th
LOL
Well from the last reply you need to learn java, but if you know or some
of your friends know Java refer to
http://java.sun.com/products/javamail/javadocs/javax/mail/package-summar
y.html for mailing things.
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * (
Oops I mean Late version needs plugin
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: EXCELLENCE
-Original Message-
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED]
Sen
Which version of struts are you using? Later versions of sturts 2.1.x
check http://struts.apache.org/2.0.11.2/docs/ajax-tags.html
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: E
Here's a starting point for you: http://java.sun.com/new2java/
Nils-H
On Tue, Sep 23, 2008 at 1:36 PM, Narasimha Raju Naidu
<[EMAIL PROTECTED]> wrote:
> thanks for your reply,
>
>is it public static void main() what you are saying. is it
> required for every class?
>
> On Tue, Sep
Hi,
Thanks for your replay Viswanath.
1. I tried without theme attribute, eventhen its behaving like a combo box.
2. When I put theme = "ajax" in autocompleter tag, its behaving like a
textbox, not at all displaying the list from action class.
Kindly help me...
Thanks in advance
Jishnu Vi
Those are all good points, but when my collection was expressly declared to
be a Map I would sort of expect the key to be a String!
When the framework "guesses" for a different type (feature?) and your
application fails; all the discussion about valid number systems is sort of
meaningless.
Scott
thanks for your reply,
is it public static void main() what you are saying. is it
required for every class?
On Tue, Sep 23, 2008 at 4:55 PM, Lukasz Lenart <[EMAIL PROTECTED]
> wrote:
> Hi,
>
> I think you should first read some Java tutorial how to write Java
> classes (you are m
Hi,
I think you should first read some Java tutorial how to write Java
classes (you are missing class declaration),
next try to find some Java Mail Tutorial with Google
and the least and the most important is that this group is to support
Struts users, not to solve any kind of Java problem you can
It works fine. Thank you Alex, thank you Lukasz.
2008/9/23 Gianluca Musella <[EMAIL PROTECTED]>:
> ok, it sounds better.
>
> thank you Lukasz
>
>
> 2008/9/23 Lukasz Lenart <[EMAIL PROTECTED]>:
>>>>> class="org.almayer.web.action.SessionAction" method="login">
>>>>> type="redir
1. You need to have theme=ajax otherwise autocompleter won't work.
2. Did you try to remove simple theme from s:autocompleter ? or put ajax
there instead of simple.
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
w
hi to all,
I am new to java mail. i want to send an email from my system
using the following program:
---
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public void postMail( String recipients[ ], String
ok, it sounds better.
thank you Lukasz
2008/9/23 Lukasz Lenart <[EMAIL PROTECTED]>:
>>> class="org.almayer.web.action.SessionAction" method="login">
>>> type="redirectAction">${redirectTo}
>>
>>
>> This is the login action's method (I omitt logic):
>>
>>public Str
> class="org.almayer.web.action.SessionAction" method="login">
> type="redirectAction">${redirectTo}
>
>
> This is the login action's method (I omitt logic):
>
>public String login() throws Exception {
>return "home";
>}
>
You have to add getter
Str
Mmm... doesn't work.
This is in my struts.xml:
${redirectTo}
This is the login action's method (I omitt logic):
public String login() throws Exception {
return "home";
}
And this is the Tomcat response:
type: Status report
message: No
thank you ManiKanta, it helps much.
2008/9/23 ManiKanta G <[EMAIL PROTECTED]>:
>> in an interceptor is possible to know which action's method is called?
>
>
> You can get the requesting method name by using
> invocation.getProxy().getMethod().
>
> Similarly you can get the action name: invocation
Hi
This has lot of info about sending ajax requests
http://developer.yahoo.com/yui/
-Original Message-
From: ManiKanta G [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 4:03 PM
To: Struts Users Mailing List
Subject: Re: Getting acknowledgment for an AJAX request
> Please
> Please check http://www.roseindia.net/ajax
well I didn't find any thing. More over site speaks about regular AJAX
there.
Can some tell me how to do that in S2. I mean JSON or some other.
Regards,
ManiKanta
> in an interceptor is possible to know which action's method is called?
You can get the requesting method name by using
invocation.getProxy().getMethod().
Similarly you can get the action name: invocation.getProxy().getNamespace().
Of cource invocation.getInvocationContext().getName() will also
hi,
Please check http://www.roseindia.net/ajax
Thanks
-Original Message-
From: ManiKanta G [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 3:41 PM
To: Struts-User
Subject: Getting acknowledgment for an AJAX request
Hi,
I m practicing AJAX in S2. And in response to my previ
Hi all,
in an interceptor is possible to know which action's method is called?
For example, in
[...]
actionInvocation.getAction() contains an instance of
org.almayer.web.action.HomeAction, but how to know about thr called
executeSecure?
Thanks
Gianluca
---
thank you Alexander, I understand well now.
Bye,
Gianluca
2008/9/23 Alexander Baetz <[EMAIL PROTECTED]>:
> here a longer explanation:
>
> when I realizes the user isnt authenticated the link (the action to be
> called) is saved (in a bean, a session, somewhere where you find it back
> later)
Hi,
I m practicing AJAX in S2. And in response to my previous mail, Dave replied
> That's what Ajax does (loosely speaking): returns HTML fragments (or data as
> JSON, XML, etc.). That's the point of it--so you don't have to return entire
> pages and refresh the entire window.
>
> So, If I wan
here a longer explanation:
when I realizes the user isnt authenticated the link (the action to be
called) is saved (in a bean, a session, somewhere where you find it back
later)
then the user logs himself in. the login action logs him in, checks if a
redirect was saved (in the bean, the sessio
Thank you.
I can't understand how to realize the redirect descripted here:
> - during the login action, after the login is confirmed the action realizes
> that a redirect is requestet (to a.action)
Particulary I can't understand what it means:
> ${redirectTo}
Do you have a sample?
Gianluca
Hi,
I am facing an issue in struts2 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"
and autocompleter is
UITOT schrieb:
Hello all,
I have developed 1 application using struts.I am getting this error in my
JSP.I have used logic:iterate.I have populated an arraylist in action class
which I am using in my JSP.I am able to see the data from the arraylist in
my JSP but I am getting error when I am clicki
Hi,
I am facing an issue in strts2 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"
and autocompleter is b
Hello all,
I have developed 1 application using struts.I am getting this error in my
JSP.I have used logic:iterate.I have populated an arraylist in action class
which I am using in my JSP.I am able to see the data from the arraylist in
my JSP but I am getting error when I am clicking on the hyperl
57 matches
Mail list logo