Hi. (sorry for my bad English :blush: )
I am very new Struts user, so my problem is maybe some basic stuff.. But
please help me someone, if you know the answer.
I'm developing a large application which uses Struts 1.x- and EJB3-
frameworks and Web Sphere 7.x application server. I should make a
Have you try to put lists in lists???
may be it works...
another way can be if you put every item as a s:optgroup
HTH
2009/7/2 mlevin
>
> ** Many apologies if this goes through twice -- I posted a few hours ago
> and
> didn't see my own post show up yet **
>
> Hi folks,
>
> I'm having some tr
Please tell me it isn't the little woman that has you talking all crazy bro!
P.S. You failed to mention the option about just writing the response with
print statements from the action!
Peace,
Scott
Musachy Barroso wrote:
>
> Or if you are very brave, and using java 6, you can use jasper to
Thanks brother! Do you know of a decent JSP ---> Freemarker converter? I
sort of wondered why the config-browser plug in was using Freemarker. It
really sucks when something like this rears it ugly head and brings
productivity to a screeching halt!
P.S. And I really thought I was going to have
Or if you are very brave, and using java 6, you can use jasper to
compile the jsp to java, then use the java api compile to compile to a
class file, load it and then execute it, but yeah FreeMarker would be
easier :)
musachy
On Thu, Jul 9, 2009 at 1:06 PM, Dale Newfield wrote:
> stanlick wrote:
>
It is a limitation on the JSP API, you can't embed them. You will have
to use FreeMarker or Velocity or any other decent template lib.
musachy
On Thu, Jul 9, 2009 at 12:47 PM, stanlick wrote:
>
> Thanks Dale --
>
> I hear what you are saying, and this seemed a little foreign to me too!
> However,
stanlick wrote:
However, for a plug-in to be a drop-n-go deal, I sort of think the goods
should all be in the plug-in jar itself? Make sense?
Agreed, but I believe I've been told that can't be done with jsp
templates. This is why plugins that I've seen have been implemented in
freemarker.
Thanks Dale --
I hear what you are saying, and this seemed a little foreign to me too!
However, for a plug-in to be a drop-n-go deal, I sort of think the goods
should all be in the plug-in jar itself? Make sense? I was looking at this
article, and it appears this cat has a JSP working in his
stanlick wrote:
I am working on a plug-in that needs to display a JSP.
The folder "pages" is in the root of my config-plugin.jar
I believe jsp files must be in the file system, not in jars.
-Dale
-
To unsubscribe, e-mail:
I am working on a plug-in that needs to display a JSP. I have the plug-in
packaged with the following struts-plugin.xml, however, rather than the
/pages/config.jsp page appearing, I get a 404! The folder "pages" is in the
root of my config-plugin.jar file and I have changed the result by both
inc
I wonder if this is durable with S2:
JSP form:
this form has a button FINALIZE, if all goes well - the result SUCCESS
should be seen in placeA on the page and if it fails the result FAILURE
should be seen in placeB (a different place on the page);
the SUCCESS/FAILURE are just messages but they mu
check your web.xml to see if your filtering thru SiteMesh e.g.
sitemesh
com.opensymphony.module.sitemesh.filter.PageFilter
sitemesh
/*
where com.opensymphony.module.sitemesh.filter.PageFilter contains parsePage
method
protected com.opensymphon
I'm new to struts and work on an application with existing struts code.
I have a text field in a .jsp and when doing the post struts seems to be
automatically removing certain special characters from the string in the
text field.
In particular, it's removing these non-alpha characters: "(" and "
> /xxx/MyWizardPage${page}.jsp
oh yes, this does the trick! Thanks!
I just found another problem when using xml based validation. In struts1, there
is a page attribute, which can tell the validator to validate certain fields
which belong to that page, but this useful feature is not in struts2,
Is there any performance difference between defining validations in an
xml file (ActionName-validation.xml) or as annotations within the
Action? Is one method preferred over the other?
Mitch
-
To unsubscribe, e-mail: user-unsu
if you could display the jsp we could see
the actual component for the HTML id="err"
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nic
Thanks Robert .. Lemme check the same.
Robert Graf-Waczenski
07/09/2009 06:51 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Re: not displaying errors!
My first guess would be that you are not properly dispatching back to
your input page.
>
>
> >
> > Well, if I remove my validation code in the validate() method and put it
> > into execute() method, then I can easily control which logical name to be
> > return, but I thought that is not a good way to do that right?
> >
>
> While this might not be a "good way to do that," it's what I
My first guess would be that you are not properly dispatching back to
your input page. A closer look at your struts.xml would clarify this,
though.
Robert
Kavita Mehta schrieb:
Hi,
I am using Struts 2.0 and I am not able to display the action errors in
my JSP.
Action class code :
if( ( g
org.apache.struts.util.RequestUtils has the following at lines 408-415:
Boolean maxLengthExceeded =
(Boolean)
request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
if ((maxLengthExceeded != null)
&& (m
Hi,
I am using Struts 2.0 and I am not able to display the action errors in
my JSP.
Action class code :
if( ( getSelectedlocation() == null ) || getSelectedlocation().compareTo(
"" ) == 0
&& ( (getLocation() == null ) ||(
getLocation().compareTo( "" )
On Thu, Jul 9, 2009 at 5:26 AM, wrote:
>
> Well, if I remove my validation code in the validate() method and put it
> into execute() method, then I can easily control which logical name to be
> return, but I thought that is not a good way to do that right?
>
While this might not be a "good way t
Use Pattern Matching Wildcards in Configurations
Action configuration files are somehow able to grow to
extremely large at incredible speeds. On way to combat this
phenomenon is to use pattern matching. Pattern matching works
by defining one or more patterns that URLs will conf
Ok, but it's truncated, could you send more?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
Eddie Izzard - "Never put a sock in a toaster." -
http://www.brainyquote.com/quotes/authors/e/eddie_izzard.html
-
Thanks for let me know another struts2 book, have a quick look in it, didn't
found any good tip to solve my problem.
Regards
Louis
From: Oscar Alvarez
To: Struts Users Mailing List
Sent: Wednesday, July 8, 2009 7:09:35 PM
Subject: Re: dynamic return when vali
Hi Dale & Greg,
Thanks for all your discussion.
>>>
> The problem is that the OP doesn't understand his problem. If the
> validation step knows what the result page should be, he shouldn't be
> returning "input", but rather the name of the logical step to be rendered.
> He's right that the cod
26 matches
Mail list logo