Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!

Glyndwr Bartlett

Ranch Hand
+ Follow
since Jul 30, 2018
I am not a programmer. I am learning as I go in order to create an award application for Scouts.
Australia
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
2
Total given
26
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Glyndwr Bartlett

I am extracting rows which then form part of an email using a scheduled background job (Java). I have excluded archived members in the SQL; however, I am told that accounts are still receiving emails relating to archived members.

My extract SQL is:



I have run this against the production data and the result did not include any archived members. An account holder has forwarded an email to me that shows an archived member.

Is there something else I should be looking for?

Kind regards,

Glyn
The answer is:


I have a column that contains (Abseiling - Level 9, Rock Climbing - Level 3, ...). I want to return the highest level (e.g., Abseiling - Level 9). I have found:



However, this requires the same number of leading characters (I have variable) and only returns the integer (I want "Abseiling - Level 9").

Kind regards,

Glyn
After much reading I found a solution. However, I still do not know the root cause of the problem. The solution was to convert my POST to json.

My Ajax was:



I changed this to:



My server side was:



I changed this to:



I would really like an explanation as to why this worked :-).

Kind regards,

Glyn



2 weeks ago
Excellent! This worked:



Thank you so much.

Kind regards,

Glyn
2 weeks ago
My client side code is:



My server side code is:




The printline sample is:



Thank you for your help.

Regards,

Glyn
2 weeks ago
I am having issues with my parameters transferred to the server side (java) being made null when over 2MB. I am clutching at straws and changing the parameters sent from:



To:



However, I am having issues with retrieving the parameters on the server side. This worked previously:



I have replaced it with (found this in another post):



However, the println does not appear. Can someone please let me know how to fix it.

Kind regards,

Glyn


2 weeks ago
More information. In this page I can upload four images. The error seems to be occurring at around 2MB; not the 4.5MB I reported earlier. Over this size and the uploaded parameters are empty. I have added:



When the content length is 2481354 (2.48MB) then the output is:



The parameters are not displayed (i.e., are null).

When the content length is 1766104 (1.77MB) then the output is:



And the output value shows all the expected values (too large to show here).
2 weeks ago
I found this: https://stackoverflow.com/questions/37131048/ajax-post-request-is-failing-because-of-payload-content-length
And set my Tomcat's server.xml. In the <Connector> element, attribute maxPostSize to zero, as per: https://tomcat.apache.org/tomcat-5.5-doc/config/http.html "The limit can be disabled by setting this attribute to a value less than or equal to 0".

This did not work.
2 weeks ago
Hi Tim,

The reason it is so large is that it contains images. I am using "POST" and Apache Tomcat server. I could not find an answer in the link you provided. The problem seems to occur at over 4.5MB; which is well within the 2GB limit mentioned in the past.

Kind regards,

Glyn
2 weeks ago
I am using Java EE using Eclipse. My ajax post is truncating my data that is being passed to the server side. I found these solution to update web.config:





I can not find a web.config only a web.xml. These lines are not valid in web.xml (an error is shown). Can someone please let me know the correct file and the file path in Eclipse please?

Kind regards,

Glyn
2 weeks ago
Thanks Bear,

The answer is:



Kind reagrds,

Glyn
I want my Bootstrap 3 radio buttons to appear inline, not horizontally stacked. I followed:

https://mdbootstrap.com/docs/standard/forms/radio/

To get:

     

The above are stacked horizontally.

Hi Paul,

Some success!



Outputs the text and the image. However, before I celebrate, I need the text and image to appear in the table where I currently have:




Currently it appears above the table.

As per attachment.

So I need to add each element into p6. I have a second field "ppRequirement" that is output to p7 that will have a similar output. How do I achieve this please.
5 months ago
Hi Paul,

Sorry about that. I have corrected the lines to:



I now have the following error occurring on the line:






How do I correctly pass the string "ppDescription" instead of a FileInputStream please?
5 months ago