Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

A Fortran compiler is the hobgoblin of little minis.


devel / comp.lang.java.programmer / Re: struts2 syntax

SubjectAuthor
* struts2 syntaxe.d.pro...@gmail.com
`* struts2 syntaxArne_Vajhøj
 `- struts2 syntaxe.d.pro...@gmail.com

1
struts2 syntax

<4b8ec277-7e99-45ce-84a5-f7664811d6b8n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=494&group=comp.lang.java.programmer#494

  copy link   Newsgroups: comp.lang.java.programmer
X-Received: by 2002:ae9:efc6:0:b0:6fb:9e81:7d2c with SMTP id d189-20020ae9efc6000000b006fb9e817d2cmr17395133qkg.625.1669053002672;
Mon, 21 Nov 2022 09:50:02 -0800 (PST)
X-Received: by 2002:aca:909:0:b0:35a:4c94:930c with SMTP id
9-20020aca0909000000b0035a4c94930cmr551439oij.131.1669053002381; Mon, 21 Nov
2022 09:50:02 -0800 (PST)
Path: i2pn2.org!rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.java.programmer
Date: Mon, 21 Nov 2022 09:50:02 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=98.237.40.232; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H
NNTP-Posting-Host: 98.237.40.232
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4b8ec277-7e99-45ce-84a5-f7664811d6b8n@googlegroups.com>
Subject: struts2 syntax
From: e.d.programmer@gmail.com (e.d.pro...@gmail.com)
Injection-Date: Mon, 21 Nov 2022 17:50:02 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1570
 by: e.d.pro...@gmail.com - Mon, 21 Nov 2022 17:50 UTC

Anyone know this framework? I can't find any documentation or examples.
We were including javascript in JSP like this, which was generating a CSP security error:
<script src="<s:url value="/js/myScript.js"/>"></script>

I tried just changing it to the struts tag and it just crashed:
<s:script src="<s:url value="/js/myScript.js"/>"></s:script>

So I'm trying to figure out if this can be done as a one line command, as it does work as a two line command:
<s:url var="myScriptjs" value='/js/myScript.js' encode='false' includeParams='none'/>
<s:script src="%{myScriptjs}"/>

Re: struts2 syntax

<tlghrt$10s9$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=495&group=comp.lang.java.programmer#495

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.lang.java.programmer
Subject: Re: struts2 syntax
Date: Mon, 21 Nov 2022 14:00:15 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tlghrt$10s9$1@gioia.aioe.org>
References: <4b8ec277-7e99-45ce-84a5-f7664811d6b8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="33673"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Mon, 21 Nov 2022 19:00 UTC

On 11/21/2022 12:50 PM, e.d.pro...@gmail.com wrote:
> Anyone know this framework? I can't find any documentation or examples.
> We were including javascript in JSP like this, which was generating a CSP security error:
> <script src="<s:url value="/js/myScript.js"/>"></script>
>
> I tried just changing it to the struts tag and it just crashed:
> <s:script src="<s:url value="/js/myScript.js"/>"></s:script>
>
> So I'm trying to figure out if this can be done as a one line command, as it does work as a two line command:
> <s:url var="myScriptjs" value='/js/myScript.js' encode='false' includeParams='none'/>
> <s:script src="%{myScriptjs}"/>

I don't know Struts 2 (I did a bit of Struts 1 a very long time ago,
but Struts 2 is not based on Struts 1 but on WebWorks).

Anyway, what is the problem you need to solve. Aka why not just:

<script src="/js/myScript.js"></script>

?

Do you need it to insert the web app name so it becomes:

<script src="/foobar/js/myScript.js"></script>

automatically if it is deployed in foobar.war?

Arne

Re: struts2 syntax

<1ac68866-8e0f-4e5e-8da4-4e15dd7ac5c5n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=496&group=comp.lang.java.programmer#496

  copy link   Newsgroups: comp.lang.java.programmer
X-Received: by 2002:ac8:5245:0:b0:3a5:3623:3714 with SMTP id y5-20020ac85245000000b003a536233714mr69712qtn.337.1669057802094;
Mon, 21 Nov 2022 11:10:02 -0800 (PST)
X-Received: by 2002:a4a:9e99:0:b0:49f:df9f:f316 with SMTP id
u25-20020a4a9e99000000b0049fdf9ff316mr4093504ook.63.1669057801874; Mon, 21
Nov 2022 11:10:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.java.programmer
Date: Mon, 21 Nov 2022 11:10:01 -0800 (PST)
In-Reply-To: <tlghrt$10s9$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=98.237.40.232; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H
NNTP-Posting-Host: 98.237.40.232
References: <4b8ec277-7e99-45ce-84a5-f7664811d6b8n@googlegroups.com> <tlghrt$10s9$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1ac68866-8e0f-4e5e-8da4-4e15dd7ac5c5n@googlegroups.com>
Subject: Re: struts2 syntax
From: e.d.programmer@gmail.com (e.d.pro...@gmail.com)
Injection-Date: Mon, 21 Nov 2022 19:10:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2519
 by: e.d.pro...@gmail.com - Mon, 21 Nov 2022 19:10 UTC

On Monday, November 21, 2022 at 2:00:29 PM UTC-5, Arne Vajhøj wrote:
> I don't know Struts 2 (I did a bit of Struts 1 a very long time ago,
> but Struts 2 is not based on Struts 1 but on WebWorks).
>
> Anyway, what is the problem you need to solve. Aka why not just:
>
> <script src="/js/myScript.js"></script>
>
> ?
>
> Do you need it to insert the web app name so it becomes:
>
> <script src="/foobar/js/myScript.js"></script>
>
> automatically if it is deployed in foobar.war?
>
> Arne

I'm new to this struts project myself, my previous project just used spring framework, so the s:url part was already there I'm assuming needs to be there.
Seems likely this relative path url will end up inserting the war name.
I haven't found much for documentation on these struts tags, mostly figuring out through trial and error. I could try the direct path without the s:url and see what it does.
It could respond differently in eclipse embedded tomcat versus building a war and running it outside of eclipse, assuming that war will run the same on my tomcat or another machine.
In the Spring project I was on I did write some JSP links using JSTL url tag, seems like this should be the same thing. https://www.w3schools.blog/jstl-curl-core-tag

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor