AW: Struts 6.3 Issue Uploading Files

2024-03-05 Thread Patrick Arnoldy
Hello,

we just had a similar issue in our application after migrating to Tomcat 9.
This may not be a Struts problem, but a change in how Tomcat treats files since 
version 9.

Please have a look at those links:
https://stackoverflow.com/questions/48175852/tomcat9-file-permissions-change
https://tomcat.apache.org/tomcat-9.0-doc/changelog.html   (look for "Tomcat 
9.0.0.M1 (markt)")


Regards
Patrick Arnoldy


-Ursprüngliche Nachricht-
Von: Lukasz Lenart  
Gesendet: Mittwoch, 6. März 2024 08:10
An: Struts Users Mailing List 
Betreff: Re: Struts 6.3 Issue Uploading Files

Can you take a look at this PR? Can you test it?
https://github.com/apache/struts/pull/892

śr., 6 mar 2024 o 07:51 Lukasz Lenart  napisał(a):
>
> pon., 4 mar 2024 o 00:28 Zoran Avtarovski  
> napisał(a):
> > I tried to raise a ticket to include some logging in the isMultipartRequest 
> > function to record why it failed but I don't have an account anymore.
>
> I've created the ticket
> https://issues.apache.org/jira/browse/WW-5401
>
>
> Cheers
> Lukasz

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


Re: Struts 6.3 Issue Uploading Files

2024-03-05 Thread Lukasz Lenart
Can you take a look at this PR? Can you test it?
https://github.com/apache/struts/pull/892

śr., 6 mar 2024 o 07:51 Lukasz Lenart  napisał(a):
>
> pon., 4 mar 2024 o 00:28 Zoran Avtarovski  
> napisał(a):
> > I tried to raise a ticket to include some logging in the isMultipartRequest 
> > function to record why it failed but I don't have an account anymore.
>
> I've created the ticket
> https://issues.apache.org/jira/browse/WW-5401
>
>
> Cheers
> Lukasz

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Radio button selection is not being saved on the front end

2024-03-05 Thread Mahabir Gupta
Hi,

I have some radio button where I can select one radio button at a time and
safe it. It is being saved in the database but on the frontend it is not
being saved.

public class getDotsCarRentalAction extends GenericMappingDispatchAction{

public String saveCr(){
HttpSession session = request.getSession();
String result = null;
DotsCarRentalForm frm = null;
DotsCarRental dotsCarRental = new DotsCarRental();
dotsCarRental = (DotsCarRental)
session.getAttribute(DBConstants.sessionCarId);
frm = (DotsCarRentalForm) form;
dotsCarRental = frm.getFormData(dotsCarRental);
result = frm.getFctSelected().trim();

if(result == null || result.length() < 1) result = "CARRENTAL";
ActionErrors errors = frm.validate(getTextProvider(),request);
if(errors != null){
saveErrors(errors);
return "CARRENTAL";
}
session.setAttribute(DBConstants.sessionCarId,dotsCarRental);
return result;
}

public String getCr(){
HttpSession session = request.getSession();
DotsCarRental dotsCarRental = new DotsCarRental;
dotsCarRental = (DotsCarRental)
session.getAttribute(DBConstants.sessionCarId);
DotsCarRentalForm frm = new DotsCarRentalForm();
if(dotsCarRental !=null){
frm.setFormData(dotsCarRental);
}
frm.setFctSelected(null);
frm.setValSelected(null);
request.setAttribute("dotsCarRentalForm",frm);
return "success";

}
}

There is no error on the console and neither is there any error on the
developer tools on MS Edge



Staff








SAVE
AS DRAFT













Please assist.
Thank you.

Regards

Mahabir


Re: Struts 6.3 Issue Uploading Files

2024-03-05 Thread Lukasz Lenart
pon., 4 mar 2024 o 00:28 Zoran Avtarovski  napisał(a):
> I tried to raise a ticket to include some logging in the isMultipartRequest 
> function to record why it failed but I don't have an account anymore.

I've created the ticket
https://issues.apache.org/jira/browse/WW-5401


Cheers
Lukasz

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org