I use struts2.0.11, I use Hibernate to get data and put it into attribute in
struts2 action,like follows:
public String show() throws Exception{
request=ServletActionContext.getRequest();
List myList=this.getHibernateTemplate().find("from test.MyModel");
request.setAttribute("myList",myList);
--- red phoenix <[EMAIL PROTECTED]> wrote:
> I use struts2.0.11, I use Hibernate to get data and put it into attribute
> in
> struts2 action,like follows:
> public String show() throws Exception{
> request=ServletActionContext.getRequest();
> List myList=this.getHibernateTemplate().find("from t
Alright! In my pursuit of a solution, I blew past the fact that the method
attribute of the tag is the HTTP method! Struts 2 does such a
nice job of lifting you out of the HTTP API's that I actually considered
method to be uh.. the method!
Anyways, I am still a bit confused as to w
I follow the links up to this point:
http://cwiki.apache.org/S2PLUGINS/tiles-plugin.html.
and there they mentioned this link( http://struts.apache.org/downloads.html)
in order to download the tiles plugin.
But in downloads.html there is no link to download the tiles plugin.
If some body find the
The Tiles plugin is distributed with S2. It's in the /lib directory.
Dave
--- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote:
> I follow the links up to this point:
> http://cwiki.apache.org/S2PLUGINS/tiles-plugin.html.
> and there they mentioned this link(
> http://struts.apache.org/downloads.ht
I've been out of the Struts loop for a long time now (some of you old
timers should remember me). I've been reading the docs in firehose mode
the last few days, but I have some questions about Ajax-related
capabilities in the latest release. I'd like to see if certain
combinations of features are
hi all,
i need all your idea.
i have 2 project that using struts, the project name is cimande and papaje.
this is the scenario
cimande is the core, and papaje need cimande to run,
cimande need struts2, spring, and hibernate
both spring and hibernate both no problem, i have
applicationContext-
stanlick wrote:
Here is the current solution:
I avoid using the method attribute of submit. The problem is that it
includes a special prefix on the submit's paramater that the default
action mapper detects, strips and selects that target method of your
action. That's fine a
Frans Thamura wrote:
how to call the template inside a jar in struts development. so I can put
all the code in one jar, and can be use in another project, and we still
know, the template inside the jar.
Is the template a JSP? If so, you're stuck. In the current container
spec, they must
>
> Is the template a JSP? If so, you're stuck. In the current container
> spec, they must be included in the WAR, not in a JAR.
>
> This is a critical flaw of JSPs and one of the many reasons some
> developers prefer velocity or freemarker pages.
>
> To partially overcome the problem, use your b
Yes, it's completely viable with Struts 2, however, the majority of what
you've described is client-side functionality. What you need is a good
client-side library.
I wouldn't approach this problem using the Struts 2 dojo/ajax tags *at
all*. They're too limited, especially as they're without
Frans Thamura wrote:
we use velocity and freemarker :)
is it possible?
Good choice. You're in luck! The Freemarker Configuration searches for
templates in your web application first and then in your classpath.
Just place them in the jar and reference them by their classpath.
eg
/views/m
Jeromy,
i got this
https://issues.apache.org/struts/browse/WW-676
is resolved issue = stable?
Frans
hi jeromy,
i have several velocity template inside and i want to put in the jar also
i got this is the syntax to implement TemplatePath (below)
i dont get the relationship between freemarker and struts
because in my strutx.xml's package i just change the result to freemarker,
and done, the
Frans Thamura wrote:
Jeromy,
i got this
https://issues.apache.org/struts/browse/WW-676
is resolved issue = stable?
Frans
Resolved/Fixed is good/stable. It's also dated 2004 so it's safe to
assume it doesn't apply any more.
I had a look in FreemarkerManager.java and confirmed the templ
>
> Resolved/Fixed is good/stable. It's also dated 2004 so it's safe to
> assume it doesn't apply any more.
> I had a look in FreemarkerManager.java and confirmed the templatePath is
> read from servletContext.getInitParameter("TemplatePath") or
> "templatePath"
>
> thx
working in this :)
hope c
most recent version of Dojo 1.0 has a datatable control
dataHolder = {
//Simple object definition to get all items and sort it
by the attribute
'type'.
request: {query: {name: "*"}, onItem: function(item,
req){}, s
The Struts FreemarkerResult and Struts 2 tags explicitly access a
Freemarker template engine that's setup via the Struts container.
Your example below references the FreemarkerServlet provided by
Freemarker that's an distinct instance of the template engine.
You don't require the FreemarkerSer
On Mon, Mar 3, 2008 at 8:34 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> The Struts FreemarkerResult and Struts 2 tags explicitly access a
> Freemarker template engine that's setup via the Struts container.
>
> Your example below references the FreemarkerServlet provided by
> Freemarker that's a
Frans Thamura wrote:
do this mean that struts2 automatically search template, when the template
is not in the /web-inf/view , the struts2 will search in the classpath. is
this right?
Yes.
Struts 2 configures a FreeMarker TemplateLoader that:
- searches the filesytem templatePath if specif
>
> It looks like the templatePath init param is used only by the
> FileTemplateLoader though. (I've never needed to use that param)
>
> The classpath loader uses
> Thread.currentThread().getContextClassLoader().getResource(resourceName);
> (and a few other variations if unsuccessful)
>
i am try t
Frans Thamura wrote:
It looks like the templatePath init param is used only by the
FileTemplateLoader though. (I've never needed to use that param)
The classpath loader uses
Thread.currentThread().getContextClassLoader().getResource(resourceName);
(and a few other variations if unsuccessful)
Hello
I am trying to embed a webapp url within an html email message within an
action. I am not quite sure how to make it work elegantly. I can force it
with using struts to generate the url and pass it as a parameter, but that just
seems wrong. Is there a better way? Also any suggestions on
Hi,
I have a field in my jsp page to enter emailaddress. Inorder to validate it
i have used the but its not validating.Its
only validating for strings(type=requiredstring) and if type="required" and
page is submitting .What may b the reason?
Also,If I have inserted details into the d
Great !
you have realize me abt difference between session and request
but i do not understand why this logic do not works to me
if u have little beat time to investigate my work i would like to attach my
core files
like
login.java
login.jsp
my interceptor
my struts.xml files
--
View this m
it works now
i made just this change in struts.xml
first i wrote
Login_input
now it works fine when i write
Login_input
${postLoginURL}
something i could understand is because of result type chain inspite of
redirect action
is is true?
--
View t
Hi,
Here is my another problem!!
I have a register page called "userRegister.jsp" and its success page
"registersuccess.jsp".Also,the users who have registered should login from
page "userlogin.jsp" and its success page is "loginsuccess.jsp".After
logging in, user is given a privilege to update h
i have use ms access database
i have set in login.java that if user is valid then username and userid and
connection object is stored in session
now this connection object i have pulled in entire session to workout with
common object
is this good for security and performance?
I little bit worry ab
hns wrote:
i have use ms access database
i have set in login.java that if user is valid then username and userid and
connection object is stored in session
now this connection object i have pulled in entire session to workout with
common object
is this good for security and performance?
I little
Can Rad 6.0 use/run Struts versions greater than 1.1, say 1.3.8, 1.3.9, or 2.0
30 matches
Mail list logo