"tutorial" is most likely the context of your web application, so it
will always be a part of the URL to the resources in your app. All
jsps you reference in the configuration, starting with a '/' will
point to the root of the context for your application. So the
behaviour you see is expected.
Nil
kind of OT but i'm one of those developers who tries to stick with the
currently used IDE for html pages. I am using NB 6.0 these days and
support for html really blows. I work with a lot of legacy code so
html pages are using some deprecated tags. NB acts extremely slow
because it is too busy tr
Hi Mohammed, it really depends on whether you're working with html/php,
or jsp/asp/etc, and whether you're a developer or a designer.
As far as I know the most popular commercial product is still
Dreamweaver. I think coders tend to prefer their favourite IDE because
context-sensitivity and refac
hi
i need a WYSIWYG editor , ya ineed to use in my application
On Feb 5, 2008 6:36 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> 2008/2/5, mohammed hussain <[EMAIL PROTECTED]>:
> > Hi anybody knowing the best tools to develop to html page,pls let me
> know
> > thanx
>
> Now seriously, Moha
Randy,
here is my web.xml
http://java.sun.com/dtd/web-app_2_3.dtd";>
Sample Project
Sample Project to Work with Struts2.
webmaster
[EMAIL PROTECTED]
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
Thanks Dave, i am sorry, I didn't explain it properly.
Yes, you understood it correctly. I am submitting form and then displaying
form values in new page.
is working for me.
Thanks once again.
On Feb 5, 2008 10:08 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Raghuveer Rawat <[EMAIL PROTECTED
Loading an Entity in the prepare method is a common use-case.
If you're allowing an Entity to be updated directly from the JSP you'll
probably need the prepare-params-prepare
(set params including entity's ID, params loads the existing entity,
prepare sets the params on the entity instance)
I
--- Raghuveer Rawat <[EMAIL PROTECTED]> wrote:
> Hi, I want to user to preview s:textarea value before sending to db.
> but when I am displaying value using it is not
> formatting it correctly and wrapping it.
>
>
>
I'm not sure what you mean by the tag isn't formatting the
value correctly e
Hi, I want to user to preview s:textarea value before sending to db.
but when I am displaying value using it is not
formatting it correctly and wrapping it.
Is there anyone who faced this problem? Is this correct way to display Text
Area value?
Thanks in advance..
chubi wrote:
Thank you Dave for helping,
Below is the fragment in struts.xml where editLicense should submit to
saveLicense, which in return should redirect to editLicense again. That is
the call to saveLicense is transparent.
Submit to saveLicense was intercepted by validation. Errors were foun
Hello,
I am new to Struts and going through the Struts 2 tutorial found at
http://struts.apache.org/2.0.11/docs/using-tags.html
I am having a problem with the Wildcard Mapping section, where it specifies to
use the following entry in struts.xml:
/tutorial/{1}.jsp
If I use this action definit
It appears that weblogic is trying to download a DTD while parsing some
XML. I would imagine there are probably a few solutions -
1. try to configure weblogic to not validate the xml
2. try to configure weblogic to use another xml parser
I am not a weblogic user though, so that's about as far as
My guess, and it is just a guess, is that your bean is being
instantiated by the Struts2 container but it's not being injected anywhere.
Based on my almost-non-existent understanding of OGNL, the OgnlRuntime
contains a static synchronized map of Class->PropertyAccessor which you
can see being
Thank you Dave for helping,
Below is the fragment in struts.xml where editLicense should submit to
saveLicense, which in return should redirect to editLicense again. That is
the call to saveLicense is transparent.
Submit to saveLicense was intercepted by validation. Errors were found!
What happen
We need to see your web.xml. I'm running Struts 2 projects on WebLogic 9.2
without any problems.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Vigneswar Nagarathinam <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Tue, 5 Feb 2008 17:09:23
you'll definitely need configure in session attributes as in
which session attributes are you losing?
M--
- Original Message -
Wrom: MYXOEAIJJPHSCRTNHGSWZIDREXCA
To:
Sent: Tuesday, February 05, 2008 3:24 PM
Subject: Losing Session Attributes
>
> Hi,
> I'm looking for some help,
daveck wrote:
Hi,
I'm looking for some help, or some input on why I might be losing session
attributes (Not the session itself).
Are you sure? Have you confirmed that the session is the same in both
requests?
[...]
I am setting session attributes in my interceptor to have available
followi
In struts-fonfig.xml I configured as following to get the messages from
DB instead of MessageResource.properties. I have wrote a method to
getMessage(Locale loc, String key) to get the message from db. This
works for en_US locale, Now my question is how can I pass the locale so
that I get the lo
I see, but why are you doing that? If you are going to build the json
string by yourself, then you don't need to use the json plugin at all,
just write it to the outputstream and return null on your action. The
whole point behind using the json plugin is that it will serialize
your object model to
My bad. I just did a search for ognl and came up with that real quickly. I
didn't go through my search results very thoroughly. :)
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Tu
--- chubi <[EMAIL PROTECTED]> wrote:
> After submitting editAction to SaveAction, I want to redirect again to
> EditAction.
> So SaveAction is totally transparent.
> But I get lost all fieldErrors if validation return false.
> How can I chain validation errors?
> I tried the use of several intercep
Hello,
After submitting editAction to SaveAction, I want to redirect again to
EditAction.
So SaveAction is totally transparent.
But I get lost all fieldErrors if validation return false.
How can I chain validation errors?
I tried the use of several interceptors like: validaiton, chain and params;
FWIW, OGNL itself is in the ognl.* package.
Dave
--- Randy Burgess <[EMAIL PROTECTED]> wrote:
> I use standard log4J settings. This example is from a log4j.properties file
> but log4j.xml will work as well. This outputs to the console and since I
> usually use Eclipse it is very convenient as th
I use standard log4J settings. This example is from a log4j.properties file
but log4j.xml will work as well. This outputs to the console and since I
usually use Eclipse it is very convenient as the output goes right to the
console view. The ConversionPattern is usually on one line but it wrapped
wh
--- [EMAIL PROTECTED] wrote:
> you can configure the xwork LoggingInterceptor into your stack..
> class="com.opensymphony.xwork2.interceptor.LoggingInterceptor"/>
>
> looking for clues on OGNL logging???
Set the level on the OGNL classes to DEBUG via whatever mechanism is being
used underneath
you can configure the xwork LoggingInterceptor into your stack..
looking for clues on OGNL logging???
Anyone?
HTH
Martin
- Original Message -
Wrom: QBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCA
To: "Struts Users Mailing List"
Sent: Tuesday, February 05, 2008 3:05 PM
Subject: Re: Custom O
Hi,
I'm looking for some help, or some input on why I might be losing session
attributes (Not the session itself).
Processing Flow:
quest.action --> quest-input.jsp -> quest.action --> MyInterceptor ->
confirm.jsp -> question.action --> quest-success.jsp
I am setting sess
No I haven't. How do I go about doing that?
Dave Newton wrote:
--- Tommy Becker <[EMAIL PROTECTED]> wrote:
If there were a better description, I'd be happy to give it. As far as
I can tell, our custom PropertyAccessor is not being used. What we want
is to be able to say "property" in an
--- Tommy Becker <[EMAIL PROTECTED]> wrote:
> If there were a better description, I'd be happy to give it. As far as
> I can tell, our custom PropertyAccessor is not being used. What we want
> is to be able to say "property" in an OGNL expression and have it call
> getPropertyValue("property")
If there were a better description, I'd be happy to give it. As far as
I can tell, our custom PropertyAccessor is not being used. What we want
is to be able to say "property" in an OGNL expression and have it call
getPropertyValue("property"), not getProperty(). It seems it's
continuing to t
Musachy,
This is the actual response from the action when I invoke it from the
browser:
"{\"questions\":{\"420\":\"Is your Java Application a ME, SE or EE
application?\",\"440\":\"If your Java Application is an SE application
does it use Java Web Start?\",\"450\":\"If your Java Application is a
Oh I am sorry about that! (doh) Do you see the quoutes escaped in
firebug or something? As far as I remember the plugin doesnt escape
the quoutes. If you put the url in your browser you should see the
generated json as it actually is.
musachy
On Feb 5, 2008 2:12 PM, Griffith, Michael *
<[EMAIL PR
Musachy,
Huh? That can't be right...
First of all, the document says it wraps the JSON result in /* ... */
comments, it doesn't say anything about escaping quotes.
Second, the default value is false ;-) Adding this to the result
configuration did nothing to my result. This seems like a bug.
Hi everyone, I'm having trouble with a jsp that has two independent forms,
which are separated with tabs. For some reason when i submit the second
form I get an error saying "javax.servlet.jsp.JspException: Cannot find bean
under name roleList", roleList is a component in the first form. Each fo
Tommy Becker wrote:
I have a question about using OGNL PropertyAccessors. We have an object
on the value stack that we expose to JSP pages that does not have
standard JavaBeans getter/setter methods. From what I can tell, this
leaves us 2 options. We can either call the getter methods explic
add:
false
to the result. See the section "Wrap with Comments" here:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
musachy
On Feb 5, 2008 12:58 PM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> Musachy,
>
> I've looked over the documentation, and looked in the JSONWriter class
> -- and
All you should need is a getter in your action for simulationKey and then
>requestURI="/SimulationReport.action?simulationKey=${simulationKey}"
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Giovanni Azua <[EMAIL PROTECTED]>
> Reply-To: Struts Users Ma
Musachy,
I've looked over the documentation, and looked in the JSONWriter class
-- and it is not obvious to me how to configure this plugin setting.
How is it done?
MG
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 05, 2008 11:23 AM
To: Strut
Don't give up so easily :). That is just a setting on the json plugin
to prevent cross site scripting, and can be disabled.
musachy
On Feb 5, 2008 11:27 AM, Griffith, Michael *
<[EMAIL PROTECTED]> wrote:
> Well, to answer my own question -- the answer is no. The JSON result
> serialization proce
hi,
I require encoding get parameters into the requestURI field but I can't
find the way e.g.
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el"; %>
export="false" sort="list"
decorator="
Well, thanks for the reply
My problem is not setting up DWR.
I have DWR 1.1.3 working with struts 2.0.11 ajax form validation.
I just want to migrate to dwr 2.0. But if I replace dwr 1.1.3 with dwr
2.0, my form ajax validation no longer works. Whenever one required
form field looses focus, I get
Well, to answer my own question -- the answer is no. The JSON result
serialization process escapes quotation marks, so my response that
looked like this before serialization:
{"questions":{"420":"Is your Java Application a ME, SE or EE
application?","440":"If your Java Application is an SE applica
yaa,
in struts shwocase check the web.xml and dwr.xml.
wou would require dwrxxx.jar for this in web-inf/lib and struts theme="ajax"
in the jsps.
hope this helps.
Filipe David Manana-2 wrote:
>
> Hi,
>
> Has anyone been able to put dwr 2.0 working with struts 2.0.11 ajax
> validation?
>
>
H... Butterflies you say. where's my big net.. :)
- Original Message -
From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, February 05, 2008 1:03 PM
Subject: Re: [OT] Re: Best Tool to develop html pages
2008/2/5, Al Sutton <[EMAIL
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> I'm the one with the 9 inch fingers that bend in 6 places so I can do key
> sequences with one hand :).
Ah, so you DO use Emacs.
>
> - Original Message -
> From: "Dave Newton" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> Sent: Tues
Musachy,
I can't seem to create the right blend of Entity objects/list/maps to
allow the JSON plug in to serialize this response for me. If I create
the string below using a loop, can I return it from the JSON plug in
without the plug in doing anything further to it?
In other words, does the p
I'm the one with the 9 inch fingers that bend in 6 places so I can do key
sequences with one hand :).
- Original Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, February 05, 2008 12:39 PM
Subject: Re: [OT] Re: Best Tool to develop html
http://www.google.com/search?source=ig&hl=en&rlz=&q=set+textbox+value+javascript&btnG=Google+Search
On Feb 5, 2008 9:22 AM, McShiv <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I'm using the forllowing javascript and HTML Code for my project. I
> need to change the selectedRow text value (from 0
Hi All,
I'm using the forllowing javascript and HTML Code for my project. I
need to change the selectedRow text value (from 0 to 1) and other rows to 0
(indicating 1-selected row 0-unselectedrow). Because of using innerText in
the JavaScript, the textbox is changed as label. There is any oth
Martin,
I can use ActiveDirectory for authentication directly. I prefer that
because I have less code to worry about. How to do that with tomcat I dont
know.
On 2/2/08, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> Hi Arun-
>
> following up on Antonio's suggestion-
> did you look at setting the
I have a question about using OGNL PropertyAccessors. We have an object on the
value stack that we expose to JSP pages that does not have standard JavaBeans
getter/setter methods. From what I can tell, this leaves us 2 options. We can
either call the getter methods explicitly via OGNL method
2008/2/5, Al Sutton <[EMAIL PROTECTED]>:
> My vote is for vi
http://xkcd.com/378/
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
2008/2/5, mohammed hussain <[EMAIL PROTECTED]>:
> Hi anybody knowing the best tools to develop to html page,pls let me know
> thanx
Now seriously, Mohammed, your question is too generic.
Do you need a WYSIWYG editor? Do you need to use it in your
application (i.e. using a Javascript editor)?
Anto
Ah ah yes vi is probably the "best"
But if you need some more sophisticated like a WYSIWYG supporting more
than one DTD you can try AMAYA (www.W3C.org).
> -Original Message-
> From: Al Sutton [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 1:25 PM
> To: Struts Users Mai
The best tool to develop a html page is clearly a web designer paired
with a html producer.
Leon.
On Feb 5, 2008 1:39 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Al Sutton <[EMAIL PROTECTED]> wrote:
> > My vote is for vi
>
> I don't even know you, man.
>
> d.
>
>
> >
> > Al.
> >
> > - Or
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> My vote is for vi
I don't even know you, man.
d.
>
> Al.
>
> - Original Message -
> From: "Dave Newton" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> Sent: Tuesday, February 05, 2008 11:58 AM
> Subject: [OT] Re: Best Tool to develo
Since printing would be platform depending there seems
to be no universal answer.
If you are programming for IE clients I would suggest
use window.print
or window.document.execCommand('Print', , );
Encapsule it in an own Javascript function (for how
just google "javascrpt print" or refer to
mohammed hussain wrote:
Hi anybody knowing the best tools to develop to html page,pls let me know
There is no such thing. Do you need WYSIWYG? Are you looking for JSP
etc. awareness? Do you feel comfortable editing markup by hand? What are
your target DTDs?
Manos
-
My vote is for vi
Al.
- Original Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, February 05, 2008 11:58 AM
Subject: [OT] Re: Best Tool to develop html pages
--- mohammed hussain <[EMAIL PROTECTED]> wrote:
Hi anybody knowing the bes
Maybe not the best, but very good -> MyEclipse
Regards
--
Lukasz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- mohammed hussain <[EMAIL PROTECTED]> wrote:
> Hi anybody knowing the best tools to develop to html page,pls let me know
Emacs, hands down.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Hi All,
I'm trying to implement Struts2 with Weblogic 9.2. I'm getting the
following error while running the Weblogic server. Can you please help me by
providing a solution:
stack trace:
---
(HttpClient.java:149)
at weblogic.net.http.HttpClient.New(HttpClient.ja
The referenced tutorial looks fine.
I'd remove the interceptor first and ensure everything works without
it. (confirm that you can post to the index action)
Then add the login and see if that causes the exception.
I'd probably insert the login interceptor before the param interceptor
myself a
Hi anybody knowing the best tools to develop to html page,pls let me know
thanx
I want to edit an entity, i.e. a Message
i would set the .jsp field this way
on the MessageAction i would have a "edit" method that takes the
messageID and then call the business service to load the Message
object, so in the .jsp the file the textfield are loaded with the
current value.
when I s
Hi,
Has anyone been able to put dwr 2.0 working with struts 2.0.11 ajax validation?
--
Filipe David Manana,
[EMAIL PROTECTED]
Obvious facts are like secrets to those not trained to see them.
-
To unsubscribe, e-mail: [EMAIL
Is there anything alternative (apart annotation) to place validation
xml for the action method in the same package of the action classes?
I don't like to place .xml in the same directory of the .java
Any idea (apart annotation)
thanks.
-
Hi,
struts-default.xml
Thanks,
Nuwan
hezjing wrote:
Actually, I'm following the tutorial described at
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
May I know which file that is showing the Struts2 default interceptor stack?
Thanks for your help!
On 2/5/08, J
Hi All,
I have a problem when creating the action of a form: this form is generated
dynamically using ajax and javascript depending on how the user fill in the
form. In this form there are checkboxes, comboboxes and textfields (a
variable number). And I don't know how to pick the values of each e
Actually, I'm following the tutorial described at
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor.
May I know which file that is showing the Struts2 default interceptor stack?
Thanks for your help!
On 2/5/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
> That looks fine.
70 matches
Mail list logo